]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: bridge: Don't sabotage nf_hook calls for an l3mdev slave
authorDavid Ahern <dsahern@gmail.com>
Tue, 26 Feb 2019 00:21:14 +0000 (16:21 -0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 1 Mar 2019 13:28:45 +0000 (14:28 +0100)
commitb16e23bc270e7d5f1cdbf7272953b3fc3e6e1a9b
tree4b51e3075257103df91a2fa59a217bfcd77336f2
parent0c5718605bcc52b79fa88340f90c40af9db9a742
netfilter: bridge: Don't sabotage nf_hook calls for an l3mdev slave

Followup to 72f605302239 ("netfilter: bridge: Don't sabotage nf_hook
calls from an l3mdev"). Some packets (e.g., ndisc) do not have the skb
device flipped to the l3mdev (e.g., VRF) device. Update ip_sabotage_in
to not drop packets for slave devices too. Currently, neighbor
solicitation packets for 'dev -> bridge (addr) -> vrf' setups are getting
dropped. This patch enables IPv6 communications for bridges with an
address that are enslaved to a VRF.

Fixes: 4d00fabf104d ("net: vrf: Add support for PREROUTING rules on vrf device")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/bridge/br_netfilter_hooks.c