ACK/Cmnt: [J/hwe-5.17][OEM-5.17][K][SRU][PATCH 1/1] selftests: net: fix cleanup_v6() for arp_ndisc_evict_nocarrier

Stefan Bader stefan.bader at canonical.com
Fri Feb 10 10:28:59 UTC 2023


On 07.02.23 11:15, Po-Hsu Lin wrote:
> BugLink: https://bugs.launchpad.net/bugs/1968310
> 
> The cleanup_v6() will cause the arp_ndisc_evict_nocarrier script exit
> with 255 (No such file or directory), even the tests are good:
> 
>   # selftests: net: arp_ndisc_evict_nocarrier.sh
>   # run arp_evict_nocarrier=1 test
>   # RTNETLINK answers: File exists
>   # ok
>   # run arp_evict_nocarrier=0 test
>   # RTNETLINK answers: File exists
>   # ok
>   # run all.arp_evict_nocarrier=0 test
>   # RTNETLINK answers: File exists
>   # ok
>   # run ndisc_evict_nocarrier=1 test
>   # ok
>   # run ndisc_evict_nocarrier=0 test
>   # ok
>   # run all.ndisc_evict_nocarrier=0 test
>   # ok
>   not ok 1 selftests: net: arp_ndisc_evict_nocarrier.sh # exit=255
> 
> This is because it's trying to modify the parameter for ipv4 instead.
> 
> Also, tests for ipv6 (run_ndisc_evict_nocarrier_enabled() and
> run_ndisc_evict_nocarrier_disabled() are working on veth1, reflect
> this fact in cleanup_v6().
> 
> Fixes: f86ca07eb531 ("selftests: net: add arp_ndisc_evict_nocarrier")
> Signed-off-by: Po-Hsu Lin <po-hsu.lin at canonical.com>
> Signed-off-by: David S. Miller <davem at davemloft.net>
> (cherry picked from commit 9c4d7f45d60745a1cea0e841fa5e3444c398d2f1)
> Signed-off-by: Po-Hsu Lin <po-hsu.lin at canonical.com>
Acked-by: Stefan Bader <stefan.bader at canonical.com>
> ---
>   tools/testing/selftests/net/arp_ndisc_evict_nocarrier.sh | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tools/testing/selftests/net/arp_ndisc_evict_nocarrier.sh b/tools/testing/selftests/net/arp_ndisc_evict_nocarrier.sh
> index b5af08a..b4ec1ee 100755
> --- a/tools/testing/selftests/net/arp_ndisc_evict_nocarrier.sh
> +++ b/tools/testing/selftests/net/arp_ndisc_evict_nocarrier.sh
> @@ -24,8 +24,8 @@ cleanup_v6()
>       ip netns del me
>       ip netns del peer
>   
> -    sysctl -w net.ipv4.conf.veth0.ndisc_evict_nocarrier=1 >/dev/null 2>&1
> -    sysctl -w net.ipv4.conf.all.ndisc_evict_nocarrier=1 >/dev/null 2>&1
> +    sysctl -w net.ipv6.conf.veth1.ndisc_evict_nocarrier=1 >/dev/null 2>&1
> +    sysctl -w net.ipv6.conf.all.ndisc_evict_nocarrier=1 >/dev/null 2>&1
>   }
>   
>   create_ns()

--

Missed that this also is for Kinetic.

- Stefan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xE8675DEECBEECEA3.asc
Type: application/pgp-keys
Size: 44613 bytes
Desc: OpenPGP public key
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20230210/0da84717/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20230210/0da84717/attachment-0001.sig>


More information about the kernel-team mailing list