Skip to content

netfilter: x_tables: remove ipt_unregister_table

Florian Westphal netfilter-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 1 replyIn review
  2. v112 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12netfilter: ebtables: remove the 3 ebtables pointers from struct netinclude/linux/netfilter_bridge/ebtables.h include/net/netns/x_tables.h net/bridge/netfilter/ebtable_broute.c +3 more+58 -640 replies
2/12netfilter: x_tables: remove ipt_unregister_tableinclude/linux/netfilter_ipv4/ip_tables.h include/linux/netfilter_ipv6/ip6_tables.h net/ipv4/netfilter/ip_tables.c +3 more+2 -250 replies
3/12netfilter: add xt_find_tableinclude/linux/netfilter/x_tables.h net/netfilter/x_tables.c+18 -00 replies
4/12netfilter: iptables: unregister the tables by nameinclude/linux/netfilter_ipv4/ip_tables.h net/ipv4/netfilter/ip_tables.c net/ipv4/netfilter/iptable_filter.c +4 more+23 -350 replies
5/12netfilter: ip6tables: unregister the tables by nameinclude/linux/netfilter_ipv6/ip6_tables.h net/ipv6/netfilter/ip6_tables.c net/ipv6/netfilter/ip6table_filter.c +4 more+24 -350 replies
6/12netfilter: arptables: unregister the tables by nameinclude/linux/netfilter_arp/arp_tables.h net/ipv4/netfilter/arp_tables.c net/ipv4/netfilter/arptable_filter.c+14 -120 replies
7/12netfilter: x_tables: remove paranoia testsnet/ipv4/netfilter/arptable_filter.c net/ipv4/netfilter/iptable_filter.c net/ipv4/netfilter/iptable_mangle.c +8 more+0 -330 replies
8/12netfilter: xt_nat: pass table to hookfnnet/ipv4/netfilter/iptable_nat.c net/ipv6/netfilter/ip6table_nat.c+69 -200 replies
9/12netfilter: ip_tables: pass table pointer via nf_hook_opsinclude/linux/netfilter/x_tables.h include/linux/netfilter_ipv4/ip_tables.h net/ipv4/netfilter/ip_tables.c +6 more+71 -560 replies
10/12netfilter: arp_tables: pass table pointer via nf_hook_opsinclude/linux/netfilter_arp/arp_tables.h net/ipv4/netfilter/arp_tables.c net/ipv4/netfilter/arptable_filter.c+32 -190 replies
11/12netfilter: ip6_tables: pass table pointer via nf_hook_opsinclude/linux/netfilter_ipv6/ip6_tables.h net/ipv6/netfilter/ip6_tables.c net/ipv6/netfilter/ip6table_filter.c +4 more+63 -570 replies
12/12netfilter: remove all xt_table anchors from struct netinclude/net/netns/ipv4.h include/net/netns/ipv6.h+0 -190 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH nf-next v2 00/12] netfilter: x_tables: remove ipt_unregister_table

This change removes all xt_table pointers from struct net.

v2: fix "no previous prototype for 'ipt_unregister_table'" warning in patch 2.

The various ip(6)table_foo incarnations are updated to expect that the table is passed as 'void *priv' argument that netfilter core passes to the hook functions.

This reduces the struct net size by 2 cachelines on x86_64.

Florian Westphal (12):
netfilter: ebtables: remove the 3 ebtables pointers from struct net
netfilter: x_tables: remove ipt_unregister_table
netfilter: add xt_find_table
netfilter: iptables: unregister the tables by name
netfilter: ip6tables: unregister the tables by name
netfilter: arptables: unregister the tables by name
netfilter: x_tables: remove paranoia tests
netfilter: xt_nat: pass table to hookfn
netfilter: ip_tables: pass table pointer via nf_hook_ops
netfilter: arp_tables: pass table pointer via nf_hook_ops
netfilter: ip6_tables: pass table pointer via nf_hook_ops
netfilter: remove all xt_table anchors from struct net

 include/linux/netfilter/x_tables.h        |  4 ++
 include/linux/netfilter_arp/arp_tables.h  |  6 +-
 include/linux/netfilter_bridge/ebtables.h |  9 ++-
 include/linux/netfilter_ipv4/ip_tables.h  |  9 +--
 include/linux/netfilter_ipv6/ip6_tables.h |  9 +--
 include/net/netns/ipv4.h                  | 10 ----
 include/net/netns/ipv6.h                  |  9 ---
 include/net/netns/x_tables.h              |  8 ---
 net/bridge/netfilter/ebtable_broute.c     | 10 ++--
 net/bridge/netfilter/ebtable_filter.c     | 26 +++------
 net/bridge/netfilter/ebtable_nat.c        | 27 +++------
 net/bridge/netfilter/ebtables.c           | 42 ++++++++++----
 net/ipv4/netfilter/arp_tables.c           | 57 ++++++++++++------
 net/ipv4/netfilter/arptable_filter.c      | 17 ++----
 net/ipv4/netfilter/ip_tables.c            | 70 ++++++++++++++---------
 net/ipv4/netfilter/iptable_filter.c       | 17 ++----
 net/ipv4/netfilter/iptable_mangle.c       | 23 +++-----
 net/ipv4/netfilter/iptable_nat.c          | 59 +++++++++++++------
 net/ipv4/netfilter/iptable_raw.c          | 17 ++----
 net/ipv4/netfilter/iptable_security.c     | 17 ++----
 net/ipv6/netfilter/ip6_tables.c           | 68 +++++++++++++---------
 net/ipv6/netfilter/ip6table_filter.c      | 17 ++----
 net/ipv6/netfilter/ip6table_mangle.c      | 24 +++-----
 net/ipv6/netfilter/ip6table_nat.c         | 58 +++++++++++++------
 net/ipv6/netfilter/ip6table_raw.c         | 17 ++----
 net/ipv6/netfilter/ip6table_security.c    | 17 ++----
 net/netfilter/x_tables.c                  | 18 ++++++
 27 files changed, 332 insertions(+), 333 deletions(-)
Signature · 1 line
2.26.3