commit | 1d9cb1f381860b529edec57cf7a08133f40366eb | [log] [tgz] |
---|---|---|
author | Magnus Karlsson <magnus.karlsson@intel.com> | Thu Dec 19 13:39:31 2019 +0100 |
committer | Alexei Starovoitov <ast@kernel.org> | Fri Dec 20 16:00:09 2019 -0800 |
tree | 1aea2b20504a1fddec4bcec2e78bd0d3ed032167 | |
parent | 15d8c9162ced1789d25261859a7b37db8426e409 [diff] |
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