Patch "selftests: forwarding: vxlan_bridge_1d: Fix vxlan ecn decapsulate value" has been added to the 5.10-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: forwarding: vxlan_bridge_1d: Fix vxlan ecn decapsulate value

to the 5.10-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-forwarding-vxlan_bridge_1d-fix-vxlan-ecn-d.patch
and it can be found in the queue-5.10 subdirectory.

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



commit 9a99c6741385066788ba97388e6193fb0f3749b8
Author: Hangbin Liu <liuhangbin@xxxxxxxxx>
Date:   Fri Mar 19 22:33:14 2021 +0800

    selftests: forwarding: vxlan_bridge_1d: Fix vxlan ecn decapsulate value
    
    [ Upstream commit 5aa3c334a449bab24519c4967f5ac2b3304c8dcf ]
    
    The ECN bit defines ECT(1) = 1, ECT(0) = 2. So inner 0x02 + outer 0x01
    should be inner ECT(0) + outer ECT(1). Based on the description of
    __INET_ECN_decapsulate, the final decapsulate value should be
    ECT(1). So fix the test expect value to 0x01.
    
    Before the fix:
    TEST: VXLAN: ECN decap: 01/02->0x02                                 [FAIL]
            Expected to capture 10 packets, got 0.
    
    After the fix:
    TEST: VXLAN: ECN decap: 01/02->0x01                                 [ OK ]
    
    Fixes: a0b61f3d8ebf ("selftests: forwarding: vxlan_bridge_1d: Add an ECN decap test")
    Signed-off-by: Hangbin Liu <liuhangbin@xxxxxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh b/tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh
index ce6bea9675c0..0ccb1dda099a 100755
--- a/tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh
+++ b/tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh
@@ -658,7 +658,7 @@ test_ecn_decap()
 	# In accordance with INET_ECN_decapsulate()
 	__test_ecn_decap 00 00 0x00
 	__test_ecn_decap 01 01 0x01
-	__test_ecn_decap 02 01 0x02
+	__test_ecn_decap 02 01 0x01
 	__test_ecn_decap 01 03 0x03
 	__test_ecn_decap 02 03 0x03
 	test_ecn_decap_error



[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