Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108981260
D31648.id94064.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
D31648.id94064.diff
View Options
diff --git a/sys/netinet/tcp_lro.c b/sys/netinet/tcp_lro.c
--- a/sys/netinet/tcp_lro.c
+++ b/sys/netinet/tcp_lro.c
@@ -598,6 +598,9 @@
uint64_t now, tov;
struct bintime bt;
+#ifdef TCPHPTS
+ NET_EPOCH_ASSERT();
+#endif
if (LIST_EMPTY(&lc->lro_active))
return;
@@ -1177,8 +1180,6 @@
{
struct inpcb *inp;
- NET_EPOCH_ASSERT();
-
switch (pa->data.lro_type) {
#ifdef INET6
case LRO_TYPE_IPV6_TCP:
@@ -1369,6 +1370,7 @@
#ifdef TCPHPTS
int error;
+ NET_EPOCH_ASSERT();
CURVNET_SET(lc->ifp->if_vnet);
error = tcp_lro_flush_tcphpts(lc, le);
CURVNET_RESTORE();
@@ -1479,6 +1481,9 @@
uint64_t nseq;
unsigned x;
+#ifdef TCPHPTS
+ NET_EPOCH_ASSERT();
+#endif
/* check if no mbufs to flush */
if (lc->lro_mbuf_count == 0)
goto done;
@@ -1919,6 +1924,9 @@
void
tcp_lro_queue_mbuf(struct lro_ctrl *lc, struct mbuf *mb)
{
+#ifdef TCPHPTS
+ NET_EPOCH_ASSERT();
+#endif
/* sanity checks */
if (__predict_false(lc->ifp == NULL || lc->lro_mbuf_data == NULL ||
lc->lro_mbuf_max == 0)) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 31, 6:20 AM (10 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16356267
Default Alt Text
D31648.id94064.diff (1 KB)
Attached To
Mode
D31648: Enforce the network epoch contract at entry points in TCP LRO code
Attached
Detach File
Event Timeline
Log In to Comment