Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
1a98c69af1
561 changed files with 5004 additions and 3113 deletions
|
@ -1772,9 +1772,11 @@ __sk_dst_set(struct sock *sk, struct dst_entry *dst)
|
|||
static inline void
|
||||
sk_dst_set(struct sock *sk, struct dst_entry *dst)
|
||||
{
|
||||
spin_lock(&sk->sk_dst_lock);
|
||||
__sk_dst_set(sk, dst);
|
||||
spin_unlock(&sk->sk_dst_lock);
|
||||
struct dst_entry *old_dst;
|
||||
|
||||
sk_tx_queue_clear(sk);
|
||||
old_dst = xchg((__force struct dst_entry **)&sk->sk_dst_cache, dst);
|
||||
dst_release(old_dst);
|
||||
}
|
||||
|
||||
static inline void
|
||||
|
@ -1786,9 +1788,7 @@ __sk_dst_reset(struct sock *sk)
|
|||
static inline void
|
||||
sk_dst_reset(struct sock *sk)
|
||||
{
|
||||
spin_lock(&sk->sk_dst_lock);
|
||||
__sk_dst_reset(sk);
|
||||
spin_unlock(&sk->sk_dst_lock);
|
||||
sk_dst_set(sk, NULL);
|
||||
}
|
||||
|
||||
struct dst_entry *__sk_dst_check(struct sock *sk, u32 cookie);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue