From patchwork Sat Jun 6 00:16:34 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sridhar Samudrala X-Patchwork-Id: 28405 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n560HCQc029891 for ; Sat, 6 Jun 2009 00:17:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752832AbZFFAQg (ORCPT ); Fri, 5 Jun 2009 20:16:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752818AbZFFAQg (ORCPT ); Fri, 5 Jun 2009 20:16:36 -0400 Received: from e9.ny.us.ibm.com ([32.97.182.139]:47134 "EHLO e9.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752832AbZFFAQe (ORCPT ); Fri, 5 Jun 2009 20:16:34 -0400 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e9.ny.us.ibm.com (8.13.1/8.13.1) with ESMTP id n5604Cmm005472; Fri, 5 Jun 2009 20:04:12 -0400 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n560GaPN253392; Fri, 5 Jun 2009 20:16:36 -0400 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n560GaAg018917; Fri, 5 Jun 2009 20:16:36 -0400 Received: from [9.47.18.19] (w-sridhar.beaverton.ibm.com [9.47.18.19]) by d01av04.pok.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n560GZV3018890; Fri, 5 Jun 2009 20:16:35 -0400 Subject: [PATCH net-next 3/4] virtio_net: Allow UFO feature to be set on virtio_net device. From: Sridhar Samudrala To: davem@davemloft.net, netdev@vger.kernel.org, kvm@vger.kernel.org, herbert.xu@redhat.com, rusty@rustcorp.com.au Date: Fri, 05 Jun 2009 17:16:34 -0700 Message-Id: <1244247394.1526.172.camel@w-sridhar.beaverton.ibm.com> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 (2.24.5-1.fc10) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Allow UFO feature to be set on virtio_net device. Signed-off-by: Sridhar Samudrala --- drivers/net/virtio_net.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 0c9ca67..d24ede0 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -773,6 +773,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, }; @@ -1013,7 +1014,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,