Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106133518
D4825.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
D4825.diff
View Options
Index: sys/netinet/tcp_lro.h
===================================================================
--- sys/netinet/tcp_lro.h
+++ sys/netinet/tcp_lro.h
@@ -79,6 +79,7 @@
int lro_flushed;
int lro_bad_csum;
int lro_cnt;
+ int lro_hiwat;
struct lro_head lro_active;
struct lro_head lro_free;
Index: sys/netinet/tcp_lro.c
===================================================================
--- sys/netinet/tcp_lro.c
+++ sys/netinet/tcp_lro.c
@@ -77,6 +77,7 @@
lc->lro_queued = 0;
lc->lro_flushed = 0;
lc->lro_cnt = 0;
+ lc->lro_hiwat = 65535;
SLIST_INIT(&lc->lro_free);
SLIST_INIT(&lc->lro_active);
@@ -501,7 +502,7 @@
}
/* Flush now if appending will result in overflow. */
- if (le->p_len > (65535 - tcp_data_len)) {
+ if (le->p_len > (lc->lro_hiwat - tcp_data_len)) {
SLIST_REMOVE(&lc->lro_active, le, lro_entry, next);
tcp_lro_flush(lc, le);
break;
@@ -559,7 +560,7 @@
* If a possible next full length packet would cause an
* overflow, pro-actively flush now.
*/
- if (le->p_len > (65535 - lc->ifp->if_mtu)) {
+ if (le->p_len > (lc->lro_hiwat - lc->ifp->if_mtu)) {
SLIST_REMOVE(&lc->lro_active, le, lro_entry, next);
tcp_lro_flush(lc, le);
} else
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 11:08 PM (11 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15608772
Default Alt Text
D4825.diff (1 KB)
Attached To
Mode
D4825: tcp/lro: Add network driver configurable LRO entry depth
Attached
Detach File
Event Timeline
Log In to Comment