diff options
author | David Ahern <dsahern@gmail.com> | 2020-04-20 10:18:43 -0600 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-04-22 22:07:22 -0700 |
commit | 257d7d4f0e69f5e8e3d38351bdcab896719dba04 (patch) | |
tree | f049c1d1032b49cf4cd52751771b27defc1a4f38 /.cocciconfig | |
parent | d2b6c3ab70dbc0069a69c57edd8c96f365f06b7c (diff) | |
download | linux-257d7d4f0e69f5e8e3d38351bdcab896719dba04.tar.bz2 |
libbpf: Only check mode flags in get_xdp_id
The commit in the Fixes tag changed get_xdp_id to only return prog_id
if flags is 0, but there are other XDP flags than the modes - e.g.,
XDP_FLAGS_UPDATE_IF_NOEXIST. Since the intention was only to look at
MODE flags, clear other ones before checking if flags is 0.
Fixes: f07cbad29741 ("libbpf: Fix bpf_get_link_xdp_id flags handling")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrey Ignatov <rdna@fb.com>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions