net/virtio: do not falsely claim to do IP checksum
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 7 Jul 2017 19:52:49 +0000 (12:52 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 9 Jul 2017 16:38:40 +0000 (18:38 +0200)
commit4dab342b752222c6e248dae5ec9de2302aacd746
tree397b743746961413fb2bb7e3610770af7ca9bd00
parentb40f8d782ba18e97ca4270823320dfe3242d8684
net/virtio: do not falsely claim to do IP checksum

The virtio driver is confused about the meaning of the ip_checksum
flag.  In DPDK, ip_checksum means the hardware is capable of checking
the Layer 3 IP checksum.  But KVM/QEMU does not do that. The flag
VIRTIO_NET_F_GUEST_CSUM controls whether the receive side does
Layer 4 (TCP/UDP) checksum offload.

Fix by erroring out any requests to do IP checksum.

Fixes: 96cb6711939e ("net/virtio: support Rx checksum offload")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
drivers/net/virtio/virtio_ethdev.c