]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Allow for creating Rx or Tx only AF_XDP sockets
authorMagnus Karlsson <magnus.karlsson@intel.com>
Thu, 7 Nov 2019 17:47:38 +0000 (18:47 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 11 Nov 2019 03:30:46 +0000 (19:30 -0800)
commitf59ff2ed930fe909e494397bd7630891ce1b3a23
tree416e456da239bdf65e21fce9cb770d54d8573b88
parent138b7a07a2453eb3448176b4a461930c247d0c06
libbpf: Allow for creating Rx or Tx only AF_XDP sockets

The libbpf AF_XDP code is extended to allow for the creation of Rx
only or Tx only sockets. Previously it returned an error if the socket
was not initialized for both Rx and Tx.

Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Tested-by: William Tu <u9012063@gmail.com>
Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Link: https://lore.kernel.org/bpf/1573148860-30254-4-git-send-email-magnus.karlsson@intel.com
tools/lib/bpf/xsk.c