diff options
| author | Harald Welte <[email protected]> | 2006-03-21 01:56:32 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2006-03-21 01:56:32 +0000 |
| commit | dc808fe28db59fadf4ec32d53f62477fa28f3be8 (patch) | |
| tree | 2d7033e5808a63d7fb1bddc452d1ec0b2f3d381a /net/dccp/ccids/ccid2.c | |
| parent | [BNX2]: include <linux/vmalloc.h> (diff) | |
| download | kernel-dc808fe28db59fadf4ec32d53f62477fa28f3be8.tar.gz kernel-dc808fe28db59fadf4ec32d53f62477fa28f3be8.zip | |
[NETFILTER] nf_conntrack: clean up to reduce size of 'struct nf_conn'
This patch moves all helper related data fields of 'struct nf_conn'
into a separate structure 'struct nf_conn_help'. This new structure
is only present in conntrack entries for which we actually have a
helper loaded.
Also, this patch cleans up the nf_conntrack 'features' mechanism to
resemble what the original idea was: Just glue the feature-specific
data structures at the end of 'struct nf_conn', and explicitly
re-calculate the pointer to it when needed rather than keeping
pointers around.
Saves 20 bytes per conntrack on my x86_64 box. A non-helped conntrack
is 276 bytes. We still need to save another 20 bytes in order to fit
into to target of 256bytes.
Signed-off-by: Harald Welte <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/dccp/ccids/ccid2.c')
0 files changed, 0 insertions, 0 deletions
