diff options
author | David S. Miller <davem@davemloft.net> | 2019-02-08 18:00:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-08 18:00:17 -0500 |
commit | a655fe9f194842693258f43b5382855db1c2f654 (patch) | |
tree | a6e523c42378f43881c421530941dcbb529461ab /tools/bpf/bpftool/prog.c | |
parent | 7499a288bf1a4a49be9d72beb0a5c7b9aa6ffec9 (diff) | |
parent | 27b4ad621e887ce8e5eb508a0103f13d30f6b38a (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
An ipvlan bug fix in 'net' conflicted with the abstraction away
of the IPV6 specific support in 'net-next'.
Similarly, a bug fix for mlx5 in 'net' conflicted with the flow
action conversion in 'net-next'.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
-rw-r--r-- | tools/bpf/bpftool/prog.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/bpf/bpftool/prog.c b/tools/bpf/bpftool/prog.c index 0640e9bc0ada..33ed0806ccc0 100644 --- a/tools/bpf/bpftool/prog.c +++ b/tools/bpf/bpftool/prog.c | |||
@@ -78,13 +78,14 @@ static void print_boot_time(__u64 nsecs, char *buf, unsigned int size) | |||
78 | 78 | ||
79 | static int prog_fd_by_tag(unsigned char *tag) | 79 | static int prog_fd_by_tag(unsigned char *tag) |
80 | { | 80 | { |
81 | struct bpf_prog_info info = {}; | ||
82 | __u32 len = sizeof(info); | ||
83 | unsigned int id = 0; | 81 | unsigned int id = 0; |
84 | int err; | 82 | int err; |
85 | int fd; | 83 | int fd; |
86 | 84 | ||
87 | while (true) { | 85 | while (true) { |
86 | struct bpf_prog_info info = {}; | ||
87 | __u32 len = sizeof(info); | ||
88 | |||
88 | err = bpf_prog_get_next_id(id, &id); | 89 | err = bpf_prog_get_next_id(id, &id); |
89 | if (err) { | 90 | if (err) { |
90 | p_err("%s", strerror(errno)); | 91 | p_err("%s", strerror(errno)); |