]> git.baikalelectronics.ru Git - kernel.git/commit
samples/bpf: Use Rx-only and Tx-only sockets in xdpsock
authorMagnus Karlsson <magnus.karlsson@intel.com>
Thu, 7 Nov 2019 17:47:39 +0000 (18:47 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 11 Nov 2019 03:30:46 +0000 (19:30 -0800)
commit24dbdb4ea3d1b42525301a21973a1951e86a1df1
treeb4f5b617038ee7b78971148cb22115c0b6d30ddd
parent1e6a8b54c1ece54471094219f2f55c2028fd5f5d
samples/bpf: Use Rx-only and Tx-only sockets in xdpsock

Use Rx-only sockets for the rxdrop sample and Tx-only sockets for the
txpush sample in the xdpsock application. This so that we exercise and
show case these socket types too.

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-5-git-send-email-magnus.karlsson@intel.com
samples/bpf/xdpsock_user.c