[PATCH] net: macvlan: remove redundant initialization in macvlan_dev_netpoll_setup

2020-11-04 Thread menglong8 . dong
From: Menglong Dong The initialization for err with 0 seems useless, as it is soon updated with -ENOMEM. So, we can init err with -ENOMEM. Signed-off-by: Menglong Dong --- drivers/net/macvlan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/macvlan.c b/driver

[PATCH v2] net: macvlan: remove redundant initialization in macvlan_dev_netpoll_setup

2020-11-04 Thread menglong8 . dong
From: Menglong Dong The initialization for err with 0 seems useless, as it is soon updated with -ENOMEM. So, we can remove it. Changes since v1: -Keep -ENOMEM still. Signed-off-by: Menglong Dong --- drivers/net/macvlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driv

[PATCH net-next] net: udp: introduce UDP_MIB_MEMERRORS for udp_mem

2020-11-04 Thread menglong8 . dong
From: Menglong Dong When udp_memory_allocated is at the limit, __udp_enqueue_schedule_skb will return a -ENOBUFS, and skb will be dropped in __udp_queue_rcv_skb without any counters being done. It's hard to find out what happened once this happen. So we introduce a UDP_MIB_MEMERRORS to do this j

[PATCH v2 net-next] net: udp: introduce UDP_MIB_MEMERRORS for udp_mem

2020-11-05 Thread menglong8 . dong
From: Menglong Dong When udp_memory_allocated is at the limit, __udp_enqueue_schedule_skb will return a -ENOBUFS, and skb will be dropped in __udp_queue_rcv_skb without any counters being done. It's hard to find out what happened once this happen. So we introduce a UDP_MIB_MEMERRORS to do this j

[PATCH] net: sched: fix misspellings using misspell-fixer tool

2020-11-08 Thread menglong8 . dong
From: Menglong Dong Some typos are found out by misspell-fixer tool: $ misspell-fixer -rnv ./net/sched/ ./net/sched/act_api.c:686 ./net/sched/act_bpf.c:68 ./net/sched/cls_rsvp.h:241 ./net/sched/em_cmp.c:44 ./net/sched/sch_pie.c:408 Fix typos found by misspell-fixer. Signed-off-by: Menglong Don

[PATCH] fs/nfs: remove duplicate include

2020-11-09 Thread menglong8 . dong
From: Menglong Dong 'nfs42.h' is already included above and can be removed here. Signed-off-by: Menglong Dong --- fs/nfs/nfs4proc.c | 4 1 file changed, 4 deletions(-) diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 9e0ca9b2b210..807fdaeed357 100644 --- a/fs/nfs/nfs4proc.c +++ b

[PATCH] net: tcp: ratelimit warnings in tcp_recvmsg

2020-11-09 Thread menglong8 . dong
From: Menglong Dong 'before(*seq, TCP_SKB_CB(skb)->seq) == true' means that one or more skbs are lost somehow. Once this happen, it seems that it will never recover automatically. As a result, a warning will be printed and a '-EAGAIN' will be returned in non-block mode. As a general suituation,

[PATCH v2 net-next] net: udp: remove redundant initialization in udp_gro_complete

2020-11-09 Thread menglong8 . dong
From: Menglong Dong The initialization for 'err' with '-ENOSYS' is redundant and can be removed, as it is updated soon and not used. Changes since v1: - Move the err declaration below struct sock *sk Signed-off-by: Menglong Dong --- net/ipv4/udp_offload.c | 2 +- 1 file changed, 1 insertion(+

[PATCH] net: ipv4: remove redundant initialization in inet_rtm_deladdr

2020-11-05 Thread menglong8 . dong
From: Menglong Dong The initialization for 'err' with '-EINVAL' is redundant and can be removed, as it is updated soon. Signed-off-by: Menglong Dong --- net/ipv4/devinet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c index 123a6d3.

[PATCH] net: udp: remove redundant initialization in udp_dump_one

2020-11-05 Thread menglong8 . dong
From: Menglong Dong The initialization for 'err' with '-EINVAL' is redundant and can be removed, as it is updated soon and not used. Signed-off-by: Menglong Dong --- net/ipv4/udp_diag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/udp_diag.c b/net/ipv4/udp_diag.

[PATCH] net: udp: remove redundant initialization in udp_gro_complete

2020-11-05 Thread menglong8 . dong
From: Menglong Dong The initialization for 'err' with '-ENOSYS' is redundant and can be removed, as it is updated soon and not used. Signed-off-by: Menglong Dong --- net/ipv4/udp_offload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/udp_offload.c b/net/ipv4/udp

[PATCH] net: udp: remove redundant initialization in udp_send_skb

2020-11-05 Thread menglong8 . dong
From: Menglong Dong The initialization for 'err' with 0 is redundant and can be removed, as it is updated by ip_send_skb and not used before that. Signed-off-by: Menglong Dong --- net/ipv4/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c

[PATCH] samples/bpf: remove duplicate include

2020-11-06 Thread menglong8 . dong
From: Menglong Dong Obviously, 'bpf/bpf.h' in 'samples/bpf/hbm.c' is duplicated. Signed-off-by: Menglong Dong --- samples/bpf/hbm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/samples/bpf/hbm.c b/samples/bpf/hbm.c index ff4c533..400e741 100644 --- a/samples/bpf/hbm.c +++ b/samples/bpf/h

<    1   2