cxgbe(4): netmap-only interrupts for a VI do not have an associated rxq
or ofld_rxq and should be ignored by vi_intr_iq. MFC after: 3 days. Sponsored by: Chelsio Communications
This commit is contained in:
parent
947572b4ee
commit
c8da9163bf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=318263
@ -969,6 +969,11 @@ vi_intr_iq(struct vi_info *vi, int idx)
|
||||
return (&sc->sge.fwq);
|
||||
|
||||
nintr = vi->nintr;
|
||||
#ifdef DEV_NETMAP
|
||||
/* Do not consider any netmap-only interrupts */
|
||||
if (vi->flags & INTR_RXQ && vi->nnmrxq > vi->nrxq)
|
||||
nintr -= vi->nnmrxq - vi->nrxq;
|
||||
#endif
|
||||
KASSERT(nintr != 0,
|
||||
("%s: vi %p has no exclusive interrupts, total interrupts = %d",
|
||||
__func__, vi, sc->intr_count));
|
||||
|
Loading…
Reference in New Issue
Block a user