summaryrefslogtreecommitdiffstats
path: root/drivers/net/team
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-08-08 08:22:47 +0200
committerDavid S. Miller <davem@davemloft.net>2019-08-09 07:41:41 +0200
commit227f2f030e28d8783c3d10ce70ff4ba79cad653f (patch)
treeee4e4c9e91a5631ffa2540c8c88da51d070712af /drivers/net/team
parentnet/tls: prevent skb_orphan() from leaking TLS plain text with offload (diff)
downloadlinux-227f2f030e28d8783c3d10ce70ff4ba79cad653f.tar.xz
linux-227f2f030e28d8783c3d10ce70ff4ba79cad653f.zip
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: 3268e5cb494d ("team: Advertise tunneling offload features") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/team')
-rw-r--r--drivers/net/team/team.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c
index abfa0da9bbd2..e8089def5a46 100644
--- a/drivers/net/team/team.c
+++ b/drivers/net/team/team.c
@@ -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;