virtio: conditionally set checksum offload based on TCP/UDP offload flags 83/43083/3
authorMohsin Kazmi <[email protected]>
Wed, 4 Jun 2025 11:08:47 +0000 (11:08 +0000)
committerBenoit Ganne <[email protected]>
Tue, 10 Jun 2025 09:32:18 +0000 (09:32 +0000)
commite4f009f5297766be9fe2a294ee76ba92d2e90435
tree09f7e03f471ab7ca67aa84d8bc1e01d08f580a82
parentb3d246b54b1b55a3bba4b2915e9891ec75671161
virtio: conditionally set checksum offload based on TCP/UDP offload flags

Type: fix

Previously, the Virtio device node unconditionally set the checksum offload
flag and the checksum start offset, regardless of whether TCP/UDP checksum
offload flags were set.
This patch updates the logic to apply these settings only when the TCP/UDP
offload flags are explicitly set.

Signed-off-by: Mohsin Kazmi <[email protected]>
Change-Id: I9af37d03b388ff7d1e22ec125fae97fad50e64d2
src/vnet/devices/virtio/device.c