]> asedeno.scripts.mit.edu Git - linux.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)
commit5f103c5d4dbadec0f2cacd39b6429e1b8a8cf983
tree263cda9888f2100b5ab85c205105a8aa6c41bd9b
parentc20a71a7a3841a6198721a0b4276f3298b38bbcf
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