]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: rpfilter/fib: Populate flowic_l3mdev field
authorPhil Sutter <phil@nwl.cc>
Wed, 5 Oct 2022 16:07:05 +0000 (18:07 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 12 Oct 2022 12:08:15 +0000 (14:08 +0200)
commitf4ca96aadd077e19d9d7fd9fd69991f0aa3f59b3
tree4add7238511a0af8eea9fe77892887b0cb0bb2a0
parentc5a42381d20fe5b6e33f9bf048dc8e98ee61c26e
netfilter: rpfilter/fib: Populate flowic_l3mdev field

Use the introduced field for correct operation with VRF devices instead
of conditionally overwriting flowic_oif. This is a partial revert of
commit 07980f538cd5d ("netfilter: Fix rpfilter dropping vrf packets by
mistake"), implementing a simpler solution.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/ipv4/netfilter/ipt_rpfilter.c
net/ipv4/netfilter/nft_fib_ipv4.c
net/ipv6/netfilter/ip6t_rpfilter.c
net/ipv6/netfilter/nft_fib_ipv6.c