Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175807776
D60589.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1013 B
Referenced Files
None
Subscribers
None
D60589.diff
View Options
diff --git a/sys/netgraph/ng_ksocket.c b/sys/netgraph/ng_ksocket.c
--- a/sys/netgraph/ng_ksocket.c
+++ b/sys/netgraph/ng_ksocket.c
@@ -51,6 +51,7 @@
#include <sys/kernel.h>
#include <sys/mbuf.h>
#include <sys/proc.h>
+#include <sys/epoch.h>
#include <sys/malloc.h>
#include <sys/ctype.h>
#include <sys/protosw.h>
@@ -1119,6 +1120,7 @@
static void
ng_ksocket_incoming2(node_p node, hook_p hook, void *arg1, int arg2)
{
+ struct epoch_tracker et;
struct socket *so = arg1;
const priv_p priv = NG_NODE_PRIVATE(node);
struct ng_mesg *response;
@@ -1231,7 +1233,9 @@
}
sendit: /* Forward data with optional peer sockaddr as packet tag */
+ NET_EPOCH_ENTER(et);
NG_SEND_DATA_ONLY(error, priv->hook, m);
+ NET_EPOCH_EXIT(et);
}
/*
@@ -1243,8 +1247,11 @@
struct mbuf *m;
m = m_gethdr(M_NOWAIT, MT_DATA);
- if (m != NULL)
+ if (m != NULL) {
+ NET_EPOCH_ENTER(et);
NG_SEND_DATA_ONLY(error, priv->hook, m);
+ NET_EPOCH_EXIT(et);
+ }
priv->flags |= KSF_EOFSEEN;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 14, 12:53 PM (6 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40613874
Default Alt Text
D60589.diff (1013 B)
Attached To
Mode
D60589: netgraph/ng_ksocket: Enter epoch on NG_SEND_DATA_ONLY
Attached
Detach File
Event Timeline
Log In to Comment