SEC("unknown"), the for clause will not call load_and_attach()
to load the BPF code. 1 should be returned to callees instead of 0.
Signed-off-by: Wang Sheng-Hui
---
samples/bpf/bpf_load.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/samples/bpf/bpf_load.c b/samples/bpf/bpf_loa
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),
sll_ifindex=if_nametoindex("l
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, ...);
i
The program run against loopback interace "lo", not "eth0".
Correct the comment.
Signed-off-by: Wang Sheng-Hui
---
samples/bpf/sock_example.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/samples/bpf/sock_example.c b/samples/bpf/sock_example.
The tools are located at tootls/bpf/ instead of tools/net/.
Update the filter.txt doc.
Signed-off-by: Wang Sheng-Hui
---
Documentation/networking/filter.txt | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Documentation/networking/filter.txt
b/Documentation/networking
_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
---
Changes since v2:
* Reformat the commit l
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-H
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
---
drivers/net/ethernet/mellanox