From: Daniel Borkmann Subject: Re: [PATCH net-next v1 6/7] bpf: Use the bpf_load_program() from the library Date: Mon, 06 Feb 2017 16:30:25 +0100 Message-ID: <58989691.7060403@iogearbox.net> References: <20170205231428.23846-1-mic@digikod.net> <20170205231428.23846-6-mic@digikod.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Cc: netdev@vger.kernel.org, Alexei Starovoitov , Shuah Khan To: =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= , linux-kernel@vger.kernel.org Return-path: In-Reply-To: <20170205231428.23846-6-mic@digikod.net> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On 02/06/2017 12:14 AM, Mickaël Salaün wrote: > Replace bpf_prog_load() with bpf_load_program() calls. > > Use the tools include directory instead of the installed one to allow > builds from other kernels. > > Signed-off-by: Mickaël Salaün > Cc: Alexei Starovoitov > Cc: Daniel Borkmann > Cc: Shuah Khan > --- > tools/testing/selftests/bpf/Makefile | 6 +++++- > tools/testing/selftests/bpf/bpf_sys.h | 21 --------------------- > tools/testing/selftests/bpf/test_tag.c | 6 ++++-- > tools/testing/selftests/bpf/test_verifier.c | 8 +++++--- > 4 files changed, 14 insertions(+), 27 deletions(-) No objections, but if so, can't we add the remaining missing pieces to bpf lib, so we can remove bpf_sys.h altogether? Thanks, Daniel