net: stmmac: Correct usage of maximum queue number macros
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Fri, 21 Feb 2025 05:18:18 +0000 (14:18 +0900)
committerJakub Kicinski <kuba@kernel.org>
Mon, 24 Feb 2025 22:24:14 +0000 (14:24 -0800)
commit352bc4513ec3907db71cb5674fb93a76fc341ca9
treec156d7749009d2117d80f91e00b9903cb5392c07
parent75bc3dab4e49b4daccb27ad6ce8ce2fcd253fc1b
net: stmmac: Correct usage of maximum queue number macros

The maximum numbers of each Rx and Tx queues are defined by
MTL_MAX_RX_QUEUES and MTL_MAX_TX_QUEUES respectively.

There are some places where Rx and Tx are used in reverse. There is no
issue when the Tx and Rx macros have the same value, but should correct
usage of macros for maximum queue number to keep consistency and prevent
unexpected mistakes.

Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Huacai Chen <chenhuacai@kernel.org>
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://patch.msgid.link/20250221051818.4163678-1-hayashi.kunihiko@socionext.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/common.h
drivers/net/ethernet/stmicro/stmmac/stmmac.h