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

team: Add vlan tx offload to hw_enc_features



We should also enable team's vlan tx offload in hw_enc_features,
pass the vlan packets to the slave devices with vlan tci, let the
slave handle vlan tunneling offload implementation.

Fixes: 3268e5cb ("team: Advertise tunneling offload features")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 41477662
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1004,6 +1004,8 @@ static void __team_compute_features(struct team *team)

	team->dev->vlan_features = vlan_features;
	team->dev->hw_enc_features = enc_features | NETIF_F_GSO_ENCAP_ALL |
				     NETIF_F_HW_VLAN_CTAG_TX |
				     NETIF_F_HW_VLAN_STAG_TX |
				     NETIF_F_GSO_UDP_L4;
	team->dev->hard_header_len = max_hard_header_len;