net: skbuff: don't zero tc members when freeing skb
authorFlorian Westphal <fw@strlen.de>
Wed, 31 Dec 2014 12:33:41 +0000 (13:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Jan 2015 21:04:29 +0000 (16:04 -0500)
commite8768f971558019ed83eee8210375cd2143deef2
treedc40361eb9be9d2cb3a2303f4600a16b6fd6dd5d
parent6c032edc8a338f7a5d7bbd3dd8a08ac80d37dd86
net: skbuff: don't zero tc members when freeing skb

Not needed, only four cases:
 - kfree_skb (or one of its aliases).
   Don't need to zero, memory will be freed.
 - kfree_skb_partial and head was stolen:  memory will be freed.
 - skb_morph:  The skb header fields (including tc ones) will be
   copied over from the 'to-be-morphed' skb right after
   skb_release_head_state returns.
 - skb_segment:  Same as before, all the skb header
   fields are copied over from the original skb right away.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c