Skip to content

Commit e61da9e

Browse files
edumazetdavem330
authored andcommitted
udp: prepare for non BH masking at backlog processing
UDP uses the generic socket backlog code, and this will soon be changed to not disable BH when protocol is called back. We need to use appropriate SNMP accessors. Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Soheil Hassas Yeganeh <soheil@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 7309f88 commit e61da9e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎net/ipv4/udp.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,9 +1514,9 @@ static int __udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
15141514

15151515
/* Note that an ENOMEM error is charged twice */
15161516
if (rc == -ENOMEM)
1517-
__UDP_INC_STATS(sock_net(sk), UDP_MIB_RCVBUFERRORS,
1517+
UDP_INC_STATS(sock_net(sk), UDP_MIB_RCVBUFERRORS,
15181518
is_udplite);
1519-
__UDP_INC_STATS(sock_net(sk), UDP_MIB_INERRORS, is_udplite);
1519+
UDP_INC_STATS(sock_net(sk), UDP_MIB_INERRORS, is_udplite);
15201520
kfree_skb(skb);
15211521
trace_udp_fail_queue_rcv_skb(rc, sk);
15221522
return -1;

‎net/ipv6/udp.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,9 +570,9 @@ static int __udpv6_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
570570

571571
/* Note that an ENOMEM error is charged twice */
572572
if (rc == -ENOMEM)
573-
__UDP6_INC_STATS(sock_net(sk),
573+
UDP6_INC_STATS(sock_net(sk),
574574
UDP_MIB_RCVBUFERRORS, is_udplite);
575-
__UDP6_INC_STATS(sock_net(sk), UDP_MIB_INERRORS, is_udplite);
575+
UDP6_INC_STATS(sock_net(sk), UDP_MIB_INERRORS, is_udplite);
576576
kfree_skb(skb);
577577
return -1;
578578
}

0 commit comments

Comments
 (0)