]> 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)
commitb0bbaa361a77d4039047359a851585867ee75a7d
tree263cda9888f2100b5ab85c205105a8aa6c41bd9b
parent30bb8237ef531a1157fbdab9bebba067f463950c
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