Re: [PATCH net] bnxt_en: Gate TPH enablement behind BNXT_SUPPORTS_QUEUE_API check

From: Jakub Kicinski

Date: Thu Aug 20 2026 - 13:47:53 EST


On Wed, 19 Aug 2026 15:18:49 +0530 Pavan Chebbi wrote:
> > /* Enable TPH support as part of IRQ request */
> > - rc = pcie_enable_tph(bp->pdev, PCI_TPH_ST_IV_MODE);
> > - if (!rc)
> > - bp->tph_mode = PCI_TPH_ST_IV_MODE;
> > + if (BNXT_SUPPORTS_QUEUE_API(bp)) {
>
> IMO we should not gate pcie_enable_tph() on BNXT_SUPPORTS_QUEUE_API,
> since TPH's initial steering-tag placement is valid on its own and
> re-steering may never be needed in some cases?
> So in these cases it simply disables the feature.

Since irqs are requested at open wouldn't this mean that users who
program affinity (all serious users?) will have the wrong TPH? Which
is presumably worse than no TPH at all?

IMHO the simplicity and consistency is good. AFAIU queue API is
supported on fairly old bnxt NICs so the combination of CPU needing
TPH and NIC design being 15(?) years old is rather unlikely in the
first place. The real scenario where users may run into no queue API
support is FW being old, in which case FW should be updated?