Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2018 16:23:14 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334058 - head/sys/dev/cxgbe
Message-ID:  <201805221623.w4MGNElt098075@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805221623.w4MGNElt098075>