RE: [PATCH net-next] net: mana: Use the HWC destination queues reported by the hardware

From: Haiyang Zhang

Date: Thu Sep 03 2026 - 15:10:38 EST




> -----Original Message-----
> From: Manish Awasthi <mawasthi@xxxxxxxxxxxxxxxxxxx>
> Sent: Thursday, September 3, 2026 2:41 PM
> To: KY Srinivasan <kys@xxxxxxxxxxxxx>; Haiyang Zhang
> <haiyangz@xxxxxxxxxxxxx>; wei.liu@xxxxxxxxxx; Dexuan Cui
> <DECUI@xxxxxxxxxxxxx>; Long Li <longli@xxxxxxxxxxxxx>;
> andrew+netdev@xxxxxxx; davem@xxxxxxxxxxxxx; edumazet@xxxxxxxxxx;
> kuba@xxxxxxxxxx; pabeni@xxxxxxxxxx
> Cc: linux-hyperv@xxxxxxxxxxxxxxx; netdev@xxxxxxxxxxxxxxx; linux-
> kernel@xxxxxxxxxxxxxxx; horms@xxxxxxxxxx; gargaditya@xxxxxxxxxxxxxxxxxxx;
> ernis@xxxxxxxxxxxxxxxxxxx; kees@xxxxxxxxxx; Paul Rosswurm
> <paulros@xxxxxxxxxxxxx>
> Subject: [PATCH net-next] net: mana: Use the HWC destination queues
> reported by the hardware
>
> mana_hwc_send_request() gates the HWC destination queue IDs on
> gc->is_pf, which the PCI probe derives from the device ID.
>
> The gate is not needed. hwc->pf_dest_vrq_id and hwc->pf_dest_vrcq_id
> are only ever assigned from the HWC_INIT_DATA_PF_DEST_RQ_ID and
> HWC_INIT_DATA_PF_DEST_CQ_ID init events, and the hardware always
> reports values that are valid for the function it sends them to.
>
> Signed-off-by: Manish Awasthi <mawasthi@xxxxxxxxxxxxxxxxxxx>

Reviewed-by: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>