kernel-hacking-2024-linux-s.../net/xdp
Sebastian Andrzej Siewior e3d69f585d net: Move flush list retrieval to where it is used.
The bpf_net_ctx_get_.*_flush_list() are used at the top of the function.
This means the variable is always assigned even if unused. By moving the
function to where it is used, it is possible to delay the initialisation
until it is unavoidable.
Not sure how much this gains in reality but by looking at bq_enqueue()
(in devmap.c) gcc pushes one register less to the stack. \o/.

 Move flush list retrieval to where it is used.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-07-02 15:26:57 +02:00
..
Kconfig
Makefile
xdp_umem.c
xdp_umem.h
xsk.c net: Move flush list retrieval to where it is used. 2024-07-02 15:26:57 +02:00
xsk.h
xsk_buff_pool.c xsk: use generic DMA sync shortcut instead of a custom one 2024-05-08 08:51:20 +02:00
xsk_diag.c
xsk_queue.c
xsk_queue.h
xskmap.c