svn commit: r334058 - head/sys/dev/cxgbe
Navdeep Parhar
np at FreeBSD.org
Tue May 22 16:23:15 UTC 2018
Author: np
Date: Tue May 22 16:23:14 2018
New Revision: 334058
URL: https://svnweb.freebsd.org/changeset/base/334058
Log:
cxgbe(4): Only valid filters are expected to have a valid tid.
Modified:
head/sys/dev/cxgbe/t4_filter.c
Modified: head/sys/dev/cxgbe/t4_filter.c
==============================================================================
--- head/sys/dev/cxgbe/t4_filter.c Tue May 22 16:19:48 2018 (r334057)
+++ head/sys/dev/cxgbe/t4_filter.c Tue May 22 16:23:14 2018 (r334058)
@@ -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;
More information about the svn-src-all
mailing list