[PATCH net-next] net: udp6: replace __UDP_INC_STATS() with __UDP6_INC_STATS()

Subsystems: networking [general], the rest, user datagram protocol (udp)

STALE1739d

2 messages, 2 authors, 2021-11-03 · open the first message on its own page

[PATCH net-next] net: udp6: replace __UDP_INC_STATS() with __UDP6_INC_STATS()

From: <hidden>
Date: 2021-11-03 08:28:56

From: Menglong Dong <redacted>

__UDP_INC_STATS() is used in udpv6_queue_rcv_one_skb() when encap_rcv()
fails. __UDP6_INC_STATS() should be used here, so replace it with
__UDP6_INC_STATS().

Signed-off-by: Menglong Dong <redacted>
---
 net/ipv6/udp.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index 8d785232b479..4fd8c87c607f 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -700,9 +700,9 @@ static int udpv6_queue_rcv_one_skb(struct sock *sk, struct sk_buff *skb)
 
 			ret = encap_rcv(sk, skb);
 			if (ret <= 0) {
-				__UDP_INC_STATS(sock_net(sk),
-						UDP_MIB_INDATAGRAMS,
-						is_udplite);
+				__UDP6_INC_STATS(sock_net(sk),
+						 UDP_MIB_INDATAGRAMS,
+						 is_udplite);
 				return -ret;
 			}
 		}
-- 
2.27.0

Re: [PATCH net-next] net: udp6: replace __UDP_INC_STATS() with __UDP6_INC_STATS()

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-11-03 14:10:12

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller [off-list ref]:

On Wed,  3 Nov 2021 16:28:43 +0800 you wrote:
From: Menglong Dong <redacted>

__UDP_INC_STATS() is used in udpv6_queue_rcv_one_skb() when encap_rcv()
fails. __UDP6_INC_STATS() should be used here, so replace it with
__UDP6_INC_STATS().

Signed-off-by: Menglong Dong <redacted>

[...]
Here is the summary with links:
  - [net-next] net: udp6: replace __UDP_INC_STATS() with __UDP6_INC_STATS()
    https://git.kernel.org/netdev/net/c/250962e46846

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help