RE: [PATCH net-next 1/4] net: mana: Introduce gdma_bus_ops for bus-specific operations

From: Haiyang Zhang

Date: Mon Sep 28 2026 - 15:17:55 EST




> -----Original Message-----
> From: Manish Awasthi <mawasthi@xxxxxxxxxxxxxxxxxxx>
> Sent: Thursday, September 24, 2026 1:31 PM
> To: KY Srinivasan <kys@xxxxxxxxxxxxx>; Haiyang Zhang
> <haiyangz@xxxxxxxxxxxxx>; wei.liu@xxxxxxxxxx; Dexuan Cui
> <DECUI@xxxxxxxxxxxxx>; longli@xxxxxxxxxxxxx; andrew+netdev@xxxxxxx;
> davem@xxxxxxxxxxxxx; edumazet@xxxxxxxxxx; kuba@xxxxxxxxxx;
> pabeni@xxxxxxxxxx; Konstantin Taranov <kotaranov@xxxxxxxxxxxxx>
> Cc: horms@xxxxxxxxxx; linux-hyperv@xxxxxxxxxxxxxxx;
> netdev@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; linux-
> rdma@xxxxxxxxxxxxxxx; bpf@xxxxxxxxxxxxxxx; Gupta, Nipun
> <nipun.gupta@xxxxxxx>; nikhil.agarwal@xxxxxxx;
> gargaditya@xxxxxxxxxxxxxxxxxxx; ernis@xxxxxxxxxxxxxxxxxxx;
> kees@xxxxxxxxxx; Paul Rosswurm <paulros@xxxxxxxxxxxxx>; Manish Awasthi
> <mawasthi@xxxxxxxxxxxxx>
> Subject: [PATCH net-next 1/4] net: mana: Introduce gdma_bus_ops for bus-
> specific operations
>
> Introduce per-device gdma_bus_ops for interrupt allocation, IRQ lookup,
> reset, servicing, and bus-specific capabilities. Route the shared GDMA
> code through these callbacks and provide the PCI implementation.
>
> Move common device bring-up and teardown into mana_gd_setup() and
> mana_gd_cleanup(), including hardware-channel initialization, device
> enumeration, interrupt-pool sizing, and servicing workqueue management.
> Record the vPort count for transport-specific queue sizing and keep shared
> IRQ context bookkeeping in the core.
>
> This prepares the driver for additional bus transports without duplicating
> the core or adding configuration checks throughout it.
>
> Signed-off-by: Manish Awasthi <mawasthi@xxxxxxxxxxxxxxxxxxx>


Reviewed-by: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>