]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jul 2020 23:33:07 +0000 (16:33 -0700)
commit8c76c8de4ddd182c3a56a2b89c6e47751e211a1c
tree0c8aff68b72c586ef7b71262351e545260975dde
parent7f42a9914449c7f74781f0878aed1e583a15bbaa
selftests/bpf: fix netdevsim trap_flow_action_cookie read

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

Fixes: 1fa4b3fc80b4 ("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>
tools/testing/selftests/bpf/test_offload.py