diff options
author | Vlad Yasevich <vyasevic@redhat.com> | 2014-07-31 10:30:25 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-08-14 09:38:24 +0800 |
commit | 6d7a7d3623a1732deff22faeb4a70322794d70f5 (patch) | |
tree | b1e7166c6d4627fc080f03f47c155867dec9c7c0 /drivers/net | |
parent | 672fcd4d4631dc45c650cad3576f880c0907e2e3 (diff) | |
download | lwn-6d7a7d3623a1732deff22faeb4a70322794d70f5.tar.gz lwn-6d7a7d3623a1732deff22faeb4a70322794d70f5.zip |
macvlan: Initialize vlan_features to turn on offload support.
[ Upstream commit 081e83a78db9b0ae1f5eabc2dedecc865f509b98 ]
Macvlan devices do not initialize vlan_features. As a result,
any vlan devices configured on top of macvlans perform very poorly.
Initialize vlan_features based on the vlan features of the lower-level
device.
Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/macvlan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index 5adecc5f52b7..7f1abb7c18f2 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c @@ -548,6 +548,7 @@ static int macvlan_init(struct net_device *dev) (lowerdev->state & MACVLAN_STATE_MASK); dev->features = lowerdev->features & MACVLAN_FEATURES; dev->features |= ALWAYS_ON_FEATURES; + dev->vlan_features = lowerdev->vlan_features & MACVLAN_FEATURES; dev->gso_max_size = lowerdev->gso_max_size; dev->iflink = lowerdev->ifindex; dev->hard_header_len = lowerdev->hard_header_len; |