Skip to contentSkip to conversation

bpf: add struct bpf_redir_neigh forward declaration to BPF helper defs

PATCH In review Andrii Nakryiko 2 participants 2 messages Oct 28, 2020 – Oct 29, 2020

Subsystems (3)
lore
Share & tools
lore

Andrii Nakryiko

author maintainer
#0 lore raw

PATCH 1/1 bpf: add struct bpf_redir_neigh forward declaration to BPF helper defs

Forward-declare struct bpf_redir_neigh in bpf_helper_defs.h to avoid compiler warning about unknown structs.

Fixes ba452c9e996d ("bpf: Fix bpf_redirect_neigh helper api to support supplying nexthop")
---
 scripts/bpf_helpers_doc.py | 1 +
 1 file changed, 1 insertion(+)
scripts/bpf_helpers_doc.py +1 -0
index 6769caae142f..31484377b8b1 100755
@@ -408,6 +408,7 @@ class PrinterHelpers(Printer):
             'struct bpf_perf_event_data',
             'struct bpf_perf_event_value',
             'struct bpf_pidns_info',
+            'struct bpf_redir_neigh',
             'struct bpf_sock',
             'struct bpf_sock_addr',
             'struct bpf_sock_ops',
Signature · 1 line
2.24.1
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Andrii Nakryiko

Forward-declare struct bpf_redir_neigh in bpf_helper_defs.h to avoid compiler warning about unknown structs.

Fixes ba452c9e996d ("bpf: Fix bpf_redirect_neigh helper api to support supplying nexthop")

Ah! I did actually include that in my local tree at some point, but guess it never made it into the patch; sorry about that!

I guess this should go into the bpf tree, rather than bpf-next, no?