aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 586a11cb4398..c1dc8a95f6ff 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -1902,14 +1902,14 @@ static int dev_gso_segment(struct sk_buff *skb)
1902 1902
1903/* 1903/*
1904 * Try to orphan skb early, right before transmission by the device. 1904 * Try to orphan skb early, right before transmission by the device.
1905 * We cannot orphan skb if tx timestamp is requested, since 1905 * We cannot orphan skb if tx timestamp is requested or the sk-reference
1906 * drivers need to call skb_tstamp_tx() to send the timestamp. 1906 * is needed on driver level for other reasons, e.g. see net/can/raw.c
1907 */ 1907 */
1908static inline void skb_orphan_try(struct sk_buff *skb) 1908static inline void skb_orphan_try(struct sk_buff *skb)
1909{ 1909{
1910 struct sock *sk = skb->sk; 1910 struct sock *sk = skb->sk;
1911 1911
1912 if (sk && !skb_tx(skb)->flags) { 1912 if (sk && !skb_shinfo(skb)->tx_flags) {
1913 /* skb_tx_hash() wont be able to get sk. 1913 /* skb_tx_hash() wont be able to get sk.
1914 * We copy sk_hash into skb->rxhash 1914 * We copy sk_hash into skb->rxhash
1915 */ 1915 */