Message ID | 20191009230809.27387-11-mathew.j.martineau@linux.intel.com |
---|---|
State | RFC |
Delegated to: | David Miller |
Headers | show |
Series | Multipath TCP prerequisites | expand |
diff --git a/include/net/sock.h b/include/net/sock.h index 4850c10461b8..84ea0efe7952 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -1470,6 +1470,7 @@ static inline void sk_wmem_free_skb(struct sock *sk, struct sk_buff *skb) sk_mem_uncharge(sk, skb->truesize); if (static_branch_unlikely(&tcp_tx_skb_cache_key) && !sk->sk_tx_skb_cache && !skb_cloned(skb)) { + skb_ext_reset(skb); skb_zcopy_clear(skb, true); sk->sk_tx_skb_cache = skb; return;