]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: forwarding: vxlan_bridge_1d: fix tos value
authorHangbin Liu <liuhangbin@gmail.com>
Thu, 13 Feb 2020 09:40:54 +0000 (17:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2020 06:18:25 +0000 (07:18 +0100)
commitfbc242991fbc869e1d7c3ba93d966381c9abc3f5
treeb80b7fe896ae9c0a81a898c78e506db8b2430709
parent9de49d2f89b1c1c4adf89a29b04a4b7ced4b9d9f
selftests: forwarding: vxlan_bridge_1d: fix tos value

[ Upstream commit 4e867c9a50ff1a07ed0b86c3b1c8bc773933d728 ]

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
testing.

Fixes: d417ecf533fe ("selftests: forwarding: vxlan_bridge_1d: Add a TOS test")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/forwarding/vxlan_bridge_1d.sh