net/bnx2x: handle guest VLAN for SR-IOV
authorSouvik Dey <sodey@rbbn.com>
Mon, 13 Apr 2020 23:09:30 +0000 (16:09 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:07 +0000 (13:57 +0200)
commit4ccbda1596de87e7f3cb798ac5fa2fdcce0d7a74
tree89d7a7a9706201422ec1d6cd94e466b12325586e
parent0d2870c4f78e2273b3f359ef49ecb60b494c9b0e
net/bnx2x: handle guest VLAN for SR-IOV

In case of bnx2xvf pmd, tx packets can support vland id in 2 ways:
1. Setting the mbuf ol_flags=PKT_TX_VLAN_PKT and passing the
vlanid in mbuf->vlan_tci.
2. The tx packet itself has the vlan id included in the packet.
The first case is working as expected but the second case where
the vlan id is included in thetx packets itself was found not
working as expected. To handle that we need to properly set the
start_bd bitfield and the vlan_or_ethertype instead of setting it
to just the ethertype in case of VF.

Signed-off-by: Souvik Dey <sodey@rbbn.com>
Acked-by: Rasesh Mody <rmody@marvell.com>
drivers/net/bnx2x/bnx2x.c