]> Git Repo - linux.git/commit
xsk: Use xsk_buff_pool directly for cq functions
authorMaciej Fijalkowski <[email protected]>
Mon, 7 Oct 2024 12:24:58 +0000 (14:24 +0200)
committerDaniel Borkmann <[email protected]>
Mon, 14 Oct 2024 15:23:49 +0000 (17:23 +0200)
commite6c4047f5122803f2fe4ab9b1ab7038626e51ec1
treefdbfb793613a0c57f599e2234162971755e036c0
parent1d10b2bed2d4b2003f174da739d8163b7f7957cf
xsk: Use xsk_buff_pool directly for cq functions

Currently xsk_cq_{reserve_addr,submit,cancel}_locked() take xdp_sock as
an input argument but it is only used for pulling out xsk_buff_pool
pointer from it.

Change mentioned functions to take pool pointer as an input argument to
avoid unnecessary dereferences.

Signed-off-by: Maciej Fijalkowski <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Magnus Karlsson <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
net/xdp/xsk.c
This page took 0.054892 seconds and 4 git commands to generate.