cxgbe(4): Only valid filters are expected to have a valid tid.
This commit is contained in:
parent
51c77ad258
commit
208e1b17d5
@ -316,9 +316,9 @@ get_filter(struct adapter *sc, struct t4_filter *t)
|
||||
|
||||
mtx_lock(&sc->tids.ftid_lock);
|
||||
f = &sc->tids.ftid_tab[t->idx];
|
||||
MPASS(f->tid == sc->tids.ftid_base + t->idx);
|
||||
for (i = t->idx; i < nfilters; i++, f++) {
|
||||
if (f->valid) {
|
||||
MPASS(f->tid == sc->tids.ftid_base + i);
|
||||
t->idx = i;
|
||||
t->l2tidx = f->l2te ? f->l2te->idx : 0;
|
||||
t->smtidx = f->smtidx;
|
||||
|
Loading…
Reference in New Issue
Block a user