Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F114910562
D31648.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.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,7 @@
uint64_t now, tov;
struct bintime bt;
+ NET_EPOCH_ASSERT();
if (LIST_EMPTY(&lc->lro_active))
return;
@@ -1177,8 +1178,6 @@
{
struct inpcb *inp;
- NET_EPOCH_ASSERT();
-
switch (pa->data.lro_type) {
#ifdef INET6
case LRO_TYPE_IPV6_TCP:
@@ -1368,7 +1367,10 @@
/* Only optimise if there are multiple packets waiting. */
#ifdef TCPHPTS
int error;
+#endif
+ NET_EPOCH_ASSERT();
+#ifdef TCPHPTS
CURVNET_SET(lc->ifp->if_vnet);
error = tcp_lro_flush_tcphpts(lc, le);
CURVNET_RESTORE();
@@ -1479,6 +1481,7 @@
uint64_t nseq;
unsigned x;
+ NET_EPOCH_ASSERT();
/* check if no mbufs to flush */
if (lc->lro_mbuf_count == 0)
goto done;
@@ -1919,6 +1922,7 @@
void
tcp_lro_queue_mbuf(struct lro_ctrl *lc, struct mbuf *mb)
{
+ NET_EPOCH_ASSERT();
/* 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
Sat, Apr 19, 10:44 AM (19 m, 22 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17616082
Default Alt Text
D31648.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