diff options
author | Eric Dumazet <edumazet@google.com> | 2014-10-30 20:32:34 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-31 02:58:30 +0300 |
commit | 39bb5e62867de82b269b07df900165029b928359 (patch) | |
tree | f0cbefb0eee4eda2697c4e2fd6e0ad3ee7331f43 /net/xfrm/xfrm_policy.c | |
parent | 14051f0452a2c26a3f4791e6ad6a435e8f1945ff (diff) | |
download | linux-39bb5e62867de82b269b07df900165029b928359.tar.xz |
net: skb_fclone_busy() needs to detect orphaned skb
Some drivers are unable to perform TX completions in a bound time.
They instead call skb_orphan()
Problem is skb_fclone_busy() has to detect this case, otherwise
we block TCP retransmits and can freeze unlucky tcp sessions on
mostly idle hosts.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Fixes: 1f3279ae0c13 ("tcp: avoid retransmits of TCP packets hanging in host queues")
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
-rw-r--r-- | net/xfrm/xfrm_policy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 4c4e457e7888..88bf289abdc9 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c @@ -1962,7 +1962,7 @@ static int xdst_queue_output(struct sock *sk, struct sk_buff *skb) struct xfrm_policy *pol = xdst->pols[0]; struct xfrm_policy_queue *pq = &pol->polq; - if (unlikely(skb_fclone_busy(skb))) { + if (unlikely(skb_fclone_busy(sk, skb))) { kfree_skb(skb); return 0; } |