]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: fix netdevsim trap_flow_action_cookie read
authorHangbin Liu <liuhangbin@gmail.com>
Mon, 27 Jul 2020 11:04:55 +0000 (19:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2020 07:58:46 +0000 (09:58 +0200)
commitcffcb4a3f4c6e830ef2d1d9cfb261562ad2af0f8
treebd77539bbcb8b177317f1c02f43b81e7d376ebbd
parent15a9441c207a546ae7cadfe092aea5ae9751c967
selftests/bpf: fix netdevsim trap_flow_action_cookie read

[ Upstream commit 4bbca662df2523ff7ad3224463f1f28e6a118044 ]

When read netdevsim trap_flow_action_cookie, we need to init it first,
or we will get "Invalid argument" error.

Fixes: d3cbb907ae57 ("netdevsim: add ACL trap reporting cookie as a metadata")
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/bpf/test_offload.py