]> git.baikalelectronics.ru Git - kernel.git/commit
xsk: Change two variable names for increased clarity
authorMagnus Karlsson <magnus.karlsson@intel.com>
Mon, 4 May 2020 13:33:51 +0000 (15:33 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 4 May 2020 20:56:26 +0000 (22:56 +0200)
commita2fa154874bfdb5f880ced72f470ffc5e89d428a
tree6a5d71785996f770cd0c69f88e565894afd86a60
parent6805fc79f8dc39bfc90aaa4cd5b9c2cc470320a6
xsk: Change two variable names for increased clarity

Change two variables names so that it is clearer what they
represent. The first one is xsk_list that in fact only contains the
list of AF_XDP sockets with a Tx component. Change this to xsk_tx_list
for improved clarity. The second variable is size in the ring
structure. One might think that this is the size of the ring, but it
is in fact the size of the umem, copied into the ring structure to
improve performance. Rename this variable umem_size to avoid any
confusion.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Link: https://lore.kernel.org/bpf/1588599232-24897-2-git-send-email-magnus.karlsson@intel.com
include/net/xdp_sock.h
net/xdp/xdp_umem.c
net/xdp/xsk.c
net/xdp/xsk_queue.c
net/xdp/xsk_queue.h