diff options
author | Vlad Yasevich <vyasevic@redhat.com> | 2014-07-31 10:30:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-01 01:10:01 -0400 |
commit | 081e83a78db9b0ae1f5eabc2dedecc865f509b98 (patch) | |
tree | 8d96a14a8322dd3f91301bfa0480a923e061dd9a /drivers/net/macvlan.c | |
parent | 47fab41ab51a18a2e5fc4ec63f16b4c6702809b6 (diff) |
macvlan: Initialize vlan_features to turn on offload support.
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>
Diffstat (limited to 'drivers/net/macvlan.c')
-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 958df383068a..ef8a5c20236a 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c | |||
@@ -646,6 +646,7 @@ static int macvlan_init(struct net_device *dev) | |||
646 | (lowerdev->state & MACVLAN_STATE_MASK); | 646 | (lowerdev->state & MACVLAN_STATE_MASK); |
647 | dev->features = lowerdev->features & MACVLAN_FEATURES; | 647 | dev->features = lowerdev->features & MACVLAN_FEATURES; |
648 | dev->features |= ALWAYS_ON_FEATURES; | 648 | dev->features |= ALWAYS_ON_FEATURES; |
649 | dev->vlan_features = lowerdev->vlan_features & MACVLAN_FEATURES; | ||
649 | dev->gso_max_size = lowerdev->gso_max_size; | 650 | dev->gso_max_size = lowerdev->gso_max_size; |
650 | dev->iflink = lowerdev->ifindex; | 651 | dev->iflink = lowerdev->ifindex; |
651 | dev->hard_header_len = lowerdev->hard_header_len; | 652 | dev->hard_header_len = lowerdev->hard_header_len; |