Commit b803d1f
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>1 parent 998b85f commit b803d1f
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
182 | 190 | | |
183 | 191 | | |
184 | 192 | | |
| |||
1457 | 1465 | | |
1458 | 1466 | | |
1459 | 1467 | | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
1460 | 1474 | | |
1461 | 1475 | | |
1462 | 1476 | | |
| |||
2451 | 2465 | | |
2452 | 2466 | | |
2453 | 2467 | | |
2454 | | - | |
2455 | | - | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
2456 | 2471 | | |
2457 | 2472 | | |
2458 | 2473 | | |
| |||
0 commit comments