summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorZhang Ying-22455 <ying.zhang22455@nxp.com>2017-09-01 06:56:01 (GMT)
committerXie Xiaobo <xiaobo.xie@nxp.com>2017-09-25 07:25:47 (GMT)
commiteae03a91605fd7dccb1de11053efee87db398df3 (patch)
tree43822d37102e5a7d5013ef2c1d2b4e4b5ba26b07 /net
parente7216fd65b443651bc9a261f8ce8fb3f6a20af72 (diff)
downloadlinux-eae03a91605fd7dccb1de11053efee87db398df3.tar.xz
linux/core: export copy_skb_header() function
Signed-off-by: Camelia Groza camelia.groza@nxp.com
Diffstat (limited to 'net')
-rw-r--r--net/core/skbuff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index ab10380..2684c49 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -1082,7 +1082,7 @@ static void skb_headers_offset_update(struct sk_buff *skb, int off)
skb->inner_mac_header += off;
}
-static void copy_skb_header(struct sk_buff *new, const struct sk_buff *old)
+void copy_skb_header(struct sk_buff *new, const struct sk_buff *old)
{
__copy_skb_header(new, old);
@@ -1090,6 +1090,7 @@ static void copy_skb_header(struct sk_buff *new, const struct sk_buff *old)
skb_shinfo(new)->gso_segs = skb_shinfo(old)->gso_segs;
skb_shinfo(new)->gso_type = skb_shinfo(old)->gso_type;
}
+EXPORT_SYMBOL(copy_skb_header);
static inline int skb_alloc_rx_flag(const struct sk_buff *skb)
{