aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/btf_dump.c
diff options
context:
space:
mode:
authorHangbin Liu <liuhangbin@gmail.com>2021-03-19 22:33:14 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-30 14:32:03 +0200
commit7693b64ae508d71e42c7fd88b90845b65a25e818 (patch)
tree18ba7b61859353da2f866498256fbdc7b2617333 /tools/lib/bpf/btf_dump.c
parent5ebb9947b488a73c03a7d1aec7142f3873d6704f (diff)
downloadkernel_replicant_linux-7693b64ae508d71e42c7fd88b90845b65a25e818.tar.gz
kernel_replicant_linux-7693b64ae508d71e42c7fd88b90845b65a25e818.tar.bz2
kernel_replicant_linux-7693b64ae508d71e42c7fd88b90845b65a25e818.zip
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@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/lib/bpf/btf_dump.c')
0 files changed, 0 insertions, 0 deletions