]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: only build sockmap with CONFIG_INET
authorJohn Fastabend <john.fastabend@gmail.com>
Thu, 4 Jan 2018 01:57:56 +0000 (17:57 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 4 Jan 2018 18:01:14 +0000 (19:01 +0100)
commit796a90fd9dde8851e7615103d6f6ea10a536b4bb
tree263cda9888f2100b5ab85c205105a8aa6c41bd9b
parentb0f72b32c9a727e8e61f45e8047df50a874878c2
bpf: only build sockmap with CONFIG_INET

The sockmap infrastructure is only aware of TCP sockets at the
moment. In the future we plan to add UDP. In both cases CONFIG_NET
should be built-in.

So lets only build sockmap if CONFIG_INET is enabled.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/linux/bpf.h
include/linux/bpf_types.h
kernel/bpf/Makefile