]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpf_fanout'
authorDavid S. Miller <davem@davemloft.net>
Mon, 17 Aug 2015 21:22:48 +0000 (14:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Aug 2015 21:22:48 +0000 (14:22 -0700)
commitab6d3e9bf41172293fa9ccc7cec69958f265d8f7
treeb2a932691177a1608f4c91016eea0a71c244987f
parentc41ec546c6275153d6f16edf871cd29435043f93
parent1008f3db16203ea27cd09a53e60a2031c52bd0b7
Merge branch 'bpf_fanout'

Willem de Bruijn says:

====================
packet: add cBPF and eBPF fanout modes

Allow programmable fanout modes. Support both classical BPF programs
passed directly and extended BPF programs passed by file descriptor.

One use case is packet steering by deep packet inspection, for
instance for packet steering by application layer header fields.

Separate the configuration of the fanout mode and the configuration
of the program, to allow dynamic updates to the latter at runtime.

Changes
  v1 -> v2:
    - follow SO_LOCK_FILTER semantics on filter updates
    - only accept eBPF programs of type BPF_PROG_TYPE_SOCKET_FILTER
    - rename PACKET_FANOUT_BPF to PACKET_FANOUT_CBPF to match
      man 2 bpf usage: "classic" vs. "extended" BPF.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>