Patch "selftests: openvswitch: fix tcpdump execution" has been added to the 6.12-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: openvswitch: fix tcpdump execution

to the 6.12-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-openvswitch-fix-tcpdump-execution.patch
and it can be found in the queue-6.12 subdirectory.

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



commit 93f684db7d95164206270ca840c09ef5ff4ed47b
Author: Adrian Moreno <amorenoz@xxxxxxxxxx>
Date:   Tue Dec 17 22:16:51 2024 +0100

    selftests: openvswitch: fix tcpdump execution
    
    [ Upstream commit a17975992cc11588767175247ccaae1213a8b582 ]
    
    Fix the way tcpdump is executed by:
    - Using the right variable for the namespace. Currently the use of the
      empty "ns" makes the command fail.
    - Waiting until it starts to capture to ensure the interesting traffic
      is caught on slow systems.
    - Using line-buffered output to ensure logs are available when the test
      is paused with "-p". Otherwise the last chunk of data might only be
      written when tcpdump is killed.
    
    Fixes: 74cc26f416b9 ("selftests: openvswitch: add interface support")
    Signed-off-by: Adrian Moreno <amorenoz@xxxxxxxxxx>
    Acked-by: Eelco Chaudron <echaudro@xxxxxxxxxx>
    Link: https://patch.msgid.link/20241217211652.483016-1-amorenoz@xxxxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/selftests/net/openvswitch/openvswitch.sh b/tools/testing/selftests/net/openvswitch/openvswitch.sh
index cc0bfae2bafa..960e1ab4dd04 100755
--- a/tools/testing/selftests/net/openvswitch/openvswitch.sh
+++ b/tools/testing/selftests/net/openvswitch/openvswitch.sh
@@ -171,8 +171,10 @@ ovs_add_netns_and_veths () {
 		ovs_add_if "$1" "$2" "$4" -u || return 1
 	fi
 
-	[ $TRACING -eq 1 ] && ovs_netns_spawn_daemon "$1" "$ns" \
-			tcpdump -i any -s 65535
+	if [ $TRACING -eq 1 ]; then
+		ovs_netns_spawn_daemon "$1" "$3" tcpdump -l -i any -s 6553
+		ovs_wait grep -q "listening on any" ${ovs_dir}/stderr
+	fi
 
 	return 0
 }




[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