]> git.ipfire.org Git - thirdparty/linux.git/commit
net: ravb: Allocate correct number of queues based on SoC support
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Thu, 23 Oct 2025 11:21:11 +0000 (12:21 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 25 Oct 2025 02:04:34 +0000 (19:04 -0700)
commit3912e804ff6a03693cc50d801ab840479f7b20ac
tree393c9de3b8a14c05fd2aa9bc68132b3b307c4bcc
parent9078e6c5f1de342ae0c2322c999bbab9c2ad08b7
net: ravb: Allocate correct number of queues based on SoC support

Use the per-SoC match data flag `nc_queues` to decide how many TX/RX
queues to allocate. If the SoC does not provide a network-control queue,
fall back to a single TX/RX queue. Obtain the match data before calling
alloc_etherdev_mqs() so the allocation is sized correctly.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://patch.msgid.link/20251023112111.215198-3-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/renesas/ravb_main.c