Message ID | 20190807023808.51976-1-yuehaibing@huawei.com |
---|---|
State | Changes Requested |
Delegated to: | David Miller |
Headers | show |
Series | team: Add vlan tx offload to hw_enc_features | expand |
On Wed, 7 Aug 2019 10:38:08 +0800 YueHaibing <yuehaibing@huawei.com> wrote: > We should also enable bonding's vlan tx offload in hw_enc_features, You mean team's vlan tx offload? > pass the vlan packets to the slave devices with vlan tci, let them s/let them to/let the slave/ > to handle vlan tunneling offload implementation. > > Fixes: 3268e5cb494d ("team: Advertise tunneling offload features") > Signed-off-by: YueHaibing <yuehaibing@huawei.com>
diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c index abfa0da..e8089de 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;
We should also enable bonding's vlan tx offload in hw_enc_features, pass the vlan packets to the slave devices with vlan tci, let them to handle vlan tunneling offload implementation. Fixes: 3268e5cb494d ("team: Advertise tunneling offload features") Signed-off-by: YueHaibing <yuehaibing@huawei.com> --- drivers/net/team/team.c | 2 ++ 1 file changed, 2 insertions(+)