]> 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>
Wed, 20 Nov 2024 08:34:51 +0000 (09:34 +0100)
commitf8dd0b7e42b8ebbb0544a18b79e090be2e28daf6
tree55286997e9842ece86c5a34fa1479f504d12e05c
parentb15d6ecade7f85f14ad24c57b69210781dc2228a
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