[PATCH v2 nf-next 0/3] netfilter: conntrack: removal prealloc support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The prealloc flag is only used for the nat extension (and
that extension is not even needed anymore in some cases).

This removes prealloc, marks all extension structs as const and then
also simplifies the initial extension allocation.

Currently (default settings), each conntrack will use 64 bytes of the initial
extension allocation.

 include/net/netfilter/nf_conntrack_extend.h |   10 --
 net/netfilter/nf_conntrack_acct.c           |    2
 net/netfilter/nf_conntrack_ecache.c         |    2
 net/netfilter/nf_conntrack_extend.c         |   98 +++++-----------------------
 net/netfilter/nf_conntrack_helper.c         |    2
 net/netfilter/nf_conntrack_labels.c         |    2
 net/netfilter/nf_conntrack_seqadj.c         |    2
 net/netfilter/nf_conntrack_timeout.c        |    2
 net/netfilter/nf_conntrack_timestamp.c      |    2
 net/netfilter/nf_nat_core.c                 |    1
 10 files changed, 27 insertions(+), 96 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux