Björn Töpel wrote: > From: Björn Töpel <bjorn.topel@xxxxxxxxx> > > 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@xxxxxxxxx> > --- > 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?