Commit 80259b6c authored by Navdeep Parhar's avatar Navdeep Parhar
Browse files

cxgbe(4): Only valid filters are expected to have a valid tid.

parent a99ee60b
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment