]> git.baikalelectronics.ru Git - kernel.git/commit
xsk, net: Make sock_def_readable() have external linkage
authorBjörn Töpel <bjorn.topel@intel.com>
Mon, 20 Jan 2020 09:29:17 +0000 (10:29 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 21 Jan 2020 23:08:52 +0000 (00:08 +0100)
commit02d90e24f701d0d2f16dae7b5343611f2e43dadc
tree2d3ea0e73f127ff6e3eb06dc5beb8fad7e44e798
parente63cb2b1a28e438752b0936f7ba03644edd7c8ee
xsk, net: Make sock_def_readable() have external linkage

XDP sockets use the default implementation of struct sock's
sk_data_ready callback, which is sock_def_readable(). This function
is called in the XDP socket fast-path, and involves a retpoline. By
letting sock_def_readable() have external linkage, and being called
directly, the retpoline can be avoided.

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/20200120092917.13949-1-bjorn.topel@gmail.com
include/net/sock.h
net/core/sock.c
net/xdp/xsk.c