[PATCH RESEND] bpf: fix bad include in libbpf when srctree is set

2018-01-01 Thread Alexander Alemayhu
The relative path can be wrong and prevents the build. Makefile:57: ../../scripts/Makefile.include: No such file or directory make: *** No rule to make target '../../scripts/Makefile.include'. Stop. Signed-off-by: Alexander Alemayhu <alexan...@alemayhu.com> --- tools/l

[PATCH iproute2 master] examples/bpf: update list of examples

2017-08-08 Thread Alexander Alemayhu
Remove deleted examples and add the new map in map example. Signed-off-by: Alexander Alemayhu <alexan...@alemayhu.com> --- examples/bpf/README | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/examples/bpf/README b/examples/bpf/README index 4247257850eb..1bbdda

Re: [PATCH v2] arm: eBPF JIT compiler

2017-06-12 Thread Alexander Alemayhu
On Mon, Jun 12, 2017 at 09:10:07PM +0530, Shubham Bansal wrote: > > Nope. It looks like a latest addition to testing. Can you please tell > me how to test with it? > cd tools/testing/selftests/bpf/ make sudo ./test_progs -- Mit freundlichen Grüßen Alexander Alemayhu

Re: [PATCH v1] samples/bpf: Add a .gitignore for binaries

2017-05-17 Thread Alexander Alemayhu
-| $(LLC) -march=bpf -filetype=obj -o $@ + -O2 -emit-llvm -c $< -o -| $(LLC) -march=bpf -filetype=obj -o $(OUTPUT)$(shell basename $@) -- Mit freundlichen Grüßen Alexander Alemayhu

Re: [PATCH v2 5/7] bpf: Add verifier test case for alignment.

2017-05-11 Thread Alexander Alemayhu
uot;Failed to find match: %s\n", m); > + ret = 1; > + printf("%s", bpf_vlog); > + break; > + } > + } > + /* printf("%s", bpf_vlog); */ Why is this commented out? -- Mit freundlichen Grüßen Alexander Alemayhu

[PATCH iproute2] tc: bpf: add ppc64 and sparc64 to list of archs with eBPF support

2017-05-06 Thread Alexander Alemayhu
://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/commit/?id=156d0e290e96 Signed-off-by: Alexander Alemayhu <alexan...@alemayhu.com> --- man/man8/tc-bpf.8 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/man/man8/tc-bpf.8 b/man/man8/tc-bpf.8 index e37196

Re: [RFC net-next 2/2] bpf: Test for bpf_prog ID and BPF_PROG_GET_NEXT_ID

2017-04-27 Thread Alexander Alemayhu
en Grüßen Alexander Alemayhu

Re: [PATCH net-next 3/3] samples/bpf: check before defining offsetof

2017-04-25 Thread Alexander Alemayhu
On Tue, Apr 25, 2017 at 02:27:16PM +, David Laight wrote: > > Isn't the correct fix to include stddef.h ? > If you think it's the correct fix, please send a patch to netdev. Thanks. -- Mit freundlichen Grüßen Alexander Alemayhu

[PATCH net-next 1/3] samples/bpf: add -Wno-unknown-warning-option to clang

2017-04-24 Thread Alexander Alemayhu
samples/bpf/xdp_tx_iptunnel_kern.c -o -| llc -march=bpf -filetype=obj -o samples/bpf/xdp_tx_iptunnel_kern.o $ clang --version clang version 3.9.1 (tags/RELEASE_391/final) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /usr/bin Signed-off-by: Alexander Alemayhu <ale

[PATCH net-next 2/3] samples/bpf: add static to function with no prototype

2017-04-24 Thread Alexander Alemayhu
-by: Alexander Alemayhu <alexan...@alemayhu.com> --- samples/bpf/cookie_uid_helper_example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/bpf/cookie_uid_helper_example.c b/samples/bpf/cookie_uid_helper_example.c index ad5afedf2e70..9ce55840d61d 100644 --- a/sampl

[PATCH net-next 3/3] samples/bpf: check before defining offsetof

2017-04-24 Thread Alexander Alemayhu
from samples/bpf/test_lru_dist.c:24: /usr/lib/gcc/x86_64-redhat-linux/6.3.1/include/stddef.h:417:0: note: this is the location of the previous definition #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER) Signed-off-by: Alexander Alemayhu <alexan...@alemayhu.com> --- samples/bpf/test

[PATCH net-next 0/3] Misc BPF cleanup

2017-04-24 Thread Alexander Alemayhu
Hei, while looking into making the Makefile in samples/bpf better handle O= I saw several warnings when running `make clean && make samples/bpf/`. This series reduces those warnings. Thanks. Alexander Alemayhu (3): samples/bpf: add -Wno-unknown-warning-option to clang samples/

Re: [PATCH net-next] bpf: add test_progs to .gitignore

2017-04-11 Thread Alexander Alemayhu
ne else does I can send something later (still learning the make syntax). Thanks. -- Mit freundlichen Grüßen Alexander Alemayhu

Re: [PATCH net-next] bpf: add test_progs to .gitignore

2017-04-11 Thread Alexander Alemayhu
the below? commit 1036c0af4dc381c2571947f197c9d30c2c9f4510 Author: Alexander Alemayhu <alexan...@alemayhu.com> Date: Tue Apr 11 13:31:32 2017 +0200 bpf: ignore generated files o add test_progs to tools/testing/selftests/bpf/.gitignore and the other generated files. o

[PATCH net-next] bpf: add test_progs to .gitignore

