blob: ff2fd358170b4224555c46de028186fc8212d49b [file] [log] [blame]
From ffac78a870e16f4c52775a1946a6de1fb794621a Mon Sep 17 00:00:00 2001
From: Hangbin Liu <>
Date: Thu, 13 Feb 2020 17:40:54 +0800
Subject: [PATCH] selftests: forwarding: vxlan_bridge_1d: fix tos value
commit 4e867c9a50ff1a07ed0b86c3b1c8bc773933d728 upstream.
After commit 71130f29979c ("vxlan: fix tos value before xmit") we start
strict vxlan xmit tos value by RT_TOS(), which limits the tos value less
than 0x1E. With current value 0x40 the test will failed with "v1: Expected
to capture 10 packets, got 0". So let's choose a smaller tos value for
Fixes: d417ecf533fe ("selftests: forwarding: vxlan_bridge_1d: Add a TOS test")
Signed-off-by: Hangbin Liu <>
Signed-off-by: David S. Miller <>
Signed-off-by: Paul Gortmaker <>
diff --git a/tools/testing/selftests/net/forwarding/ b/tools/testing/selftests/net/forwarding/
index bb10e33690b2..353613fc1947 100755
--- a/tools/testing/selftests/net/forwarding/
+++ b/tools/testing/selftests/net/forwarding/
@@ -516,9 +516,9 @@ test_tos()
tc filter add dev v1 egress pref 77 prot ip \
- flower ip_tos 0x40 action pass
- vxlan_ping_test $h1 "-Q 0x40" v1 egress 77 10
- vxlan_ping_test $h1 "-Q 0x30" v1 egress 77 0
+ flower ip_tos 0x11 action pass
+ vxlan_ping_test $h1 "-Q 0x11" v1 egress 77 10
+ vxlan_ping_test $h1 "-Q 0x12" v1 egress 77 0
tc filter del dev v1 egress pref 77 prot ip
log_test "VXLAN: envelope TOS inheritance"