summaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorJiri Pirko <jiri@resnulli.us>2014-11-19 14:05:01 +0100
committerDavid S. Miller <davem@davemloft.net>2014-11-21 14:20:17 -0500
commite21951212f03b8d805795d8f71206853b2ab344d (patch)
tree2ecd2d59b8ca78f40e8a695ba5599e60dc652a48 /include/linux/skbuff.h
parent15255a43e6c917813800702e100267046e240cc0 (diff)
downloadop-kernel-dev-e21951212f03b8d805795d8f71206853b2ab344d.zip
op-kernel-dev-e21951212f03b8d805795d8f71206853b2ab344d.tar.gz
net: move make_writable helper into common code
note that skb_make_writable already exists in net/netfilter/core.c but does something slightly different. Suggested-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Jiri Pirko <jiri@resnulli.us> Acked-by: Pravin B Shelar <pshelar@nicira.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 73c370e..e045516 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -2678,6 +2678,7 @@ void skb_scrub_packet(struct sk_buff *skb, bool xnet);
unsigned int skb_gso_transport_seglen(const struct sk_buff *skb);
struct sk_buff *skb_segment(struct sk_buff *skb, netdev_features_t features);
struct sk_buff *skb_vlan_untag(struct sk_buff *skb);
+int skb_ensure_writable(struct sk_buff *skb, int write_len);
struct skb_checksum_ops {
__wsum (*update)(const void *mem, int len, __wsum wsum);
OpenPOWER on IntegriCloud