Commit 2b288b8
net: airoha: Introduce ndo_select_queue callback
Airoha EN7581 SoC supports 32 Tx DMA rings used to feed packets to QoS
channels. Each channels supports 8 QoS queues where the user can apply
QoS scheduling policies. In a similar way, the user can configure hw
rate shaping for each QoS channel.
Introduce ndo_select_queue callback in order to select the tx queue
based on QoS channel and QoS queue. In particular, for dsa device select
QoS channel according to the dsa user port index, rely on port id
otherwise. Select QoS queue based on the skb priority.
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent 5f79559 commit 2b288b8
1 file changed
+28
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
2429 | 2431 | | |
2430 | 2432 | | |
2431 | 2433 | | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
| 2445 | + | |
| 2446 | + | |
| 2447 | + | |
| 2448 | + | |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
2432 | 2452 | | |
2433 | 2453 | | |
2434 | 2454 | | |
2435 | 2455 | | |
2436 | 2456 | | |
2437 | | - | |
2438 | | - | |
| 2457 | + | |
2439 | 2458 | | |
2440 | 2459 | | |
2441 | 2460 | | |
2442 | 2461 | | |
2443 | 2462 | | |
| 2463 | + | |
2444 | 2464 | | |
2445 | 2465 | | |
2446 | 2466 | | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
2447 | 2472 | | |
2448 | 2473 | | |
2449 | 2474 | | |
| |||
2617 | 2642 | | |
2618 | 2643 | | |
2619 | 2644 | | |
| 2645 | + | |
2620 | 2646 | | |
2621 | 2647 | | |
2622 | 2648 | | |
| |||
0 commit comments