2017-04-11 Thread Alexander Alemayhu
Signed-off-by: Alexander Alemayhu <alexan...@alemayhu.com> --- tools/testing/selftests/bpf/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/bpf/.gitignore b/tools/testing/selftests/bpf/.gitignore index 541d9d7fad5a..2fe8766e204f 100644 --- a/tools/t

[PATCH net-next] bpf: fix comment typo

2017-04-08 Thread Alexander Alemayhu
o s/bpf_bpf_get_socket_cookie/bpf_get_socket_cookie Signed-off-by: Alexander Alemayhu <alexan...@alemayhu.com> --- include/uapi/linux/bpf.h | 2 +- tools/include/uapi/linux/bpf.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/bpf.h b/includ

Re: [PATCH iproute2] man: fix man page warnings

2017-04-05 Thread Alexander Alemayhu
gt; anyway. > I will keep your comment in mind for next time. Thanks. -- Mit freundlichen Grüßen Alexander Alemayhu

[PATCH iproute2] man: fix man page warnings

2017-03-26 Thread Alexander Alemayhu
-by: Alexander Alemayhu <alexan...@alemayhu.com> --- man/man8/tc-flower.8 | 2 +- man/man8/tc-ife.8 | 2 +- man/man8/tc-matchall.8 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/man/man8/tc-flower.8 b/man/man8/tc-flower.8 index fc5bac503324..ba290657c224 100644 --- a/man/m

Re: [PATCH net-next 1/2] tcp: remove per-destination timestamp cache

2017-03-19 Thread Alexander Alemayhu
did-it-ipv6-nat-by-patrick-mchardy -- Mit freundlichen Grüßen Alexander Alemayhu

[PATCH iproute2] man: add examples to ip.8

2017-03-12 Thread Alexander Alemayhu
Having some examples in the top level man page might make it a little bit easier for new users to get started. Reused some words / sentences from the existing man pages. Suggested-by: 積丹尼 Dan Jacobson <jida...@jidanni.org> Signed-off-by: Alexander Alemayhu <alexan...@alemayhu.com> --

Re: please add some examples to the ip man page

2017-03-09 Thread Alexander Alemayhu
would be hopeless, but actually found lots!) > Actual examples in the page would better than links IMO. git has some nice examples in gittutorial(7) and giteveryday(7). Maybe that can be good inspiration? -- Mit freundlichen Grüßen Alexander Alemayhu

[PATCH] bpf: reduce compiler warnings by adding fallthrough comments

2017-02-13 Thread Alexander Alemayhu
gt;min_value = 0; ~^~~ kernel/bpf/verifier.c:2020:2: note: here case BPF_JSGE: ^~~~ Reported-by: David Binderman <dcb...@hotmail.com> Signed-off-by: Alexander Alemayhu <alexan...@alemayhu.com> --- Using gcc (GCC) 7.0.1 20170204 (Red Hat 7.0.1-0.6) kernel/bpf

Re: [PATCH net-next] IPsec: do not ignore crypto err in ah input

2017-01-12 Thread Alexander Alemayhu
ichen Grüßen Alexander Alemayhu

[PATCH net] ipv6: fix typos

2017-01-07 Thread Alexander Alemayhu
o s/approriate/appropriate o s/discouvery/discovery Signed-off-by: Alexander Alemayhu <alexan...@alemayhu.com> --- net/ipv6/route.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 8417c41d8ec8..ce5aaf448c54 100644 --- a/ne

[PATCH ipsec] xfrm: trivial typos

2017-01-03 Thread Alexander Alemayhu
o s/descentant/descendant o s/workarbound/workaround Signed-off-by: Alexander Alemayhu <alexan...@alemayhu.com> --- net/xfrm/xfrm_policy.c | 2 +- net/xfrm/xfrm_state.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c

[PATCH net] Documentation/networking: fix typo in mpls-sysctl

2017-01-02 Thread Alexander Alemayhu
s/utliziation/utilization Signed-off-by: Alexander Alemayhu <alexan...@alemayhu.com> --- Documentation/networking/mpls-sysctl.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/networking/mpls-sysctl.txt b/Documentation/networking/mpls-sysctl.txt

Re: [ANNOUNCE] bridge-utils 1.6 release

2016-10-17 Thread Alexander Alemayhu
On Mon, Oct 17, 2016 at 09:03:30AM -0700, Stephen Hemminger wrote: > > Source: > > http://www.kernel.org/pub/linux/utils/net/bridge-utils/bridge-utils.1.6.tar.gz > This link seems to be broken. -- Mit freundlichen Grüßen Alexander Alemayhu

Re: Hello

2016-10-17 Thread Alexander Alemayhu
On Fri, Oct 14, 2016 at 05:17:36PM +0800, yuehaibing wrote: > subscribe linux-kernel > Try sending subscribe linux-kernel to majord...@vger.kernel.org

Re: hello

2016-10-17 Thread Alexander Alemayhu
On Fri, Oct 14, 2016 at 05:18:10PM +0800, maowenan wrote: > i want to subscribe this mail, thank you very much. > Try sending subscribe netdev to majord...@vger.kernel.org

[PATCH net-next] Documentation/networking: update git urls to use https over http

2016-10-13 Thread Alexander Alemayhu
Cloning into 'linux'... fatal: repository 'http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/' not found Cloning into 'stable-queue'... fatal: repository 'http://git.kernel.org/cgit/linux/kernel/git/stable/stable-queue.git/' not found Signed-off-by: Alexander Alemayhu <ale