diff options
author | Vlad Yasevich <vyasevic@redhat.com> | 2014-07-31 10:30:25 -0400 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2014-11-23 10:55:42 +0100 |
commit | b5b640efe723b0087f71b56a055e8d559b82c8cb (patch) | |
tree | 38cf06984963fc9987057560c8e22e3da50149f8 /drivers | |
parent | 9063b87d25f1dbf3f3e0b91ab84b08b99b53ce4f (diff) |
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: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'drivers')
-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 2490aa39804c..47ff740265f2 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c @@ -360,6 +360,7 @@ static int macvlan_init(struct net_device *dev) dev->state = (dev->state & ~MACVLAN_STATE_MASK) | (lowerdev->state & MACVLAN_STATE_MASK); dev->features = lowerdev->features & MACVLAN_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; |