summaryrefslogtreecommitdiff
path: root/net/xdp/xsk.h
diff options
context:
space:
mode:
authorZhu Yanjun <zyjzyj2000@gmail.com>2020-11-26 18:03:18 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2020-11-28 01:00:51 +0300
commitbb1b25cab04324d0749f7ae22653aff58157bf83 (patch)
tree954a3b375c2614dc975a68df05226be51f32148e /net/xdp/xsk.h
parent105c4e75feb411a60f5089f7a1e68b8523f986cc (diff)
downloadlinux-bb1b25cab04324d0749f7ae22653aff58157bf83.tar.xz
xdp: Remove the functions xsk_map_inc and xsk_map_put
The functions xsk_map_put() and xsk_map_inc() are simple wrappers and as such, replace these functions with the functions bpf_map_inc() and bpf_map_put() and remove some error testing code. Signed-off-by: Zhu Yanjun <zyjzyj2000@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Magnus Karlsson <magnus.karlsson@intel.com> Link: https://lore.kernel.org/bpf/1606402998-12562-1-git-send-email-yanjunz@nvidia.com
Diffstat (limited to 'net/xdp/xsk.h')
-rw-r--r--net/xdp/xsk.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/xdp/xsk.h b/net/xdp/xsk.h
index b9e896cee5bb..edcf249ad1f1 100644
--- a/net/xdp/xsk.h
+++ b/net/xdp/xsk.h
@@ -41,8 +41,6 @@ static inline struct xdp_sock *xdp_sk(struct sock *sk)
void xsk_map_try_sock_delete(struct xsk_map *map, struct xdp_sock *xs,
struct xdp_sock **map_entry);
-int xsk_map_inc(struct xsk_map *map);
-void xsk_map_put(struct xsk_map *map);
void xsk_clear_pool_at_qid(struct net_device *dev, u16 queue_id);
int xsk_reg_pool_at_qid(struct net_device *dev, struct xsk_buff_pool *pool,
u16 queue_id);