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)
commit661842c46de2151758083b2ead605920b4770c2b
treeb4f5b617038ee7b78971148cb22115c0b6d30ddd
parenta68977d269dac0c7aa4a6f650b5e9191dd764861
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