aboutsummaryrefslogtreecommitdiffstats
path: root/net/nsh/nsh.c
diff options
context:
space:
mode:
authorFlorian Westphal <[email protected]>2017-11-02 18:41:09 +0000
committerPablo Neira Ayuso <[email protected]>2017-11-06 15:48:38 +0000
commit5caaed151a68ae36aca2981cc245f5960a0a7603 (patch)
tree3be849f6eb823d7ed84742fcf48b1234f22cc700 /net/nsh/nsh.c
parentnetfilter: nft_hash: fix nft_hash_deactivate (diff)
downloadkernel-5caaed151a68ae36aca2981cc245f5960a0a7603.tar.gz
kernel-5caaed151a68ae36aca2981cc245f5960a0a7603.zip
netfilter: conntrack: don't cache nlattr_tuple_size result in nla_size
We currently call ->nlattr_tuple_size() once at register time and cache result in l4proto->nla_size. nla_size is the only member that is written to, avoiding this would allow to make l4proto trackers const. We can use ->nlattr_tuple_size() at run time, and cache result in the individual trackers instead. This is an intermediate step, next patch removes nlattr_size() callback and computes size at compile time, then removes nla_size. Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'net/nsh/nsh.c')
0 files changed, 0 insertions, 0 deletions