aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sock.h
diff options
context:
space:
mode:
authorSorin Dumitru <sorin@returnze.ro>2014-07-22 14:16:51 -0400
committerDavid S. Miller <davem@davemloft.net>2014-07-23 16:23:06 -0400
commit274f482d33a309c87096f2983601ceda2761094e (patch)
treedaaf79b42277f9f6fc69b66ae59934ef25b0ab42 /include/net/sock.h
parent52c4f0ec662bbf02f1b0bcb311a48af2c8e5ee89 (diff)
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>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r--include/net/sock.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/net/sock.h b/include/net/sock.h
index 28f734601b50..720773304a85 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -810,8 +810,7 @@ static inline void __sk_add_backlog(struct sock *sk, struct sk_buff *skb)
810 * Do not take into account this skb truesize, 810 * Do not take into account this skb truesize,
811 * to allow even a single big packet to come. 811 * to allow even a single big packet to come.
812 */ 812 */
813static inline bool sk_rcvqueues_full(const struct sock *sk, const struct sk_buff *skb, 813static inline bool sk_rcvqueues_full(const struct sock *sk, unsigned int limit)
814 unsigned int limit)
815{ 814{
816 unsigned int qsize = sk->sk_backlog.len + atomic_read(&sk->sk_rmem_alloc); 815 unsigned int qsize = sk->sk_backlog.len + atomic_read(&sk->sk_rmem_alloc);
817 816
@@ -822,7 +821,7 @@ static inline bool sk_rcvqueues_full(const struct sock *sk, const struct sk_buff
822static inline __must_check int sk_add_backlog(struct sock *sk, struct sk_buff *skb, 821static inline __must_check int sk_add_backlog(struct sock *sk, struct sk_buff *skb,
823 unsigned int limit) 822 unsigned int limit)
824{ 823{
825 if (sk_rcvqueues_full(sk, skb, limit)) 824 if (sk_rcvqueues_full(sk, limit))
826 return -ENOBUFS; 825 return -ENOBUFS;
827 826
828 __sk_add_backlog(sk, skb); 827 __sk_add_backlog(sk, skb);