diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-06-26 16:08:44 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-26 08:56:35 -0700 |
commit | 30d8177e8ac776d89d387fad547af6a0f599210e (patch) | |
tree | 18f76d8f92bcd7eebfcf6b1aeb6d493969ba244f /net/smc/af_smc.c | |
parent | b8e8a86337c25941cb06e9a1c8ee01ab9aab0cc2 (diff) |
bonding: Always enable vlan tx offload
We build vlan on top of bonding interface, which vlan offload
is off, bond mode is 802.3ad (LACP) and xmit_hash_policy is
BOND_XMIT_POLICY_ENCAP34.
Because vlan tx offload is off, vlan tci is cleared and skb push
the vlan header in validate_xmit_vlan() while sending from vlan
devices. Then in bond_xmit_hash, __skb_flow_dissect() fails to
get information from protocol headers encapsulated within vlan,
because 'nhoff' is points to IP header, so bond hashing is based
on layer 2 info, which fails to distribute packets across slaves.
This patch always enable bonding's vlan tx offload, pass the vlan
packets to the slave devices with vlan tci, let them to handle
vlan implementation.
Fixes: 278339a42a1b ("bonding: propogate vlan_features to bonding master")
Suggested-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/af_smc.c')
0 files changed, 0 insertions, 0 deletions