diff options
author | Vlad Yasevich <vyasevich@gmail.com> | 2017-05-23 19:38:43 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-24 22:27:14 +0200 |
commit | 2836b4f224d4fd7d1a2b23c3eecaf0f0ae199a74 (patch) | |
tree | 2b342f50dd0d585ce34c08e68cd6d1fcd4ddae40 /drivers/net/virtio_net.c | |
parent | be2net: Fix offload features for Q-in-Q packets (diff) | |
download | linux-2836b4f224d4fd7d1a2b23c3eecaf0f0ae199a74.tar.xz linux-2836b4f224d4fd7d1a2b23c3eecaf0f0ae199a74.zip |
virtio-net: enable TSO/checksum offloads for Q-in-Q vlans
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>
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r-- | drivers/net/virtio_net.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 9320d96a1632..3e9246cc49c3 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -1989,6 +1989,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) |