net: airoha: Fix channel configuration for ETS Qdisc
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 7 Jan 2025 22:26:28 +0000 (23:26 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 11 Jan 2025 21:09:10 +0000 (13:09 -0800)
commit7d0da8f862340c5f42f0062b8560b8d0971a6ac4
tree84d0e53f16bf71440623200d37fd2c2b34d63d38
parent10bc9761d12e440656062ef78cd889bbfa827dcf
net: airoha: Fix channel configuration for ETS Qdisc

Limit ETS QoS channel to AIROHA_NUM_QOS_CHANNELS in
airoha_tc_setup_qdisc_ets() in order to align the configured channel to
the value set in airoha_dev_select_queue().

Fixes: 20bf7d07c956 ("net: airoha: Add sched ETS offload support")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Link: https://patch.msgid.link/20250107-airoha-ets-fix-chan-v1-1-97f66ed3a068@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/airoha_eth.c