]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
packet: add extended BPF fanout mode
authorWillem de Bruijn <willemb@google.com>
Sat, 15 Aug 2015 02:31:35 +0000 (22:31 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Aug 2015 21:22:48 +0000 (14:22 -0700)
commitf2e520956a1ab636698f8160194c9b8ac0989aab
treef3ff84457be59fab5303f64b5e5ba93204c3f90b
parent47dceb8ecdc1c3ad1818dfea3d659a05b74c3fc2
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>
include/uapi/linux/if_packet.h
net/packet/af_packet.c