Commit 21d91a95 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

[NET]: Make sure to copy TSO fields in copy_skb_header().

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7eee20b1
...@@ -394,6 +394,8 @@ static void copy_skb_header(struct sk_buff *new, const struct sk_buff *old) ...@@ -394,6 +394,8 @@ static void copy_skb_header(struct sk_buff *new, const struct sk_buff *old)
new->tc_index = old->tc_index; new->tc_index = old->tc_index;
#endif #endif
atomic_set(&new->users, 1); atomic_set(&new->users, 1);
skb_shinfo(new)->tso_size = skb_shinfo(old)->tso_size;
skb_shinfo(new)->tso_segs = skb_shinfo(old)->tso_segs;
} }
/** /**
...@@ -483,8 +485,6 @@ struct sk_buff *pskb_copy(struct sk_buff *skb, int gfp_mask) ...@@ -483,8 +485,6 @@ struct sk_buff *pskb_copy(struct sk_buff *skb, int gfp_mask)
} }
skb_shinfo(n)->nr_frags = i; skb_shinfo(n)->nr_frags = i;
} }
skb_shinfo(n)->tso_size = skb_shinfo(skb)->tso_size;
skb_shinfo(n)->tso_segs = skb_shinfo(skb)->tso_segs;
if (skb_shinfo(skb)->frag_list) { if (skb_shinfo(skb)->frag_list) {
skb_shinfo(n)->frag_list = skb_shinfo(skb)->frag_list; skb_shinfo(n)->frag_list = skb_shinfo(skb)->frag_list;
...@@ -631,8 +631,6 @@ struct sk_buff *skb_copy_expand(const struct sk_buff *skb, ...@@ -631,8 +631,6 @@ struct sk_buff *skb_copy_expand(const struct sk_buff *skb,
BUG(); BUG();
copy_skb_header(n, skb); copy_skb_header(n, skb);
skb_shinfo(n)->tso_size = skb_shinfo(skb)->tso_size;
skb_shinfo(n)->tso_segs = skb_shinfo(skb)->tso_segs;
return n; return n;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment