Page MenuHomeFreeBSD

if_bnxt: Restore Rx CQ doorbell skip-when-idle optimization on P5
ClosedPublic

Authored by sumit.saxena_broadcom.com on Aug 3 2026, 1:02 PM.
Tags
None
Referenced Files
F175573652: D58613.id189200.diff
Sun, Oct 11, 7:11 PM
F175571379: D58613.id183292.diff
Sun, Oct 11, 6:56 PM
F175570405: D58613.diff
Sun, Oct 11, 6:51 PM
Unknown Object (File)
Sat, Oct 10, 9:51 AM
Unknown Object (File)
Sat, Oct 10, 8:37 AM
Unknown Object (File)
Wed, Oct 7, 5:40 PM
Unknown Object (File)
Thu, Sep 24, 11:15 PM
Unknown Object (File)
Mon, Sep 21, 6:47 AM
Subscribers

Details

Summary

The unconditional-doorbell fix for Whp/older NICs (always ring the Rx
CQ doorbell after processing Rx interrupts) had also been applied to
P5+ chips, discarding process_nq()'s work-done signal entirely and
losing the doorbell-skip optimization on P5+ when process_nq() finds
no CQ notification to act on.

Make process_nq() return whether it saw a CQ notification, and only
skip the Rx CQ doorbell on P5+ when it didn't; non-P5+ chips continue
to always ring it, since process_nq() isn't used on that path.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable