aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/virtio_net.c
diff options
context:
space:
mode:
authorSridhar Samudrala <sri@us.ibm.com>2009-07-14 10:21:02 -0400
committerDavid S. Miller <davem@davemloft.net>2009-07-17 13:10:58 -0400
commit5c5167515d80f78f6bb538492c423adcae31ad65 (patch)
treea1de3eac4ac3a98fae1a73d1eec5338cbbf71ff1 /drivers/net/virtio_net.c
parentbbf50e4df11ea5b9d2f625be2a1cea3ec0352890 (diff)
virtio-net: Allow UFO feature to be set and advertised.
- Allow setting UFO on virtio-net and advertise to host. Signed-off-by: Sridhar Samudrala <sri@us.ibm.com> Acked-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r--drivers/net/virtio_net.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 2a6e81d5b579..a6f903f00924 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -774,6 +774,7 @@ static struct ethtool_ops virtnet_ethtool_ops = {
774 .set_tx_csum = virtnet_set_tx_csum, 774 .set_tx_csum = virtnet_set_tx_csum,
775 .set_sg = ethtool_op_set_sg, 775 .set_sg = ethtool_op_set_sg,
776 .set_tso = ethtool_op_set_tso, 776 .set_tso = ethtool_op_set_tso,
777 .set_ufo = ethtool_op_set_ufo,
777 .get_link = ethtool_op_get_link, 778 .get_link = ethtool_op_get_link,
778}; 779};
779 780
@@ -1005,7 +1006,7 @@ static unsigned int features[] = {
1005 VIRTIO_NET_F_GSO, VIRTIO_NET_F_MAC, 1006 VIRTIO_NET_F_GSO, VIRTIO_NET_F_MAC,
1006 VIRTIO_NET_F_HOST_TSO4, VIRTIO_NET_F_HOST_UFO, VIRTIO_NET_F_HOST_TSO6, 1007 VIRTIO_NET_F_HOST_TSO4, VIRTIO_NET_F_HOST_UFO, VIRTIO_NET_F_HOST_TSO6,
1007 VIRTIO_NET_F_HOST_ECN, VIRTIO_NET_F_GUEST_TSO4, VIRTIO_NET_F_GUEST_TSO6, 1008 VIRTIO_NET_F_HOST_ECN, VIRTIO_NET_F_GUEST_TSO4, VIRTIO_NET_F_GUEST_TSO6,
1008 VIRTIO_NET_F_GUEST_ECN, /* We don't yet handle UFO input. */ 1009 VIRTIO_NET_F_GUEST_ECN, VIRTIO_NET_F_GUEST_UFO,
1009 VIRTIO_NET_F_MRG_RXBUF, VIRTIO_NET_F_STATUS, VIRTIO_NET_F_CTRL_VQ, 1010 VIRTIO_NET_F_MRG_RXBUF, VIRTIO_NET_F_STATUS, VIRTIO_NET_F_CTRL_VQ,
1010 VIRTIO_NET_F_CTRL_RX, VIRTIO_NET_F_CTRL_VLAN, 1011 VIRTIO_NET_F_CTRL_RX, VIRTIO_NET_F_CTRL_VLAN,
1011 VIRTIO_F_NOTIFY_ON_EMPTY, 1012 VIRTIO_F_NOTIFY_ON_EMPTY,