Commit c2be7a5
committed
HSD #15012366445: drivers: net: stmmac_main: Add support for HW-accelerated VLAN Stripping
Currently, VLAN tag stripping is done by driver in stmmac_rx_vlan().
Add support for VLAN tag stripping by the MAC hardware for MAC drivers
that support it. This is done by adding rx_hw_vlan() and
set_hw_vlan_mode() callbacks at stmmac_ops struct which are called if
registered by the MAC driver.
This patch is applying at the higher level of the driver at stmmac_main
this will be upstreammed by IoTG team and thus it is decoupled from
the next patch.
Signed-off-by: Boon Khai Ng <boon.khai.ng@intel.com>1 parent dd1c68b commit c2be7a5
File tree
3 files changed
+38
-1
lines changed- drivers/net/ethernet/stmicro/stmmac
- include/linux
3 files changed
+38
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
116 | 120 | | |
117 | 121 | | |
118 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
119 | 127 | | |
120 | 128 | | |
121 | 129 | | |
| |||
368 | 376 | | |
369 | 377 | | |
370 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
371 | 383 | | |
372 | 384 | | |
373 | 385 | | |
| |||
475 | 487 | | |
476 | 488 | | |
477 | 489 | | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
478 | 494 | | |
479 | 495 | | |
480 | 496 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3412 | 3412 | | |
3413 | 3413 | | |
3414 | 3414 | | |
| 3415 | + | |
| 3416 | + | |
| 3417 | + | |
| 3418 | + | |
3415 | 3419 | | |
3416 | 3420 | | |
3417 | 3421 | | |
| |||
5390 | 5394 | | |
5391 | 5395 | | |
5392 | 5396 | | |
5393 | | - | |
| 5397 | + | |
| 5398 | + | |
| 5399 | + | |
| 5400 | + | |
| 5401 | + | |
| 5402 | + | |
| 5403 | + | |
| 5404 | + | |
5394 | 5405 | | |
5395 | 5406 | | |
5396 | 5407 | | |
| |||
5641 | 5652 | | |
5642 | 5653 | | |
5643 | 5654 | | |
| 5655 | + | |
| 5656 | + | |
| 5657 | + | |
| 5658 | + | |
5644 | 5659 | | |
5645 | 5660 | | |
5646 | 5661 | | |
| |||
5659 | 5674 | | |
5660 | 5675 | | |
5661 | 5676 | | |
| 5677 | + | |
| 5678 | + | |
| 5679 | + | |
5662 | 5680 | | |
5663 | 5681 | | |
5664 | 5682 | | |
| |||
7200 | 7218 | | |
7201 | 7219 | | |
7202 | 7220 | | |
| 7221 | + | |
| 7222 | + | |
7203 | 7223 | | |
7204 | 7224 | | |
7205 | 7225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| 274 | + | |
274 | 275 | | |
275 | 276 | | |
0 commit comments