Thread (4 messages) read the whole thread 4 messages, 3 authors, 2020-01-21

RE: [PATCH bpf-next] xsk, net: make sock_def_readable() have external linkage

From: John Fastabend <john.fastabend@gmail.com>
Date: 2020-01-21 00:48:04
Also in: bpf

Björn Töpel wrote:
From: Björn Töpel <redacted>

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 <redacted>
---
 include/net/sock.h | 2 ++
 net/core/sock.c    | 2 +-
 net/xdp/xsk.c      | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)
I think this is fine but curious were you able to measure the
difference with before/after pps or something?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help