[PATCH 1/2] net: add an identifier name for 'struct sock *'

2018-10-29 Thread Bo YU
Fix a warning from checkpatch: function definition argument 'struct sock *' should also have an identifier name in include/net/af_unix.h. Signed-off-by: Bo YU --- include/net/af_unix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/af_unix.h b/include/net

[PATCH 2/2] net: drop a space before tabs

2018-10-29 Thread Bo YU
Fix a warning from checkpatch.pl:'please no space before tabs' in include/net/af_unix.h Signed-off-by: Bo YU --- include/net/af_unix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/af_unix.h b/include/net/af_unix.h index d53aea859a76..ddbba838d048 100644

[PATCH 0/2] net: fix warnings in include/net/af_unix.h

2018-10-29 Thread Bo YU
Fix two warnings from checkpatch.pl. Bo YU (2): net: add an identifier name for 'struct sock *' net: drop a space before tabs include/net/af_unix.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.11.0

[PATCH] net: sample/bpf/tracex3_user.c: erase "ARRAY_SIZE" redefined

2018-10-03 Thread Bo YU
There is a warning when compiling bpf program in sample/bpf BTW,i get the warning from David's net tree, then i git clone bpf tree try to compile bpf program,but it tell me failed to do that maybe i was not compile the whole kernel once. I don't know this is ok or not. Signed-off-by: Bo YU

Re: iproute2: Debian 9 No ELF support

2018-09-17 Thread Bo YU
Hi, On Mon, Sep 17, 2018 at 11:57:12AM +0200, Daniel Borkmann wrote: On 09/17/2018 10:23 AM, Bo YU wrote: Hello, I have followed the instructions from: https://cilium.readthedocs.io/en/latest/bpf/#bpftool to test xdp program. But i can not enable elf support. ./configure --prefix=/usr

iproute2: Debian 9 No ELF support

2018-09-17 Thread Bo YU
Hello, I have followed the instructions from: https://cilium.readthedocs.io/en/latest/bpf/#bpftool to test xdp program. But i can not enable elf support. ./configure --prefix=/usr ```output TC schedulers ATM no libc has setns: yes SELinux support: no ELF support: no libmnl support: yes

Re: [PATCH bpf-next v5 00/10] BTF: BPF Type Format

2018-06-15 Thread Bo YU
Hi, On Thu, Jun 07, 2018 at 04:30:29PM -0300, Arnaldo Carvalho de Melo wrote: Em Thu, Jun 07, 2018 at 12:05:10PM -0700, Martin KaFai Lau escreveu: dump-obj = true clang-opt = -g [root@jouet bpf]# perf trace -e open*,hello.c touch /tmp/hello.BTF LLVM: dumping hello.o 0.185 ( ):

Re: [PATCH V3] net/netlink: make sure the headers line up actual value output

2018-05-04 Thread Bo YU
m Wmem Dump Locks Drops Inode 33203952 0 897 0113 0 0 0 2 0 14906 Signed-off-by: Bo YU <tsu.y...@gmail.com> Applied, but why did you send this V3 to the list two times? Thanks a lot. When sent the email,i encounter networking issue and not sure send to the list.Sorry for

[PATCH] NET/netlink: optimize output of seq_puts in af_netlink.c

2018-05-02 Thread Bo YU
Optimization of command output: `cat /proc/net/netlink` After the patch, we will get: https://clbin.com/lnu4L Signed-off-by: Bo YU <tsu.y...@gmail.com> --- net/netlink/af_netlink.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/netlink/af_netlink.c b/net/n

[PATCH net 1/1] Modify the seq_puts and seq_printf of af_netlink.c file

2018-04-23 Thread Bo YU
Modify format output symbol of seq_printf function and adjust blanks in seq_puts function in order to make convenience with command:`cat /proc/net/netlink` Signed-off-by: Bo YU <tsu.y...@gmail.com> --- net/netlink/af_netlink.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

Re: [PATCH] netlink: put module reference if dump start fails

2018-02-21 Thread Bo YU
Hi, On Wed, Feb 21, 2018 at 04:41:05PM +0100, Jason A. Donenfeld wrote: Fixes: 41c87425a1ac ("netlink: do not set cb_running if dump's start() errs") I think you Would better to resend it. Bo,

Re: [PATCH] netxen: Fix a sleep-in-atomic bug in netxen_nic_pci_mem_access_direct

2017-06-21 Thread Bo Yu
Hi, On Wed, Jun 21, 2017 at 02:33:03PM +0800, Jia-Ju Bai wrote: On 06/21/2017 02:11 PM, Kalle Valo wrote: David Miller writes: From: Jia-Ju Bai Date: Mon, 19 Jun 2017 10:48:53 +0800 The driver may sleep under a spin lock, and the function call

Re: [PATCH V3 net-next 1/8] net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC

2017-06-18 Thread Bo Yu
Hi, On Sat, Jun 17, 2017 at 06:24:24PM +0100, Salil Mehta wrote: + struct notifier_block notifier_block; + /* Vxlan/Geneve information */ + struct hns3_udp_tunnel udp_tnl[HNS3_UDP_TNL_MAX]; +}; + +/* the distance between [begin, end) in a ring buffer + * note: there is a unuse

Re: [PATCH V3 net-next 2/8] net: hns3: Add support of the HNAE3 framework

2017-06-18 Thread Bo Yu
Hi, On Sat, Jun 17, 2017 at 06:24:25PM +0100, Salil Mehta wrote: + * Unregister client from ae_dev + * start() + * Enable the hardware + * stop() + * Disable the hardware + * get_status() + * Get the carrier state of the back channel of the handle, 1 for ok, 0 for + * non-ok + *

Re: [PATCH V3 net-next 1/8] net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC

2017-06-18 Thread Bo Yu
Hi, On Sat, Jun 17, 2017 at 06:24:24PM +0100, Salil Mehta wrote: +static int hns3_fill_desc(struct hns3_enet_ring *ring, void *priv, + int size, dma_addr_t dma, int frag_end, + enum hns_desc_type type) +{ + struct hns3_desc_cb *desc_cb =