Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee429742 authored by YueHaibing's avatar YueHaibing Committed by David S. Miller
Browse files

team: Always enable vlan tx offload



We should rather have vlan_tci filled all the way down
to the transmitting netdevice and let it do the hw/sw
vlan implementation.

Suggested-by: default avatarJiri Pirko <jiri@resnulli.us>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8a53058b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2128,12 +2128,12 @@ static void team_setup(struct net_device *dev)
	dev->features |= NETIF_F_NETNS_LOCAL;

	dev->hw_features = TEAM_VLAN_FEATURES |
			   NETIF_F_HW_VLAN_CTAG_TX |
			   NETIF_F_HW_VLAN_CTAG_RX |
			   NETIF_F_HW_VLAN_CTAG_FILTER;

	dev->hw_features |= NETIF_F_GSO_ENCAP_ALL | NETIF_F_GSO_UDP_L4;
	dev->features |= dev->hw_features;
	dev->features |= NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_HW_VLAN_STAG_TX;
}

static int team_newlink(struct net *src_net, struct net_device *dev,