diff options
| author | Andrii Nakryiko <andrii@kernel.org> | 2021-10-06 10:58:34 -0700 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2021-10-06 12:34:03 -0700 |
| commit | 0e545dbaa2797133f57bf8387e8f74cd245cedea (patch) | |
| tree | d6b57e0ba51373477c58bea70ec99e43e553913e /samples/bpf/xdp_sample_pkts_user.c | |
| parent | 4a404a7e8a3902fc560527241a611186605efb4e (diff) | |
| parent | 6f2b219b62a4376ca2da15c503de79d0650c8155 (diff) | |
| download | linux-0e545dbaa2797133f57bf8387e8f74cd245cedea.tar.gz linux-0e545dbaa2797133f57bf8387e8f74cd245cedea.tar.bz2 linux-0e545dbaa2797133f57bf8387e8f74cd245cedea.zip | |
Merge branch 'libbpf: Deprecate bpf_{map,program}__{prev,next} APIs since v0.7'
Hengqi Chen says:
====================
bpf_{map,program}__{prev,next} don't follow the libbpf API naming
convention. Deprecate them and replace them with a new set of APIs
named bpf_object__{prev,next}_{program,map}.
v1->v2: [0]
* Addressed Andrii's comments
[0]: https://patchwork.kernel.org/project/netdevbpf/patch/20210906165456.325999-1-hengqi.chen@gmail.com/
====================
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Diffstat (limited to 'samples/bpf/xdp_sample_pkts_user.c')
| -rw-r--r-- | samples/bpf/xdp_sample_pkts_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/xdp_sample_pkts_user.c b/samples/bpf/xdp_sample_pkts_user.c index 495e09897bd3..f4382ccdcbb1 100644 --- a/samples/bpf/xdp_sample_pkts_user.c +++ b/samples/bpf/xdp_sample_pkts_user.c @@ -154,7 +154,7 @@ int main(int argc, char **argv) return 1; } - map = bpf_map__next(NULL, obj); + map = bpf_object__next_map(obj, NULL); if (!map) { printf("finding a map in obj file failed\n"); return 1; |
