netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nf-next 0/2] modularize br_netfilter
@ 2014-09-22 12:16 Pablo Neira Ayuso
  2014-09-22 12:16 ` [PATCH nf-next 1/2] netfilter: bridge: nf_bridge_copy_header as static inline in header Pablo Neira Ayuso
  2014-09-22 12:16 ` [PATCH nf-next] netfilter: move br_netfilter out of the bridge core Pablo Neira Ayuso
  0 siblings, 2 replies; 4+ messages in thread
From: Pablo Neira Ayuso @ 2014-09-22 12:16 UTC (permalink / raw)
  To: netfilter-devel; +Cc: kaber, fw

Hi,

I'm posting this series to take over the discussion on br_netfilter that
Florian triggered with his initial patch.

At this moment, I see two possibilities:

1) Add glue code to make br_netfilter look like it is still available from
   the bridge core and spot a warning to announce deprecation in two years
   or so.

2) Modularize br_netfilter so users can control if this feature is
   enabled/disabled through modprobe/rmmod.

Regarding 1), Patrick suggested that users may overlook the warning message
and things will break after that time.

On top of that I'm not sure anymore it is worth the effort to work on 1), given
that the design problems and limitations of br_netfilter. We cannot obviously
get rid of br_netfilter, but we can fence it and let users easily undo the
damage by including 'modprobe br_netfilter' in their scripts if they really
need it.

Let me know, thanks.

Pablo Neira Ayuso (2):
  netfilter: bridge: nf_bridge_copy_header as static inline in header
  netfilter: move br_netfilter out of the bridge core

 include/linux/netfilter_bridge.h       |   50 +++++++++++---
 include/linux/skbuff.h                 |   12 ++--
 include/net/neighbour.h                |    2 +-
 include/net/netfilter/ipv4/nf_reject.h |    2 +-
 include/net/netfilter/ipv6/nf_reject.h |    2 +-
 net/Kconfig                            |    2 +-
 net/bridge/Makefile                    |    5 +-
 net/bridge/br.c                        |   14 ++--
 net/bridge/br_device.c                 |    4 +-
 net/bridge/br_forward.c                |    2 +
 net/bridge/br_input.c                  |    1 +
 net/bridge/br_netfilter.c              |  116 +++++---------------------------
 net/bridge/br_netlink.c                |    2 +-
 net/bridge/br_nf_core.c                |   96 ++++++++++++++++++++++++++
 net/bridge/br_private.h                |   12 ++--
 net/bridge/br_sysfs_br.c               |    4 +-
 16 files changed, 186 insertions(+), 140 deletions(-)
 create mode 100644 net/bridge/br_nf_core.c

-- 
1.7.10.4


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

end of thread, other threads:[~2014-09-25 11:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-22 12:16 [PATCH nf-next 0/2] modularize br_netfilter Pablo Neira Ayuso
2014-09-22 12:16 ` [PATCH nf-next 1/2] netfilter: bridge: nf_bridge_copy_header as static inline in header Pablo Neira Ayuso
2014-09-22 12:16 ` [PATCH nf-next] netfilter: move br_netfilter out of the bridge core Pablo Neira Ayuso
2014-09-25 11:25   ` Florian Westphal

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).