[PATCH 23/23] net: mana: Add support for vlan tagging
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 9 Jun 2023 12:47:17 +0000 (05:47 -0700)
committerRaspbian forward porter <root@raspbian.org>
Tue, 23 Jul 2024 19:44:04 +0000 (19:44 +0000)
commitea2613a2d0b6ad06cdf3372f1097e15101c7fb62
treeea79217ca99b160f4cb46beb09c81769b7bc5b4a
parent3c9cbd6faf95f40795b10cbc3f78576cb4b6a807
[PATCH 23/23] 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