netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nf-next 0/4] netfilter: bridge: remove broute hook
@ 2019-04-11 14:36 Florian Westphal
  2019-04-11 14:36 ` [PATCH nf-next 1/4] selftests: netfilter: add ebtables broute test case Florian Westphal
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Florian Westphal @ 2019-04-11 14:36 UTC (permalink / raw)
  To: netfilter-devel; +Cc: roopa, nikolay, netdev

This series removes the 'broute' hook by promoting ebtables' broute table
to a normal ebtables table (invoked via normal PREROUTING netfilter hook).

The downside is that nf_hook_slow() needs to be duplicated in br_input.c
(see patch 3).

However, I think its worth the price as this allows to remove the
br_should_route_hook.

There are quite some changes in bridge specific code, if you prefer
I can re-submit this for net-next instead of nf-next.

Main motivation is to provide 'ebtables -t broute' functionality via
nftables later on, this can then be done without touching the bridge
or netfilter core infrastructure again.

Florian Westphal (4):
      selftests: netfilter: add ebtables broute test case
      bridge: reduce size of input cb to 16 bytes
      bridge: netfilter: unroll NF_HOOK helper in bridge input path
      bridge: broute: make broute a real ebtables table

 include/linux/if_bridge.h                           |    3 
 include/net/netfilter/nf_queue.h                    |    3 
 net/bridge/br_arp_nd_proxy.c                        |   18 +-
 net/bridge/br_input.c                               |   72 +++++++--
 net/bridge/br_private.h                             |   15 +-
 net/bridge/netfilter/ebtable_broute.c               |   63 ++++++--
 net/bridge/netfilter/ebtables.c                     |    7 
 net/netfilter/core.c                                |    1 
 net/netfilter/nf_internals.h                        |    3 
 net/netfilter/nf_queue.c                            |    1 
 tools/testing/selftests/netfilter/Makefile          |    2 
 tools/testing/selftests/netfilter/bridge_brouter.sh |  146 ++++++++++++++++++++
 12 files changed, 268 insertions(+), 66 deletions(-)


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-04-11 23:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-11 14:36 [PATCH nf-next 0/4] netfilter: bridge: remove broute hook Florian Westphal
2019-04-11 14:36 ` [PATCH nf-next 1/4] selftests: netfilter: add ebtables broute test case Florian Westphal
2019-04-11 14:36 ` [PATCH nf-next 2/4] bridge: reduce size of input cb to 16 bytes Florian Westphal
2019-04-11 14:36 ` [PATCH nf-next 3/4] bridge: netfilter: unroll NF_HOOK helper in bridge input path Florian Westphal
2019-04-11 14:36 ` [PATCH nf-next 4/4] bridge: broute: make broute a real ebtables table Florian Westphal
2019-04-11 18:25 ` [PATCH nf-next 0/4] netfilter: bridge: remove broute hook David Miller
2019-04-11 19:46 ` Nikolay Aleksandrov
2019-04-11 23:48 ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).