net: mana: Add support for vlan tagging
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 9 Jun 2023 12:47:17 +0000 (05:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jun 2023 08:38:31 +0000 (09:38 +0100)
commitb803d1fded4085d268507a432dac8077ead68971
treee122dd798c166c1e24dc7259fa48320f651a4821
parent998b85f0468f0b4784da69c087f52149ae7ded13
net: mana: Add support for vlan tagging

To support vlan, use MANA_LONG_PKT_FMT if vlan tag is present in TX
skb. Then extract the vlan tag from the skb struct, and save it to
tx_oob for the NIC to transmit. For vlan tags on the payload, they
are accepted by the NIC too.

For RX, extract the vlan tag from CQE and put it into skb.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microsoft/mana/mana_en.c