Increase the max dummynet hash size from 1024 to 65536. Default is still
1024. Silence on: -net, -ipfw 4weeks+ Reviewed by: dd Approved by: knu (mentor) MFC after: 3 weeks
This commit is contained in:
parent
1d6055e77c
commit
927a76bb5e
@ -1347,7 +1347,7 @@ Default value is 64 controlled by the
|
||||
.Xr sysctl 8
|
||||
variable
|
||||
.Em net.inet.ip.dummynet.hash_size ,
|
||||
allowed range is 16 to 1024.
|
||||
allowed range is 16 to 65536.
|
||||
.Pp
|
||||
.It Cm mask Ar mask-specifier
|
||||
The
|
||||
|
@ -1463,8 +1463,8 @@ alloc_hash(struct dn_flow_set *x, struct dn_flow_set *pfs)
|
||||
l = dn_hash_size;
|
||||
if (l < 4)
|
||||
l = 4;
|
||||
else if (l > 1024)
|
||||
l = 1024;
|
||||
else if (l > DN_MAX_HASH_SIZE)
|
||||
l = DN_MAX_HASH_SIZE;
|
||||
x->rq_size = l;
|
||||
} else /* one is enough for null mask */
|
||||
x->rq_size = 1;
|
||||
|
@ -76,6 +76,12 @@ typedef u_int64_t dn_key ; /* sorting key */
|
||||
*/
|
||||
#define OFFSET_OF(type, field) ((int)&( ((type *)0)->field) )
|
||||
|
||||
/*
|
||||
* The maximum hash table size for queues. This value must be a power
|
||||
* of 2.
|
||||
*/
|
||||
#define DN_MAX_HASH_SIZE 65536
|
||||
|
||||
/*
|
||||
* A heap entry is made of a key and a pointer to the actual
|
||||
* object stored in the heap.
|
||||
|
Loading…
Reference in New Issue
Block a user