Patchwork [net-next-2.6,1/2] virtio-net: Allow UFO feature to be set and advertised.

login
register
mail settings
Submitter Sridhar Samudrala
Date July 15, 2009, 12:21 a.m.
Message ID <1247617262.4998.76.camel@IBM-19B5263ED41-009047018100.beaverton.ibm.com>
Download mbox | patch
Permalink /patch/29786/
State Accepted
Delegated to: David Miller
Headers show

Comments

Sridhar Samudrala - July 15, 2009, 12:21 a.m.
[PATCH net-next-2.6 1/2] virtio-net: Allow UFO feature to be set

- Allow setting UFO on virtio-net and advertise to host.

Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>

---------------------------------------------------------
> 

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Rusty Russell - July 16, 2009, 2:28 a.m.
On Wed, 15 Jul 2009 09:51:02 am Sridhar Samudrala wrote:
> [PATCH net-next-2.6 1/2] virtio-net: Allow UFO feature to be set
>
> - 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>

Thanks!
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller - July 17, 2009, 5:11 p.m.
From: Rusty Russell <rusty@rustcorp.com.au>
Date: Thu, 16 Jul 2009 11:58:22 +0930

> On Wed, 15 Jul 2009 09:51:02 am Sridhar Samudrala wrote:
>> [PATCH net-next-2.6 1/2] virtio-net: Allow UFO feature to be set
>>
>> - 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>

Applied to net-next-2.6
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 2a6e81d..a6f903f 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -774,6 +774,7 @@  static struct ethtool_ops virtnet_ethtool_ops = {
 	.set_tx_csum = virtnet_set_tx_csum,
 	.set_sg = ethtool_op_set_sg,
 	.set_tso = ethtool_op_set_tso,
+	.set_ufo = ethtool_op_set_ufo,
 	.get_link = ethtool_op_get_link,
 };
 
@@ -1005,7 +1006,7 @@  static unsigned int features[] = {
 	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_NET_F_GUEST_TSO4, VIRTIO_NET_F_GUEST_TSO6,
-	VIRTIO_NET_F_GUEST_ECN, /* We don't yet handle UFO input. */
+	VIRTIO_NET_F_GUEST_ECN, VIRTIO_NET_F_GUEST_UFO,
 	VIRTIO_NET_F_MRG_RXBUF, VIRTIO_NET_F_STATUS, VIRTIO_NET_F_CTRL_VQ,
 	VIRTIO_NET_F_CTRL_RX, VIRTIO_NET_F_CTRL_VLAN,
 	VIRTIO_F_NOTIFY_ON_EMPTY,