xdp: Remove the functions xsk_map_inc and xsk_map_put
authorZhu Yanjun <zyjzyj2000@gmail.com>
Thu, 26 Nov 2020 15:03:18 +0000 (23:03 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 27 Nov 2020 22:00:51 +0000 (23:00 +0100)
commitbb1b25cab04324d0749f7ae22653aff58157bf83
tree954a3b375c2614dc975a68df05226be51f32148e
parent105c4e75feb411a60f5089f7a1e68b8523f986cc
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
net/xdp/xsk.c
net/xdp/xsk.h
net/xdp/xskmap.c