On Tue, Nov 24, 2026 at 09:42:09AM -0800, Dimitri Daskalakis wrote:
> On 11/24/26 4:33 AM, netd…@kernel.org wrote:
...
> > The commit message says the HW "resumes from where it stopped". However,
> > fbnic_csr.h only defines RESET and ENABLE for these CTL registers.
> >
> > The injected tests cover "HW is idled, but waiting for queues to idle
> > fails" and "HW never stops (rings left enabled, and wait skipped)".
> > Neither covers a CQ that was disabled while a completion was actually in
> > flight.
> >
> > Could this behavior be confirmed against the hardware documentation and
> > described in a comment? If that is not possible, other options would be
> > to disable the CQs only after the WQs/BDQs have gone idle, or to drop
> > the partial qt->cmpl.pkt state before resuming.
> >
> > The later patches in this series ("net: add netif_disable_subqueue()",
> > "eth: fbnic: wait for in-flight xmit in fbnic_queue_stop()" and "eth:
> > fbnic: wait for both TWQs of a Tx queue to go idle") do not seem to
> > change fbnic_nv_reenable() or the disable ordering.
> >
>
> The device keeps its ring state when we disable the ring. Only a reset
> clears the device state. The device will finish inflight completions,
> and when the driver restarts the queue we fire the interrupt which
> schedules the napi, so Rx/Tx does not get stuck waiting for a
> new completion.
>
> If for some reason the device truncates an Rx packet, then it will report
> an error via a metadata descriptor. The driver will purge the pkt data
> accordingly and move on.
>
> I don't think it's worth a re-spin to document this behavior.
Reviewed-by: Simon Horman <hor…@kernel.org>