From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Wang Subject: Re: [PATCH net 3/3] virtio-net: enable TSO/checksum offloads for Q-in-Q vlans Date: Fri, 19 May 2017 22:18:20 +0800 Message-ID: <033399db-90b5-af13-5201-151008afef2a@redhat.com> References: <1495114265-23368-1-git-send-email-vyasevic@redhat.com> <1495114265-23368-4-git-send-email-vyasevic@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Vladislav Yasevich , "Michael S. Tsirkin" , virtualization@lists.linux-foundation.org To: Vladislav Yasevich , netdev@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:56774 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750933AbdESOSf (ORCPT ); Fri, 19 May 2017 10:18:35 -0400 In-Reply-To: <1495114265-23368-4-git-send-email-vyasevic@redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: On 2017年05月18日 21:31, Vladislav Yasevich wrote: > Since virtio does not provide it's own ndo_features_check handler, > TSO, and now checksum offload, are disabled for stacked vlans. > Re-enable the support and let the host take care of it. This > restores/improves Guest-to-Guest performance over Q-in-Q vlans. > > CC: "Michael S. Tsirkin" > CC: Jason Wang > CC: virtualization@lists.linux-foundation.org > Signed-off-by: Vladislav Yasevich > --- > drivers/net/virtio_net.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c > index 8324a5e..341fb96 100644 > --- a/drivers/net/virtio_net.c > +++ b/drivers/net/virtio_net.c > @@ -2028,6 +2028,7 @@ static const struct net_device_ops virtnet_netdev = { > .ndo_poll_controller = virtnet_netpoll, > #endif > .ndo_xdp = virtnet_xdp, > + .ndo_features_check = passthru_features_check, > }; > > static void virtnet_config_changed_work(struct work_struct *work) Acked-by: Jason Wang