mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
netfilter: conntrack: fix nf_conntrack_expect_max default value in documentation
The documentation for nf_conntrack_expect_max incorrectly states that the
default value is nf_conntrack_buckets / 256. However, the code in
nf_conntrack_expect_init() shows:
nf_ct_expect_hsize = nf_conntrack_htable_size / 256;
nf_ct_expect_max = nf_ct_expect_hsize * 4;
This means the default value is actually nf_conntrack_buckets / 64
(i.e. 4 times the hash table size, which defaults to
nf_conntrack_buckets / 256).
Fix the documentation to reflect the correct default value and add
explanation of the calculation.
Signed-off-by: Shaojie Sun <sunshaojie@kylinos.cn>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
a8708aa9fe
commit
409df11c56
|
|
@ -44,7 +44,7 @@ nf_conntrack_events - BOOLEAN
|
|||
|
||||
nf_conntrack_expect_max - INTEGER
|
||||
Maximum size of expectation table. Default value is
|
||||
nf_conntrack_buckets / 256. Minimum is 1.
|
||||
nf_conntrack_buckets / 64. Minimum is 1.
|
||||
|
||||
nf_conntrack_frag6_high_thresh - INTEGER
|
||||
default 262144
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user