Re: [ovs-dev] [PATCH 3/3] skbuff: Added new helper function skb_cow_clone_head.

2013-06-13 Thread Ben Hutchings
On Wed, 2013-06-12 at 22:40 +1000, Dave Wiltshire wrote: > In a few different drivers there is a check of (skb_cloned && > !skb_clone_writable) before then using pskb_expand_head to copy the skb > if that is required. There are already some skb_cow_* functions for > other conditions, so added this

[ovs-dev] [PATCH 3/3] skbuff: Added new helper function skb_cow_clone_head.

2013-06-12 Thread Dave Wiltshire
In a few different drivers there is a check of (skb_cloned && !skb_clone_writable) before then using pskb_expand_head to copy the skb if that is required. There are already some skb_cow_* functions for other conditions, so added this one and changed the call sites. Signed-off-by: Dave Wiltshire -