]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-net: Set RXCSUM feature if GUEST_CSUM is available
authorThomas Huth <thuth@linux.vnet.ibm.com>
Tue, 27 Aug 2013 15:09:02 +0000 (17:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2013 01:36:41 +0000 (21:36 -0400)
commit32dbbc1a451368054b04b649c9e8d8c3c8481da5
tree9978f27521862f029734293881f0f3715d9270c3
parentc61ecb169937bf4b02e066b65f958a35ac51b7ef
virtio-net: Set RXCSUM feature if GUEST_CSUM is available

If the VIRTIO_NET_F_GUEST_CSUM virtio feature is available, the guest
does not have to calculate the checksums on all received packets. This
is pretty much the same feature as RX checksum offloading on real
network cards, so the virtio-net driver should report this by setting
the NETIF_F_RXCSUM flag. When the user now runs "ethtool -k", he or she
can see whether the virtio-net interface has to calculate RX checksums
or not.

Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c