Files
linux/include/net
Björn Töpel d817991cc7 xsk: Restructure/inline XSKMAP lookup/redirect/flush
In this commit the XSKMAP entry lookup function used by the XDP
redirect code is moved from the xskmap.c file to the xdp_sock.h
header, so the lookup can be inlined from, e.g., the
bpf_xdp_redirect_map() function.

Further the __xsk_map_redirect() and __xsk_map_flush() is moved to the
xsk.c, which lets the compiler inline the xsk_rcv() and xsk_flush()
functions.

Finally, all the XDP socket functions were moved from linux/bpf.h to
net/xdp_sock.h, where most of the XDP sockets functions are anyway.

This yields a ~2% performance boost for the xdpsock "rx_drop"
scenario.

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20191101110346.15004-4-bjorn.topel@gmail.com
2019-11-02 00:38:49 +01:00
..
2019-04-19 14:07:40 -07:00
2019-10-22 12:37:07 -07:00
2019-09-13 21:44:19 +02:00
2019-10-08 11:28:33 +02:00
2019-09-13 21:44:19 +02:00
2019-04-22 21:47:25 -07:00
2019-10-05 16:29:00 -07:00
2019-10-07 09:58:28 -04:00
2019-06-19 11:23:13 -04:00
2019-06-19 11:23:13 -04:00