Skip to content

Commit d7ed7fc

Browse files
vyasevichgregkh
authored andcommitted
virtio-net: enable TSO/checksum offloads for Q-in-Q vlans
[ Upstream commit 2836b4f224d4fd7d1a2b23c3eecaf0f0ae199a74 ] 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. Acked-by: Jason Wang <jasowang@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 8380f16 commit d7ed7fc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/net/virtio_net.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,7 @@ static const struct net_device_ops virtnet_netdev = {
14151415
#ifdef CONFIG_NET_RX_BUSY_POLL
14161416
.ndo_busy_poll = virtnet_busy_poll,
14171417
#endif
1418+
.ndo_features_check = passthru_features_check,
14181419
};
14191420

14201421
static void virtnet_config_changed_work(struct work_struct *work)

0 commit comments

Comments
 (0)