net: update skb_recycle_check() for hardware timestamping changes
Subsystems (2)
PATCH 1/1 net: update skb_recycle_check() for hardware timestamping changes
Commit ac45f602ee3d1b6f326f68bc0c2591ceebf05ba4 ("net: infrastructure for hardware time stamping") added two skb initialization actions to __alloc_skb(), which need to be added to skb_recycle_check() as well.
--- net/core/skbuff.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
net/core/skbuff.c +2 -0
@@ -502,7 +502,9 @@ int skb_recycle_check(struct sk_buff *skb, int skb_size) shinfo->gso_segs =0 ; shinfo->gso_type =0 ; shinfo->ip6_frag_id =0 ; + shinfo->tx_flags.flags =0 ; shinfo->frag_list =NULL ; +memset (&shinfo->hwtstamps,0 ,sizeof (shinfo->hwtstamps));memset (skb,0 , offsetof(struct sk_buff , tail)); skb->data = skb->head +NET_SKB_PAD ;
Signature · 1 line
1.5.6.4
Quoted 3 lines · Lennert Buytenhek
Commit
ac45f602ee3d1b6f326f68bc0c2591ceebf05ba4("net: infrastructure for hardware time stamping") added two skb initialization actions to__alloc_skb(), which need to be added toskb_recycle_check()as well.
Good catch, thanks. For what it's worth:
Signature · 6 lines
Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel, the statements I make here in no way represent Intel's position on the issue, nor am I authorized to speak on behalf of Intel on this matter.
From: Patrick Ohly <[email protected]>
Date: Wed, 06 May 2009 15:11:39 +0200
Quoted 8 lines · Lennert Buytenhek
Quoted 3 lines
Commit
ac45f602ee3d1b6f326f68bc0c2591ceebf05ba4("net: infrastructure for hardware time stamping") added two skb initialization actions to__alloc_skb(), which need to be added toskb_recycle_check()as well.Good catch, thanks. For what it's worth:
Signed-off-by Patrick Ohly <[email protected]>
Applied, thanks everyone!