commit | 284cbc61f851bf86326b28acfe6d161691d4a4ed | [log] [tgz] |
---|---|---|
author | Björn Töpel <bjorn.topel@intel.com> | Mon Nov 30 19:52:03 2020 +0100 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Tue Dec 01 00:09:25 2020 +0100 |
tree | c44687179178a42a5ebaead86c51d41f8489334c | |
parent | f2d2728220ac6482c69c5f018ec09bafd688e7d1 [diff] |
samples/bpf: Use recvfrom() in xdpsock/l2fwd Start using recvfrom() the l2fwd scenario, instead of poll() which is more expensive and need additional knobs for busy-polling. Signed-off-by: Björn Töpel <bjorn.topel@intel.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Magnus Karlsson <magnus.karlsson@intel.com> Link: https://lore.kernel.org/bpf/20201130185205.196029-9-bjorn.topel@gmail.com