]> git.baikalelectronics.ru Git - kernel.git/commit
xsk: Use struct_size() helper
authorMagnus Karlsson <magnus.karlsson@intel.com>
Thu, 19 Dec 2019 12:39:31 +0000 (13:39 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 21 Dec 2019 00:00:09 +0000 (16:00 -0800)
commit2b797d567f2727c2a700384a79d90ebc1a60df93
tree1aea2b20504a1fddec4bcec2e78bd0d3ed032167
parent06b2203f239efde1c231cd4522fad1adc7d0ff90
xsk: Use struct_size() helper

Improve readability and maintainability by using the struct_size()
helper when allocating the AF_XDP rings.

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-13-git-send-email-magnus.karlsson@intel.com
net/xdp/xsk_queue.c