diff options
author | Magnus Karlsson <magnus.karlsson@intel.com> | 2020-08-28 10:26:26 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-08-31 21:15:04 +0200 |
commit | a1132430c2c55af62d13e9fca752d46f14d548b3 (patch) | |
tree | 4b162a469f321442ed758c08252176df6051f492 /security/smack | |
parent | b5aea28dca13456c1a08b9b2ef8a8b92598ac426 (diff) | |
download | lwn-a1132430c2c55af62d13e9fca752d46f14d548b3.tar.gz lwn-a1132430c2c55af62d13e9fca752d46f14d548b3.zip |
xsk: Add shared umem support between devices
Add support to share a umem between different devices. This mode
can be invoked with the XDP_SHARED_UMEM bind flag. Previously,
sharing was only supported within the same device. Note that when
sharing a umem between devices, just as in the case of sharing a
umem between queue ids, you need to create a fill ring and a
completion ring and tie them to the socket (with two setsockopts,
one for each ring) before you do the bind with the
XDP_SHARED_UMEM flag. This so that the single-producer
single-consumer semantics of the rings can be upheld.
Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Björn Töpel <bjorn.topel@intel.com>
Link: https://lore.kernel.org/bpf/1598603189-32145-13-git-send-email-magnus.karlsson@intel.com
Diffstat (limited to 'security/smack')
0 files changed, 0 insertions, 0 deletions