diff options
author | Willem de Bruijn <willemb@google.com> | 2015-08-14 22:31:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-17 14:22:48 -0700 |
commit | f2e520956a1ab636698f8160194c9b8ac0989aab (patch) | |
tree | f3ff84457be59fab5303f64b5e5ba93204c3f90b /tools/testing/selftests/net/psock_fanout.c | |
parent | 47dceb8ecdc1c3ad1818dfea3d659a05b74c3fc2 (diff) | |
download | op-kernel-dev-f2e520956a1ab636698f8160194c9b8ac0989aab.zip op-kernel-dev-f2e520956a1ab636698f8160194c9b8ac0989aab.tar.gz |
packet: add extended BPF fanout mode
Add fanout mode PACKET_FANOUT_EBPF that accepts an en extended BPF
program to select a socket.
Update the internal eBPF program by passing to socket option
SOL_PACKET/PACKET_FANOUT_DATA a file descriptor returned by bpf().
Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/psock_fanout.c')
0 files changed, 0 insertions, 0 deletions