samples/bpf: Convert magic numbers to names in multi-prog cgroup test case
authorDavid Ahern <dsahern@gmail.com>
Thu, 30 Nov 2017 17:02:29 +0000 (09:02 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 30 Nov 2017 18:58:11 +0000 (19:58 +0100)
commit51de082570e5374d4578cb159738485ddb0fddfe
treee8bcdbb86fe2b9df74d232c7cf90e6a781333f36
parent9f66816a6a4dd740bfa29cc8a8e19b90fd7df4e7
samples/bpf: Convert magic numbers to names in multi-prog cgroup test case

Attach flag 1 == BPF_F_ALLOW_OVERRIDE; attach flag 2 == BPF_F_ALLOW_MULTI.
Update the calls to bpf_prog_attach() in test_cgrp2_attach2.c to use the
names over the magic numbers.

Fixes: 39323e788cb67 ("samples/bpf: add multi-prog cgroup test case")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
samples/bpf/test_cgrp2_attach2.c