selftests/bpf: Use libbpf_attach_type_by_name in test_socket_cookie
authorAndrey Ignatov <rdna@fb.com>
Wed, 26 Sep 2018 22:24:56 +0000 (15:24 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 27 Sep 2018 19:14:59 +0000 (21:14 +0200)
commitc9bf507d0acba950e5d85ef27727ce61458ef5aa
treef32fcffa2ac2936b92f1dd83936ec8c358eb4bd2
parentc6f6851b28ae26000352598f01968b3ff7dcf588
selftests/bpf: Use libbpf_attach_type_by_name in test_socket_cookie

Use newly introduced libbpf_attach_type_by_name in test_socket_cookie
selftest.

Signed-off-by: Andrey Ignatov <rdna@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_socket_cookie.c