Message ID | 20211103082843.521796-1-imagedong@tencent.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 250962e4684678629afd2feeaefdc40c5db501f4 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next] net: udp6: replace __UDP_INC_STATS() with __UDP6_INC_STATS() | expand |
Hello: This patch was applied to netdev/net.git (master) by David S. Miller <davem@davemloft.net>: On Wed, 3 Nov 2021 16:28:43 +0800 you wrote: > From: Menglong Dong <imagedong@tencent.com> > > __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 <imagedong@tencent.com> > > [...] 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!
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; } }