All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH nf-next 0/5] netfilter: resolve fib+vrf issues
@ 2025-05-15 18:06 Florian Westphal
  2025-05-15 18:06 ` [PATCH nf-next 1/5] selftests: netfilter: nft_fib.sh: add 'type' mode tests Florian Westphal
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Florian Westphal @ 2025-05-15 18:06 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Florian Westphal

This series resolves various issues with the FIB expression
when used with VRFs.

First patch adds 'fib type' tests.
Second patch moves a VRF+fib test to nft_fib.sh where it belongs.

The 3rd patch fixes an inconistency where, in a VRF setup,
ipv4 and ipv6 fib provide different results for the same address
type (locally configured); this changes nft_fib_ipv6 to behave like ipv4.

4th patch fixes l3mdev handling in FIB, especially 'fib type' insist
a locally configured addess in the VRF is not local (result is
'unicast') unless the 'iif' keyword is given because of conditional
initialisation of the .l3mdev member.

Last patch adds more type and oif fib tests for VRFs, both when incoming
interface is part of a VRF and when its not.

I'm targetting nf-next because we're too late in this cycle.

Florian Westphal (5):
  selftests: netfilter: nft_fib.sh: add 'type' mode tests
  selftests: netfilter: move fib vrf test to nft_fib.sh
  netfilter: nf_tables: nft_fib_ipv6: fix VRF ipv4/ipv6 result
    discrepancy
  netfilter: nf_tables: nft_fib: consistent l3mdev handling
  selftests: netfilter: nft_fib.sh: add type and oif tests with and
    without VRFs

 include/net/netfilter/nft_fib.h               |  16 +
 net/ipv4/netfilter/nft_fib_ipv4.c             |  11 +-
 net/ipv6/netfilter/nft_fib_ipv6.c             |  17 +-
 .../selftests/net/netfilter/conntrack_vrf.sh  |  33 -
 .../selftests/net/netfilter/nft_fib.sh        | 612 +++++++++++++++++-
 5 files changed, 637 insertions(+), 52 deletions(-)

-- 
2.49.0


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

end of thread, other threads:[~2025-05-20 15:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-15 18:06 [PATCH nf-next 0/5] netfilter: resolve fib+vrf issues Florian Westphal
2025-05-15 18:06 ` [PATCH nf-next 1/5] selftests: netfilter: nft_fib.sh: add 'type' mode tests Florian Westphal
2025-05-15 18:06 ` [PATCH nf-next 2/5] selftests: netfilter: move fib vrf test to nft_fib.sh Florian Westphal
2025-05-15 18:06 ` [PATCH nf-next 3/5] netfilter: nf_tables: nft_fib_ipv6: fix VRF ipv4/ipv6 result discrepancy Florian Westphal
2025-05-15 18:06 ` [PATCH nf-next 4/5] netfilter: nf_tables: nft_fib: consistent l3mdev handling Florian Westphal
2025-05-15 18:06 ` [PATCH nf-next 5/5] selftests: netfilter: nft_fib.sh: add type and oif tests with and without VRFs Florian Westphal
2025-05-20 15:25 ` [PATCH nf-next 0/5] netfilter: resolve fib+vrf issues Pablo Neira Ayuso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.