]> git.baikalelectronics.ru Git - kernel.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)
commitf5331316eb18cb5e8b8189b03cfcb9fe4f738e85
treeb703ca66aedb250f1a85df08f1b254e2137ec512
parent7bc1efbadda91758de6efca22d3e1b38cd45fa8f
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