Skip to content

netfilter: reduce size of core data structures

Florian Westphal netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6netfilter: x_tables: reduce xt_action_param by 8 byteinclude/linux/netfilter/x_tables.h net/ipv6/netfilter/ip6_tables.c+2 -20 replies
2/6netfilter: reduce size of nf_hook_state on 32bit platformsinclude/linux/netfilter.h+2 -20 replies
3/6netfilter: nf_tables: add and use nft_sk helperinclude/net/netfilter/nf_tables.h net/ipv4/netfilter/nft_reject_ipv4.c net/ipv6/netfilter/nft_reject_ipv6.c +1 more+9 -40 replies
4/6netfilter: nf_tables: add and use nft_thoff helperinclude/net/netfilter/nf_tables.h net/netfilter/nf_tables_core.c net/netfilter/nf_tables_trace.c +5 more+23 -180 replies
5/6netfilter: nft_set_pktinfo_unspec: remove unused arginclude/net/netfilter/nf_tables.h include/net/netfilter/nf_tables_ipv4.h include/net/netfilter/nf_tables_ipv6.h +3 more+43 -520 replies
6/6netfilter: nf_tables: remove xt_action_param from nft_pktinfoinclude/net/netfilter/nf_tables.h include/net/netfilter/nf_tables_ipv4.h include/net/netfilter/nf_tables_ipv6.h +1 more+43 -340 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH nf-next 0/6] netfilter: reduce size of core data structures

This series reduces a few data structures by moving members around or switching to a smaller type.

Also, this removes xt_action_param from nft_pktinfo, the former can be inited on-stack when needed in the nft_compat expression.

Florian Westphal (6):
netfilter: x_tables: reduce xt_action_param by 8 byte
netfilter: reduce size of nf_hook_state on 32bit platforms
netfilter: nf_tables: add and use nft_sk helper
netfilter: nf_tables: add and use nft_thoff helper
netfilter: nft_set_pktinfo_unspec: remove unused arg
netfilter: nf_tables: remove xt_action_param from nft_pktinfo

 include/linux/netfilter.h              |  4 +--
 include/linux/netfilter/x_tables.h     |  2 +-
 include/net/netfilter/nf_tables.h      | 34 +++++++++++++--------
 include/net/netfilter/nf_tables_ipv4.h | 40 +++++++++++-------------
 include/net/netfilter/nf_tables_ipv6.h | 42 ++++++++++++--------------
 net/ipv4/netfilter/nft_reject_ipv4.c   |  2 +-
 net/ipv6/netfilter/ip6_tables.c        |  2 +-
 net/ipv6/netfilter/nft_reject_ipv6.c   |  2 +-
 net/netfilter/nf_tables_core.c         |  2 +-
 net/netfilter/nf_tables_trace.c        |  6 ++--
 net/netfilter/nft_chain_filter.c       | 26 ++++++++--------
 net/netfilter/nft_chain_nat.c          |  4 +--
 net/netfilter/nft_chain_route.c        |  4 +--
 net/netfilter/nft_compat.c             | 28 +++++++++++------
 net/netfilter/nft_exthdr.c             |  8 ++---
 net/netfilter/nft_flow_offload.c       |  2 +-
 net/netfilter/nft_payload.c            | 10 +++---
 net/netfilter/nft_reject_inet.c        |  4 +--
 net/netfilter/nft_synproxy.c           |  4 +--
 net/netfilter/nft_tproxy.c             |  4 +--
 20 files changed, 120 insertions(+), 110 deletions(-)
Signature · 1 line
2.26.3