virtio_net: Set VIRTIO_NET_F_GUEST_CSUM feature
authorMark McLoughlin <markmc@redhat.com>
Tue, 8 Jul 2008 07:10:42 +0000 (17:10 +1000)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 11 Jul 2008 05:20:33 +0000 (01:20 -0400)
We can handle receiving partial csums, so set the
appropriate feature bit.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/virtio_net.c

index 4452306d53286cbcaf9bac4e092b51e95d9cdc15..c28d7cb2035b1dbcb5425aaeff55294d3f4eb786 100644 (file)
@@ -550,7 +550,8 @@ static struct virtio_device_id id_table[] = {
 };
 
 static unsigned int features[] = {
-       VIRTIO_NET_F_CSUM, VIRTIO_NET_F_GSO, VIRTIO_NET_F_MAC,
+       VIRTIO_NET_F_CSUM, VIRTIO_NET_F_GUEST_CSUM,
+       VIRTIO_NET_F_GSO, VIRTIO_NET_F_MAC,
        VIRTIO_NET_F_HOST_TSO4, VIRTIO_NET_F_HOST_UFO, VIRTIO_NET_F_HOST_TSO6,
        VIRTIO_NET_F_HOST_ECN, VIRTIO_F_NOTIFY_ON_EMPTY,
 };