]> git.ipfire.org Git - people/ms/linux.git/commit
netfilter: layer7: ct memory optimization
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 6 Mar 2017 08:15:09 +0000 (09:15 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 28 Sep 2022 09:35:13 +0000 (09:35 +0000)
commitb2277fb1e1d78881295f73e3f4ac8fcfe0ab0e4f
treefa498b61f8698883124afb7887f716db6b344c1e
parentf0ca5e10262f989e103d1a09f19df0bc5253e5fa
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