diff options
author | Björn Töpel <bjorn.topel@intel.com> | 2019-11-01 12:03:44 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-11-02 00:38:49 +0100 |
commit | 64fe8c061de7d7ffdfdc104a57d48d645ae0ac4f (patch) | |
tree | 874762fd9e7687d0218d8603329090abea2b71cc /kernel/smp.c | |
parent | Revert "selftests: bpf: Don't try to read files without read permission" (diff) | |
download | linux-dev-64fe8c061de7d7ffdfdc104a57d48d645ae0ac4f.tar.xz linux-dev-64fe8c061de7d7ffdfdc104a57d48d645ae0ac4f.zip |
xsk: Store struct xdp_sock as a flexible array member of the XSKMAP
Prior this commit, the array storing XDP socket instances were stored
in a separate allocated array of the XSKMAP. Now, we store the sockets
as a flexible array member in a similar fashion as the arraymap. Doing
so, we do less pointer chasing in the lookup.
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Link: https://lore.kernel.org/bpf/20191101110346.15004-2-bjorn.topel@gmail.com
Diffstat (limited to 'kernel/smp.c')
0 files changed, 0 insertions, 0 deletions