Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sock: remove skb argument from sk_rcvqueues_full

It hasn't been used since commit 0fd7bac(net: relax rcvbuf limits).

Signed-off-by: Sorin Dumitru <sorin@returnze.ro>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Sorin Dumitru and committed by
David S. Miller
274f482d 52c4f0ec

+5 -6
+2 -3
include/net/sock.h
··· 810 810 * Do not take into account this skb truesize, 811 811 * to allow even a single big packet to come. 812 812 */ 813 - static inline bool sk_rcvqueues_full(const struct sock *sk, const struct sk_buff *skb, 814 - unsigned int limit) 813 + static inline bool sk_rcvqueues_full(const struct sock *sk, unsigned int limit) 815 814 { 816 815 unsigned int qsize = sk->sk_backlog.len + atomic_read(&sk->sk_rmem_alloc); 817 816 ··· 821 822 static inline __must_check int sk_add_backlog(struct sock *sk, struct sk_buff *skb, 822 823 unsigned int limit) 823 824 { 824 - if (sk_rcvqueues_full(sk, skb, limit)) 825 + if (sk_rcvqueues_full(sk, limit)) 825 826 return -ENOBUFS; 826 827 827 828 __sk_add_backlog(sk, skb);
+1 -1
net/core/sock.c
··· 491 491 492 492 skb->dev = NULL; 493 493 494 - if (sk_rcvqueues_full(sk, skb, sk->sk_rcvbuf)) { 494 + if (sk_rcvqueues_full(sk, sk->sk_rcvbuf)) { 495 495 atomic_inc(&sk->sk_drops); 496 496 goto discard_and_relse; 497 497 }
+1 -1
net/ipv4/udp.c
··· 1567 1567 goto csum_error; 1568 1568 1569 1569 1570 - if (sk_rcvqueues_full(sk, skb, sk->sk_rcvbuf)) { 1570 + if (sk_rcvqueues_full(sk, sk->sk_rcvbuf)) { 1571 1571 UDP_INC_STATS_BH(sock_net(sk), UDP_MIB_RCVBUFERRORS, 1572 1572 is_udplite); 1573 1573 goto drop;
+1 -1
net/ipv6/udp.c
··· 673 673 goto csum_error; 674 674 } 675 675 676 - if (sk_rcvqueues_full(sk, skb, sk->sk_rcvbuf)) { 676 + if (sk_rcvqueues_full(sk, sk->sk_rcvbuf)) { 677 677 UDP6_INC_STATS_BH(sock_net(sk), 678 678 UDP_MIB_RCVBUFERRORS, is_udplite); 679 679 goto drop;