samples/bpf: fix compilation failure
authorPrashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>
Thu, 20 Sep 2018 07:52:03 +0000 (16:52 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Thu, 16 May 2024 07:58:22 +0000 (10:58 +0300)
commita770da27d6e2147c34b239d4a34c57d59163834b
tree2ba84ad1503c2d6c86145f1ac5751417f2f333e8
parent6ca3a7a781f2b7d1065bd002c197196d1d00576a
samples/bpf: fix compilation failure

[ Upstream commit 32c009798385ce21080beaa87a9b95faad3acd1e ]

following commit:
commit d58e468b1112 ("flow_dissector: implements flow dissector BPF hook")
added struct bpf_flow_keys which conflicts with the struct with
same name in sockex2_kern.c and sockex3_kern.c

similar to commit:
commit 534e0e52bc23 ("samples/bpf: fix a compilation failure")
we tried the rename it "flow_keys" but it also conflicted with struct
having same name in include/net/flow_dissector.h. Hence renaming the
struct to "flow_key_record". Also, this commit doesn't fix the
compilation error completely because the similar struct is present in
sockex3_kern.c. Hence renaming it in both files sockex3_user.c and
sockex3_kern.c

Signed-off-by: Prashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
samples/bpf/sockex2_kern.c
samples/bpf/sockex3_kern.c
samples/bpf/sockex3_user.c