]> git.ipfire.org Git - people/arne_f/kernel.git/commit
netfilter: layer7: ct memory optimization
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 6 Mar 2017 08:15:09 +0000 (09:15 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 4 Nov 2021 08:07:25 +0000 (09:07 +0100)
commit474d42dfb63d8163cc06b00d5d4ddf0075a0643b
tree57938e5550d5cda475a460e2a5300ecdf7466ae0
parent811d57b22a48c606374c0822424caefaa37f437b
netfilter: layer7: ct memory optimization

The original code reserves new memory for every ct entry
for the protocol name.
Now the strings are cached and all ct entries points to the
same strings in the cace.
This use less memory if many connections are there.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
net/netfilter/nf_conntrack_core.c
net/netfilter/xt_layer7.c