]> git.baikalelectronics.ru Git - kernel.git/commit
xsk: Change names of validation functions
authorMagnus Karlsson <magnus.karlsson@intel.com>
Thu, 19 Dec 2019 12:39:27 +0000 (13:39 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 21 Dec 2019 00:00:09 +0000 (16:00 -0800)
commit3f613cdeb9d7b773efb8656604bd86206207cf3d
treed1d460f61ce001d65f104df8fd8cd2a2b08dc486
parent86a7a2cf7c1d84f12949e736dd08941f4c49bd27
xsk: Change names of validation functions

Change the names of the validation functions to better reflect what
they are doing. The uppermost ones are reading entries from the rings
and only the bottom ones validate entries. So xskq_cons_read_ is a
better prefix name.

Also change the xskq_cons_read_ functions to return a bool
as the the descriptor or address is already returned by reference
in the parameters. Everyone is using the return value as a bool
anyway.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/1576759171-28550-9-git-send-email-magnus.karlsson@intel.com
include/net/xdp_sock.h
net/xdp/xsk.c
net/xdp/xsk_queue.h