]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Fix build of sockmap_ktls.c
authorAlexei Starovoitov <ast@kernel.org>
Wed, 19 Feb 2020 20:55:14 +0000 (12:55 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 20 Feb 2020 00:17:24 +0000 (01:17 +0100)
commit34c8b13dd1e97cd9e4ff348af2cc0c1505130548
treecd644f62558d27146f0d0d0c3b2f528edfa2fe64
parente17e4414313cfd0559a8c59a676f65a4462621f2
selftests/bpf: Fix build of sockmap_ktls.c

The selftests fails to build with:
tools/testing/selftests/bpf/prog_tests/sockmap_ktls.c: In function ‘test_sockmap_ktls_disconnect_after_delete’:
tools/testing/selftests/bpf/prog_tests/sockmap_ktls.c:72:37: error: ‘TCP_ULP’ undeclared (first use in this function)
   72 |  err = setsockopt(cli, IPPROTO_TCP, TCP_ULP, "tls", strlen("tls"));
      |                                     ^~~~~~~

Similar to commit that fixes build of sockmap_basic.c on systems with old
/usr/include fix the build of sockmap_ktls.c

Fixes: 5a82f4c8cc07 ("selftests/bpf: Test unhashing kTLS socket after removing from map")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20200219205514.3353788-1-ast@kernel.org
tools/testing/selftests/bpf/prog_tests/sockmap_ktls.c