Skip to content

netfilter: resolve fib+vrf issues

Florian Westphal netfilter-devel 2 versions – Applied

Status from this message: Applied to nf-next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyApplied
  2. v15 patches 1 replySuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5selftests: netfilter: nft_fib.sh: add 'type' mode teststools/testing/selftests/net/netfilter/nft_fib.sh+174 -100 replies
2/5selftests: netfilter: move fib vrf test to nft_fib.shtools/testing/selftests/net/netfilter/conntrack_vrf.sh tools/testing/selftests/net/netfilter/nft_fib.sh+90 -340 replies
3/5netfilter: nf_tables: nft_fib_ipv6: fix VRF ipv4/ipv6 result discrepancynet/ipv6/netfilter/nft_fib_ipv6.c+9 -40 replies
4/5netfilter: nf_tables: nft_fib: consistent l3mdev handlinginclude/net/netfilter/nft_fib.h net/ipv4/netfilter/nft_fib_ipv4.c net/ipv6/netfilter/nft_fib_ipv6.c+26 -50 replies
5/5selftests: netfilter: nft_fib.sh: add type and oif tests with and without VRFstools/testing/selftests/net/netfilter/nft_fib.sh+365 -270 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH nf-next v2 0/5] netfilter: resolve fib+vrf issues

Resent after rebase on latest net-next tree, there are no changes.

V1 cover letter:
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  |  34 -
 .../selftests/net/netfilter/nft_fib.sh        | 612 +++++++++++++++++-
 5 files changed, 637 insertions(+), 53 deletions(-)
Signature · 1 line
2.49.0