Patch "selftests: net: fix cleanup_v6() for arp_ndisc_evict_nocarrier" has been added to the 6.1-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    selftests: net: fix cleanup_v6() for arp_ndisc_evict_nocarrier

to the 6.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     selftests-net-fix-cleanup_v6-for-arp_ndisc_evict_noc.patch
and it can be found in the queue-6.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit e9ae3ec87bcf6f869522a11c27a17b9ae84b327a
Author: Po-Hsu Lin <po-hsu.lin@xxxxxxxxxxxxx>
Date:   Fri Dec 30 17:18:28 2022 +0800

    selftests: net: fix cleanup_v6() for arp_ndisc_evict_nocarrier
    
    [ Upstream commit 9c4d7f45d60745a1cea0e841fa5e3444c398d2f1 ]
    
    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@xxxxxxxxxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/selftests/net/arp_ndisc_evict_nocarrier.sh b/tools/testing/selftests/net/arp_ndisc_evict_nocarrier.sh
index b5af08af8559..b4ec1eeee6c9 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()



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux