diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2023-10-23 20:50:15 +0200 |
---|---|---|
committer | Martin KaFai Lau <martin.lau@kernel.org> | 2023-10-24 00:01:53 +0200 |
commit | b63dadd6f97522513fe9497b5fde84a154e39a0b (patch) | |
tree | d8d7dd10c79c522b20ce21d29aa06115424cc4f3 /include/net | |
parent | samples: bpf: Fix syscall_tp openat argument (diff) | |
download | linux-b63dadd6f97522513fe9497b5fde84a154e39a0b.tar.xz linux-b63dadd6f97522513fe9497b5fde84a154e39a0b.zip |
bpf, tcx: Get rid of tcx_link_const
Small clean up to get rid of the extra tcx_link_const() and only retain
the tcx_link().
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/r/20231023185015.21152-1-daniel@iogearbox.net
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/tcx.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/net/tcx.h b/include/net/tcx.h index 264f147953ba..04be9377785d 100644 --- a/include/net/tcx.h +++ b/include/net/tcx.h @@ -38,16 +38,11 @@ static inline struct tcx_entry *tcx_entry(struct bpf_mprog_entry *entry) return container_of(bundle, struct tcx_entry, bundle); } -static inline struct tcx_link *tcx_link(struct bpf_link *link) +static inline struct tcx_link *tcx_link(const struct bpf_link *link) { return container_of(link, struct tcx_link, link); } -static inline const struct tcx_link *tcx_link_const(const struct bpf_link *link) -{ - return tcx_link((struct bpf_link *)link); -} - void tcx_inc(void); void tcx_dec(void); |