]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bnx2x: Allow vfs to disable txvlan offload
authorMintz, Yuval <Yuval.Mintz@cavium.com>
Fri, 9 Jun 2017 14:17:01 +0000 (17:17 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Jun 2017 20:02:54 +0000 (16:02 -0400)
commit92f85f05caa51d844af6ea14ffbc7a786446a644
treeb703ca66aedb250f1a85df08f1b254e2137ec512
parentf6d4c7133257bb2d6f66723d11b19f1c49cdf2f7
bnx2x: Allow vfs to disable txvlan offload

VF clients are configured as enforced, meaning firmware is validating
the correctness of their ethertype/vid during transmission.
Once txvlan is disabled, VF would start getting SKBs for transmission
here vlan is on the payload - but it'll pass the packet's ethertype
instead of the vid, leading to firmware declaring it as malicious.

Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c