We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6055796 commit 6a1f12dCopy full SHA for 6a1f12d
net/ipv4/udp.c
@@ -1516,12 +1516,7 @@ int __udp_enqueue_schedule_skb(struct sock *sk, struct sk_buff *skb)
1516
size = skb->truesize;
1517
udp_set_dev_scratch(skb);
1518
1519
- /* we drop only if the receive buf is full and the receive
1520
- * queue contains some other skb
1521
- */
1522
- rmem = atomic_add_return(size, &sk->sk_rmem_alloc);
1523
- if (rmem > (size + (unsigned int)sk->sk_rcvbuf))
1524
- goto uncharge_drop;
+ atomic_add(size, &sk->sk_rmem_alloc);
1525
1526
spin_lock(&list->lock);
1527
err = udp_rmem_schedule(sk, size);
0 commit comments