virtio-net: enable TSO/checksum offloads for Q-in-Q vlans
authorVlad Yasevich <vyasevich@gmail.com>
Tue, 23 May 2017 17:38:43 +0000 (13:38 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Jun 2017 10:05:58 +0000 (12:05 +0200)
commitd7ed7fcecf2082f44ac6b1e7b69055a0e713af03
tree6b046ccd5f812e7698f2f7eff8a6e2f91db38559
parent8380f16d0702817d2b5070d82972db03d2462e50
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>
drivers/net/virtio_net.c