Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102014531
D46378.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
678 B
Referenced Files
None
Subscribers
None
D46378.id.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
@@ -175,7 +175,7 @@
{
struct lro_entry *le;
size_t size;
- unsigned i, elements;
+ unsigned i;
lc->lro_bad_csum = 0;
lc->lro_queued = 0;
@@ -190,11 +190,7 @@
LIST_INIT(&lc->lro_active);
/* create hash table to accelerate entry lookup */
- if (lro_entries > lro_mbufs)
- elements = lro_entries;
- else
- elements = lro_mbufs;
- lc->lro_hash = phashinit_flags(elements, M_LRO, &lc->lro_hashsz,
+ lc->lro_hash = phashinit_flags(lro_entries, M_LRO, &lc->lro_hashsz,
HASH_NOWAIT);
if (lc->lro_hash == NULL) {
memset(lc, 0, sizeof(*lc));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 7, 1:46 PM (19 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
11147416
Default Alt Text
D46378.id.diff (678 B)
Attached To
Mode
D46378: tcp: initialize the LRO hash table correctly
Attached
Detach File
Event Timeline
Log In to Comment