netfilter: bridge: use rcu hook to resolve br_netfilter dependency
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 10 Mar 2015 09:27:18 +0000 (10:27 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 10 Mar 2015 14:03:02 +0000 (15:03 +0100)
commit1a4ba64d16a42c1b31d52b671accd7f9103e2626
treef1f61462f14d2017965dae56d82cd05d947cc854
parenta03a8dbe20eff6d57aae3147577bf84b52aba4e6
netfilter: bridge: use rcu hook to resolve br_netfilter dependency

e5de75b ("netfilter: bridge: move DNAT helper to br_netfilter") results
in the following link problem:

net/bridge/br_device.c:29: undefined reference to `br_nf_prerouting_finish_bridge`

Moreover it creates a hard dependency between br_netfilter and the
bridge core, which is what we've been trying to avoid so far.

Resolve this problem by using a hook structure so we reduce #ifdef
pollution and keep bridge netfilter specific code under br_netfilter.c
which was the original intention.

Reported-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/bridge/br_device.c
net/bridge/br_netfilter.c
net/bridge/br_private.h