diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-01-26 10:54:12 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-01-26 21:17:53 -0800 |
commit | 8033c6c2fed235b3d571b5a5ede302b752bc5c7d (patch) | |
tree | 7cbaa2b40ed08ac8926883e4b7e96884b52e68a7 /net/xdp | |
parent | ff943683f8a6dbf887c16275d0e80c1c5391b7bb (diff) |
bpf: remove unused static inlines
Remove two dead stubs, sk_msg_clear_meta() was never
used, use of xskq_cons_is_full() got replaced by
xsk_tx_writeable() in v5.10.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20220126185412.2776254-1-kuba@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'net/xdp')
-rw-r--r-- | net/xdp/xsk_queue.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/net/xdp/xsk_queue.h b/net/xdp/xsk_queue.h index e9aa2c236356..79be3e53ddf1 100644 --- a/net/xdp/xsk_queue.h +++ b/net/xdp/xsk_queue.h @@ -304,13 +304,6 @@ static inline void xskq_cons_release_n(struct xsk_queue *q, u32 cnt) q->cached_cons += cnt; } -static inline bool xskq_cons_is_full(struct xsk_queue *q) -{ - /* No barriers needed since data is not accessed */ - return READ_ONCE(q->ring->producer) - READ_ONCE(q->ring->consumer) == - q->nentries; -} - static inline u32 xskq_cons_present_entries(struct xsk_queue *q) { /* No barriers needed since data is not accessed */ |