Re: [PATCH net-next 3/3] net: bcmgenet: allocate a single-queue netdev

From: Florian Fainelli

Date: Thu Jun 18 2026 - 06:51:05 EST




On 6/12/2026 1:59 PM, Nicolai Buchwitz wrote:
The driver only uses TX ring 0 and RX ring 0, so allocating a netdev
with GENET_MAX_MQ_CNT + 1 = 5 TX and 5 RX slots leaves four of each
unused. Switch to alloc_etherdev() which allocates exactly one queue
of each kind.

No functional change: netif_set_real_num_{tx,rx}_queues() already
clamps the visible queue count to 1.

Signed-off-by: Nicolai Buchwitz <nb@xxxxxxxxxxx>

Reviewed-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
--
Florian