net: airoha: Introduce ndo_select_queue callback
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 3 Jan 2025 12:17:03 +0000 (13:17 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 7 Jan 2025 11:32:50 +0000 (12:32 +0100)
commit2b288b81560b94958cd68bbe54673e55a1730c95
tree85e221c3eb424657a3baf32453b9c367a1edaaaa
parent5f795590380476f1c9b7ed0ac945c9b0269dc23a
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>
drivers/net/ethernet/mediatek/airoha_eth.c