diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2008-10-07 17:18:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-07 17:18:42 -0400 |
commit | c57943a1c96214ee68f3890bb6772841ffbfd606 (patch) | |
tree | bfe79b29240d442c8ea104a89c2e827032b2824e /include/net/sock.h | |
parent | b339a47c370ec669f789c5989f54eec1d78574bb (diff) |
net: wrap sk->sk_backlog_rcv()
Wrap calling sk->sk_backlog_rcv() in a function. This will allow extending the
generic sk_backlog_rcv behaviour.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 18f96708f3a6..ada50c04d09f 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -482,6 +482,11 @@ static inline void sk_add_backlog(struct sock *sk, struct sk_buff *skb) | |||
482 | skb->next = NULL; | 482 | skb->next = NULL; |
483 | } | 483 | } |
484 | 484 | ||
485 | static inline int sk_backlog_rcv(struct sock *sk, struct sk_buff *skb) | ||
486 | { | ||
487 | return sk->sk_backlog_rcv(sk, skb); | ||
488 | } | ||
489 | |||
485 | #define sk_wait_event(__sk, __timeo, __condition) \ | 490 | #define sk_wait_event(__sk, __timeo, __condition) \ |
486 | ({ int __rc; \ | 491 | ({ int __rc; \ |
487 | release_sock(__sk); \ | 492 | release_sock(__sk); \ |