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>
This commit is contained in:
committed by
David S. Miller
parent
b339a47c37
commit
c57943a1c9
@ -327,7 +327,7 @@ int sk_receive_skb(struct sock *sk, struct sk_buff *skb, const int nested)
|
||||
*/
|
||||
mutex_acquire(&sk->sk_lock.dep_map, 0, 1, _RET_IP_);
|
||||
|
||||
rc = sk->sk_backlog_rcv(sk, skb);
|
||||
rc = sk_backlog_rcv(sk, skb);
|
||||
|
||||
mutex_release(&sk->sk_lock.dep_map, 1, _RET_IP_);
|
||||
} else
|
||||
@ -1374,7 +1374,7 @@ static void __release_sock(struct sock *sk)
|
||||
struct sk_buff *next = skb->next;
|
||||
|
||||
skb->next = NULL;
|
||||
sk->sk_backlog_rcv(sk, skb);
|
||||
sk_backlog_rcv(sk, skb);
|
||||
|
||||
/*
|
||||
* We are in process context here with softirqs
|
||||
|
Reference in New Issue
Block a user