Skip to content

selftests: net: configure rp_filter in setup_ns

Hangbin Liu linux-kselftest mptcp netdev netfilter-devel 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 5 repliesApplied 6/6
  2. v16 patches 5 repliesSuperseded

Patches in v2 All 6 applied

#Subject and filesSizeRepliesApplied
1/6selftests: net: disable rp_filter after namespace initializationtools/testing/selftests/net/lib.sh+2 -01 replyApplied
2/6selftests: net: remove redundant rp_filter configurationtools/testing/selftests/net/fib_rule_tests.sh tools/testing/selftests/net/fib_tests.sh tools/testing/selftests/net/icmp_redirect.sh+0 -81 replyApplied
3/6selftests: net: use setup_ns for bareudp testingtools/testing/selftests/net/bareudp.sh+7 -421 replyApplied
4/6selftests: net: use setup_ns for SRv6 tests and remove rp_filter configurationtools/testing/selftests/net/srv6_end_dt46_l3vpn_test.sh tools/testing/selftests/net/srv6_end_dt4_l3vpn_test.sh tools/testing/selftests/net/srv6_end_next_csid_l3vpn_test.sh +3 more+76 -2511 replyApplied
5/6selftests: netfilter: remove rp_filter configurationtools/testing/selftests/net/netfilter/br_netfilter.sh tools/testing/selftests/net/netfilter/bridge_brouter.sh tools/testing/selftests/net/netfilter/conntrack_vrf.sh +4 more+5 -310 repliesApplied
6/6selftests: mptcp: remove rp_filter configurationtools/testing/selftests/net/mptcp/mptcp_lib.sh+0 -20 repliesApplied

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchFlorian WestphalMatthieu Baerts (NGI0)Andrea MayerSimon Horman
1/6R-b
2/6R-b
3/6R-b
4/6A-b
5/6A-b
6/6A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCHv2 net-next 0/6] selftests: net: configure rp_filter in setup_ns

Some distributions enable rp_filter globally by default, which can interfere with various test cases. To address this, many tests explicitly disable rp_filter within their scripts.

To avoid duplication and ensure consistent behavior across tests, this patch moves the rp_filter configuration into setup_ns, applied immediately after a new namespace is created. This change ensures that all namespace-based tests inherit the appropriate rp_filter settings, simplifying individual test scripts and improving maintainability.

v2: fix srv6_hl2encap_red_l2vpn_test.sh test failure (Jakub Kicinski)

Hangbin Liu (6):
selftests: net: disable rp_filter after namespace initialization
selftests: net: remove redundant rp_filter configuration
selftests: net: use setup_ns for bareudp testing
selftests: net: use setup_ns for SRv6 tests and remove rp_filter
configuration
selftests: netfilter: remove rp_filter configuration
selftests: mptcp: remove rp_filter configuration

 tools/testing/selftests/net/bareudp.sh        | 49 ++---------
 tools/testing/selftests/net/fib_rule_tests.sh |  3 -
 tools/testing/selftests/net/fib_tests.sh      |  3 -
 tools/testing/selftests/net/icmp_redirect.sh  |  2 -
 tools/testing/selftests/net/lib.sh            |  2 +
 .../testing/selftests/net/mptcp/mptcp_lib.sh  |  2 -
 .../selftests/net/netfilter/br_netfilter.sh   |  3 -
 .../selftests/net/netfilter/bridge_brouter.sh |  2 -
 .../selftests/net/netfilter/conntrack_vrf.sh  |  3 -
 tools/testing/selftests/net/netfilter/ipvs.sh |  6 --
 .../selftests/net/netfilter/nft_fib.sh        |  2 -
 .../selftests/net/netfilter/nft_nat_zones.sh  |  2 -
 .../testing/selftests/net/netfilter/rpath.sh  | 18 ++--
 .../selftests/net/srv6_end_dt46_l3vpn_test.sh |  5 --
 .../selftests/net/srv6_end_dt4_l3vpn_test.sh  |  5 --
 .../net/srv6_end_next_csid_l3vpn_test.sh      | 77 ++++-------------
 .../net/srv6_end_x_next_csid_l3vpn_test.sh    | 83 +++++--------------
 .../net/srv6_hencap_red_l3vpn_test.sh         | 74 ++++-------------
 .../net/srv6_hl2encap_red_l2vpn_test.sh       | 83 +++++--------------
 19 files changed, 90 insertions(+), 334 deletions(-)
Signature · 1 line
2.46.0