From: Hangbin Liu <hidden> Date: 2021-03-19 14:34:15
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 <redacted>
---
tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -658,7 +658,7 @@ test_ecn_decap()# In accordance with INET_ECN_decapsulate()__test_ecn_decap00000x00__test_ecn_decap01010x01-__test_ecn_decap02010x02+__test_ecn_decap02010x01__test_ecn_decap01030x03__test_ecn_decap02030x03test_ecn_decap_error
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
On Fri, 19 Mar 2021 22:33:14 +0800 you wrote:
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.
[...]
On Fri, Mar 19, 2021 at 10:33:14PM +0800, Hangbin Liu wrote:
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 <redacted>
Fixes: b723748750ec ("tunnel: Propagate ECT(1) when decapsulating as recommended by RFC6040")
The commit you cited is from 2018 whereas this one is from 2020. The
test stopped working after the latter. The reason I didn't see it is
because this commit only changed one caller of __INET_ECN_decapsulate().
Another caller is mlxsw which uses the function to understand how to
program the hardware to perform decapsulation. See commit 28e450333d4d
("inet: Refactor INET_ECN_decapsulate()").
After your patch I get:
TEST: VXLAN: ECN decap: 01/02->0x01 [FAIL]
Expected to capture 10 packets, got 0.
Fixed by:
@@ -658,7 +658,7 @@ test_ecn_decap()# In accordance with INET_ECN_decapsulate()__test_ecn_decap00000x00__test_ecn_decap01010x01-__test_ecn_decap02010x02+__test_ecn_decap02010x01__test_ecn_decap01030x03__test_ecn_decap02030x03test_ecn_decap_error
From: Hangbin Liu <hidden> Date: 2021-03-22 01:17:20
On Sun, Mar 21, 2021 at 07:20:55PM +0200, Ido Schimmel wrote:
On Fri, Mar 19, 2021 at 10:33:14PM +0800, Hangbin Liu wrote:
quoted
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 <redacted>
Fixes: b723748750ec ("tunnel: Propagate ECT(1) when decapsulating as recommended by RFC6040")
The commit you cited is from 2018 whereas this one is from 2020. The
test stopped working after the latter. The reason I didn't see it is
because this commit only changed one caller of __INET_ECN_decapsulate().
Another caller is mlxsw which uses the function to understand how to
program the hardware to perform decapsulation. See commit 28e450333d4d
("inet: Refactor INET_ECN_decapsulate()").
Hi Ido,
Thanks for this info. I don't have mlxsw card in hand, so I never
run the driver test before.
Cheers
Hangbin
quoted hunk
After your patch I get:
TEST: VXLAN: ECN decap: 01/02->0x01 [FAIL]
Expected to capture 10 packets, got 0.
Fixed by: