Page MenuHomeFreeBSD

D46378.id.diff
No OneTemporary

D46378.id.diff

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

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)

Event Timeline