Re: [PATCH net-next v11 1/4] net: mana: prepare HWC ownership for safe reinitialization
From: Wei Hu
Date: Mon Nov 23 2026 - 10:22:34 EST
On Sat, Nov 21, 2026, netdev-bot+sashiko wrote:
> Should mana_ib unpublish the slot, wait for a grace period, and only then
> free the object, as the HWC teardown path in this patch does?
The HWC teardown protects the table itself, not the lifetime of each
RDMA CQ in it. The individual CQ race exists upstream; v12 leaves it
out of this series.
> Can this leak repeat without limit through the existing PCI recovery loop?
Yes, in v11. In v12, if probe cleanup can't get a DESTROY_HWC ack,
the driver doesn't schedule another PCI probe. If teardown fails during
removal for a driver-initiated rescan, it skips the rescan. A bound
device can retry the destroy. Final removal can still leak the last set
of HWC buffers: the PF may still be using them.
> What happens to setup_active when the PF returns possession with a
> well-formed ESTABLISH_HWC response that carries a non-zero status?
It stays set. Once the VF has submitted the queue addresses, an error
reply doesn't establish that the PF has dropped the mappings. The VF
still attempts DESTROY_HWC and waits for its ack before freeing them.
A reset notification isn't a substitute for that ack.
Thanks,
Wei