Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111873433
D22153.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D22153.diff
View Options
Index: head/sys/netinet/ip_reass.c
===================================================================
--- head/sys/netinet/ip_reass.c
+++ head/sys/netinet/ip_reass.c
@@ -632,14 +632,17 @@
KASSERT(ifp != NULL, ("%s: ifp is NULL", __func__));
+ CURVNET_SET_QUIET(ifp->if_vnet);
+
/*
* Skip processing if IPv4 reassembly is not initialised or
* torn down by ipreass_destroy().
*/
- if (V_ipq_zone == NULL)
+ if (V_ipq_zone == NULL) {
+ CURVNET_RESTORE();
return;
+ }
- CURVNET_SET_QUIET(ifp->if_vnet);
for (i = 0; i < IPREASS_NHASH; i++) {
IPQ_LOCK(i);
/* Scan fragment list. */
Index: head/sys/netinet6/frag6.c
===================================================================
--- head/sys/netinet6/frag6.c
+++ head/sys/netinet6/frag6.c
@@ -307,16 +307,18 @@
KASSERT(ifp != NULL, ("%s: ifp is NULL", __func__));
+ CURVNET_SET_QUIET(ifp->if_vnet);
#ifdef VIMAGE
/*
* Skip processing if IPv6 reassembly is not initialised or
* torn down by frag6_destroy().
*/
- if (!V_frag6_on)
+ if (!V_frag6_on) {
+ CURVNET_RESTORE();
return;
+ }
#endif
- CURVNET_SET_QUIET(ifp->if_vnet);
for (bucket = 0; bucket < IP6REASS_NHASH; bucket++) {
IP6QB_LOCK(bucket);
head = IP6QB_HEAD(bucket);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 10, 3:43 PM (16 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17086123
Default Alt Text
D22153.diff (1 KB)
Attached To
Mode
D22153: Properly set VNET when nuking recvif from fragment queues
Attached
Detach File
Event Timeline
Log In to Comment