RE: [EXTERNAL] Re: [PATCH net-next v12 4/5] net: mana: support concurrent HWC requests

From: Wei Hu

Date: Sun Nov 29 2026 - 05:42:00 EST


On Sat, Nov 28, 2026, netdev-bot+sashiko@xxxxxxxxxx wrote:
> Can this throw away a reply the PF has already sent?

Yes. V12 can overwrite a reply the VF already stored if another request
times out before the sender runs. I'll fix that in v13 so the sender
gets the original reply, including any error from the PF.

> Should mana_hwc_check_deadlines() run before the reply in hand has been
> accepted?

Yes. The deadline is the full PF response timeout as seen by the VF.
If it expires before the VF accepts a posted command's reply, the PF
guarantees that old client DMA has stopped, even if the PF wrote the
reply on time and the VF serviced the interrupt late.

> Can this report a DESTROY_MR, DESTROY_DM or DESTROY_PD as successful
> when the PF never received it?

Yes. Once that timeout covers all posts on the channel, zero means
the teardown helper can finish local cleanup, not that the PF acked
the destroy. Ordinary requests get -ETIMEDOUT. A failed post or a wait
for a free slot gives no such guarantee. The HWC buffers still need a
DESTROY_HWC ack before they can be freed.

Thanks,
Wei

pw-bot: cr