Skip to contentSkip to conversation

net: udp6: replace __UDP_INC_STATS() with __UDP6_INC_STATS()

PATCH Applied [email protected] 2 participants 2 messages Nov 3, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: udp6: replace __UDP_INC_STATS() with __UDP6_INC_STATS()

From: Menglong Dong <[email protected]>

__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().

---
 net/ipv6/udp.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
net/ipv6/udp.c +3 -3
index 8d785232b479..4fd8c87c607f 100644
@@ -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;
 			}
 		}
Signature · 1 line
2.27.0
#1 lore raw
This patch was applied to netdev/net.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <[email protected]>:

Quoted 9 lines · On Wed, 3 Nov 2021 16:28:43 +0800 you wrote:

From: Menglong Dong <[email protected]>

__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().

[...]

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!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html