diff options
author | Li RongQing <lirongqing@baidu.com> | 2019-02-26 17:20:52 +0800 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-03-01 14:36:46 +0100 |
commit | 2e7b162c5e911050be84c86c6226a5e21bba5771 (patch) | |
tree | 52d6651b215a8a12ccb3dda7d93c3f8c6a1e20fa /net/netfilter/xt_mac.c | |
parent | netfilter: nf_tables: check the result of dereferencing base_chain->stats (diff) | |
download | linux-dev-2e7b162c5e911050be84c86c6226a5e21bba5771.tar.xz linux-dev-2e7b162c5e911050be84c86c6226a5e21bba5771.zip |
netfilter: nf_conntrack: ensure that CONNTRACK_LOCKS is power of 2
CONNTRACK_LOCKS is divisor when computer array index, if it is power of
2, compiler will optimize modulo operation as bitwise AND, or else
modulo will lower performance.
Suggested-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/xt_mac.c')
0 files changed, 0 insertions, 0 deletions