Fix selftests icmp_redirect.sh failures
Status from this message: This series was applied to netdev/net.git (refs/heads/master):
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | selftests: icmp_redirect: remove from checking for IPv6 route gettools/ | +1 | 1 reply | Applied |
| 2/2 | selftests: icmp_redirect: IPv6 PMTU info should be cleared after redirecttools/ | +3 | 1 reply | Applied |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | David Ahern |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net 0/2] Fix selftests icmp_redirect.sh failures
This patchset fixes 2 failures for selftests icmp_redirect.sh.
The first patch is for IPv6 redirecting tests. When disable option CONFIG_IPV6_SUBTREES, there is not "from ::" info in ip route output. So we should not check this key word.
The second patch is for testing "mtu exception plus redirect", which do a PMTU update first and do redirect second. For topology like
(MTU 1300)
|----- R1_1 -------- R1_2 --------|
H1 ---| | ---- H2 (MTU 1500)
|----- R2_1 -------- R2_2 --------|After redirecting to R2 patch, the PMTU info in R1 path should be cleard. So we should not check PMTU info for test "mtu exception plus redirect".
After the fixes, all the test passed now
]# ./icmp_redirect.sh
###########################################################################
Legacy routing
###########################################################################
TEST: IPv4: redirect exception [ OK ]
TEST: IPv6: redirect exception [ OK ]
TEST: IPv4: redirect exception plus mtu [ OK ]
TEST: IPv6: redirect exception plus mtu [ OK ]
TEST: IPv4: routing reset [ OK ]
TEST: IPv6: routing reset [ OK ]
TEST: IPv4: mtu exception [ OK ]
TEST: IPv6: mtu exception [ OK ]
TEST: IPv4: mtu exception plus redirect [ OK ]
TEST: IPv6: mtu exception plus redirect [ OK ]
[...]
###########################################################################
Routing with nexthop objects and VRF
###########################################################################
TEST: IPv4: redirect exception [ OK ]
TEST: IPv6: redirect exception [ OK ]
TEST: IPv4: redirect exception plus mtu [ OK ]
TEST: IPv6: redirect exception plus mtu [ OK ]
TEST: IPv4: routing reset [ OK ]
TEST: IPv6: routing reset [ OK ]
TEST: IPv4: mtu exception [ OK ]
TEST: IPv6: mtu exception [ OK ]
TEST: IPv4: mtu exception plus redirect [ OK ]
TEST: IPv6: mtu exception plus redirect [ OK ]
Tests passed: 40 Tests failed: 0 Tests xfailed: 0
Hangbin Liu (2):
selftests: icmp_redirect: remove from checking for IPv6 route get
selftests: icmp_redirect: IPv6 PMTU info should be cleared after
redirect
tools/testing/selftests/net/icmp_redirect.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Signature · 1 line
2.31.1