Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HardenedBSD
HardenedBSD
Commits
80259b6c
Commit
80259b6c
authored
May 22, 2018
by
Navdeep Parhar
Browse files
cxgbe(4): Only valid filters are expected to have a valid tid.
parent
a99ee60b
Changes
1
Hide whitespace changes
Inline
Side-by-side
sys/dev/cxgbe/t4_filter.c
View file @
80259b6c
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment