macvlan: Initialize vlan_features to turn on offload support.
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/net/macvlan.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/macvlan.c +1 -0
@@ -646,6 +646,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;
Signature · 1 line
1.9.3
From: Vlad Yasevich <[email protected]>
Date: Thu, 31 Jul 2014 10:30:25 -0400
Quoted 6 lines
Macvlan devices do not initialize
vlan_features. As a result, any vlan devices configured on top of macvlans perform very poorly. Initializevlan_featuresbased on the vlan features of the lower-level device.Signed-off-by Vlad Yasevich <[email protected]>
Applied, thanks.