]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: add prog detach to flow_dissector test
authorStanislav Fomichev <sdf@google.com>
Tue, 14 May 2019 21:12:34 +0000 (14:12 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 15 May 2019 23:33:33 +0000 (01:33 +0200)
commit9cbc893cc5e16d6a52a215549e4df65ff430d34c
treea5d211175346971614c65199afb5eb19c7b561c1
parentd58b4183f6f759a0278f8c1f92630f864c7738ff
selftests/bpf: add prog detach to flow_dissector test

In case we are not running in a namespace (which we don't do by default),
let's try to detach the bpf program that we use for eth_get_headlen tests.

Fixes: 3d2f95444896 ("selftests/bpf: run flow dissector tests in skb-less mode")
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/prog_tests/flow_dissector.c