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
36f42c5e
Commit
36f42c5e
authored
Dec 03, 2021
by
Gleb Smirnoff
Browse files
tcp_ccalgounload(): initialize the inpcb iterator when curvnet is set
Pointy hat to: glebius Fixes:
de2d4784
parent
4c018b5a
Changes
1
Show whitespace changes
Inline
Side-by-side
sys/netinet/tcp_subr.c
View file @
36f42c5e
...
...
@@ -2303,8 +2303,6 @@ tcp_ccalgounload(struct cc_algo *unload_algo)
struct
inpcb
*
inp
;
struct
tcpcb
*
tp
;
VNET_ITERATOR_DECL
(
vnet_iter
);
struct
inpcb_iterator
inpi
=
INP_ALL_ITERATOR
(
&
V_tcbinfo
,
INPLOOKUP_WLOCKPCB
);
/*
* Check all active control blocks across all network stacks and change
...
...
@@ -2314,6 +2312,8 @@ tcp_ccalgounload(struct cc_algo *unload_algo)
VNET_LIST_RLOCK
();
VNET_FOREACH
(
vnet_iter
)
{
CURVNET_SET
(
vnet_iter
);
struct
inpcb_iterator
inpi
=
INP_ALL_ITERATOR
(
&
V_tcbinfo
,
INPLOOKUP_WLOCKPCB
);
/*
* XXXGL: would new accept(2)d connections use algo being
* unloaded?
...
...
Write
Preview
Markdown
is supported
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