[PATCH 23/34] net: mana: Add support for vlan tagging
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 9 Jun 2023 12:47:17 +0000 (05:47 -0700)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 7 Feb 2025 09:43:47 +0000 (10:43 +0100)
commit1371e4729a7adf683f283fd8d08bcd83335ea64a
tree6ea84fbc3259b7c8d60c149fde2e7ca5af0e717d
parentaefb74d4dbf29f1531735a1879be7523af494bd9
[PATCH 23/34] 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>
(cherry picked from commit b803d1fded4085d268507a432dac8077ead68971)
Signed-off-by: Bastian Blank <waldi@debian.org>
Gbp-Pq: Topic features/all/ethernet-microsoft
Gbp-Pq: Name 0023-net-mana-Add-support-for-vlan-tagging.patch
drivers/net/ethernet/microsoft/mana/mana_en.c