]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: sockmap requires STREAM_PARSER add Kconfig entry
authorJohn Fastabend <john.fastabend@gmail.com>
Mon, 28 Aug 2017 14:12:21 +0000 (07:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Aug 2017 18:13:22 +0000 (11:13 -0700)
commit46c2d4f220bf78da40b2b4ed838ccb776311b9c3
tree6cb85b33cdf900fbafc5894ecd16718b49c2b16d
parenta078265b30e403cc506e042f52badc91449b48ce
bpf: sockmap requires STREAM_PARSER add Kconfig entry

SOCKMAP uses strparser code (compiled with Kconfig option
CONFIG_STREAM_PARSER) to run the parser BPF program. Without this
config option set sockmap wont be compiled. However, at the moment
the only way to pull in the strparser code is to enable KCM.

To resolve this create a BPF specific config option to pull
only the strparser piece in that sockmap needs. This also
allows folks who want to use BPF/syscall/maps but don't need
sockmap to easily opt out.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/Kconfig