Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144021823
D7499.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
D7499.diff
View Options
Index: head/sys/netinet/tcp_lro.c
===================================================================
--- head/sys/netinet/tcp_lro.c
+++ head/sys/netinet/tcp_lro.c
@@ -42,6 +42,7 @@
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
+#include <sys/sysctl.h>
#include <net/if.h>
#include <net/if_var.h>
@@ -55,6 +56,7 @@
#include <netinet/ip_var.h>
#include <netinet/tcp.h>
#include <netinet/tcp_lro.h>
+#include <netinet/tcp_var.h>
#include <netinet6/ip6_var.h>
@@ -71,6 +73,14 @@
static int tcp_lro_rx2(struct lro_ctrl *lc, struct mbuf *m,
uint32_t csum, int use_hash);
+SYSCTL_NODE(_net_inet_tcp, OID_AUTO, lro, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
+ "TCP LRO");
+
+static unsigned tcp_lro_entries = TCP_LRO_ENTRIES;
+SYSCTL_UINT(_net_inet_tcp_lro, OID_AUTO, entries,
+ CTLFLAG_RDTUN | CTLFLAG_MPSAFE, &tcp_lro_entries, 0,
+ "default number of LRO entries");
+
static __inline void
tcp_lro_active_insert(struct lro_ctrl *lc, struct lro_head *bucket,
struct lro_entry *le)
@@ -91,7 +101,7 @@
int
tcp_lro_init(struct lro_ctrl *lc)
{
- return (tcp_lro_init_args(lc, NULL, TCP_LRO_ENTRIES, 0));
+ return (tcp_lro_init_args(lc, NULL, tcp_lro_entries, 0));
}
int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 4, 12:13 PM (4 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28434603
Default Alt Text
D7499.diff (1 KB)
Attached To
Mode
D7499: tcp/lro: Make # of LRO entries tunable
Attached
Detach File
Event Timeline
Log In to Comment