diff options
| author | Magnus Karlsson <[email protected]> | 2019-12-19 12:39:31 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2019-12-21 00:00:09 +0000 |
| commit | 1d9cb1f381860b529edec57cf7a08133f40366eb (patch) | |
| tree | 1aea2b20504a1fddec4bcec2e78bd0d3ed032167 /tools/testing/selftests/bpf/test_cpp.cpp | |
| parent | xsk: Add function naming comments and reorder functions (diff) | |
| download | kernel-1d9cb1f381860b529edec57cf7a08133f40366eb.tar.gz kernel-1d9cb1f381860b529edec57cf7a08133f40366eb.zip | |
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 <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/test_cpp.cpp')
0 files changed, 0 insertions, 0 deletions
