[PATCH] [PATCH bpf-next] samples/bpf/bpf_load.c: remove redundant ret assignment in bpf_load_program()

2018-04-24 Thread Wang Sheng-Hui
ad the BPF code. 1 should be returned to callees instead of 0. Signed-off-by: Wang Sheng-Hui <shh...@foxmail.com> --- samples/bpf/bpf_load.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/samples/bpf/bpf_load.c b/samples/bpf/bpf_load.c index bebe4188b4b3..feca497d6afd 100644 --- a/sample

bpf: samples/bpf/sockex2: Assertion `setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, prog_fd, sizeof(prog_fd[0])) == 0' failed.

2018-04-22 Thread Wang Sheng-Hui
Sorry to trouble you! I run samples/bpf/sockex2 failed with "Assertion `setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, prog_fd, sizeof(prog_fd[0])) == 0' failed." Then I run " strace ./sockex2" and got: ... bind(3, {sa_family=AF_PACKET, sll_protocol=htons(ETH_P_ALL),

How to detect libbfd when building tools/bpf?

2018-04-22 Thread Wang Sheng-Hui
Sorry to trouble you ! I run debian and installed binutils-dev beforehand. Then I copied tools/build/feature/test-libbfd.c to t.c and run: root@lazyfintech:~# cat t.c #include extern int printf(const char *format, ...);

[PATCH] samples/bpf: correct comment in sock_example.c

2018-04-16 Thread Wang Sheng-Hui
The program run against loopback interace "lo", not "eth0". Correct the comment. Signed-off-by: Wang Sheng-Hui <shh...@foxmail.com> --- samples/bpf/sock_example.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/bpf/sock_example.c b/sample

[PATCH] filter.txt: update 'tools/net/' to 'tools/bpf/'

2018-04-15 Thread Wang Sheng-Hui
The tools are located at tootls/bpf/ instead of tools/net/. Update the filter.txt doc. Signed-off-by: Wang Sheng-Hui <shh...@foxmail.com> --- Documentation/networking/filter.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/networking/filter.

[PATCH v3] net/mlx5: use mlx5_buf_alloc_node instead of mlx5_buf_alloc in mlx5_wq_ll_create

2016-06-23 Thread Wang Sheng-Hui
_ll_create() * Update the failure warn messages with _node postfix for mlx5_*_alloc function names Fixes: 311c7c71c9bb ("net/mlx5e: Allocate DMA coherent memory on reader NUMA node") Signed-off-by: Wang Sheng-Hui <shh...@foxmail.com> --- Changes since v2:

[PATCH v2] net/mlx5: use mlx5_buf_alloc_node instead of mlx5_buf_alloc in mlx5_wq_ll_create

2016-06-22 Thread Wang Sheng-Hui
anges: * Use mlx5_buf_alloc_node() instead of mlx5_buf_alloc() in mlx5_wq_ll_create() * Update the failure warn messages with _node postfix for mlx5_*_alloc function names Change since V1: * Add Fixes line in commit log Signed-off-by: Wang Sheng-Hui

[PATCH] net/mlx5: use mlx5_buf_alloc_node insteaf of mlx5_buf_alloc in mlx5_wq_ll_create

2016-06-22 Thread Wang Sheng-Hui
This patch introduces 2 changes: * use mlx5_buf_alloc_node() insteaf of mlx5_buf_alloc() in mlx5_wq_ll_create * Update the failure warn messages with _node postfix for mlx5_*_alloc function names Signed-off-by: Wang Sheng-Hui <shh...@foxmail.com> --- d