summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHemant Agrawal <Hemant@freescale.com>2015-09-04 12:38:26 (GMT)
committerSahil Malhotra <sahilmalhotra@freescale.com>2015-11-04 11:02:08 (GMT)
commitcfb981f998cf66d88f903dac8d20c52aa412482b (patch)
treec3c0e1abffebb4b661fbd6cbae5718be47431b62
parent67ef9d132bb8d6e91863160e56ec62291c8b2be7 (diff)
downloadlinux-fsl-qoriq-cfb981f998cf66d88f903dac8d20c52aa412482b.tar.xz
dev-exporting dev functions to support ceetm
Exporting functions to be used by CEETM for tcp termination handling. TCP packets may come with GSO options. Signed-off-by: Sahil Malhotra <sahilmalhotra@freescale.com>
-rw-r--r--net/core/dev.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index dd354f0..71d316a 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -2470,7 +2470,7 @@ static void dev_gso_skb_destructor(struct sk_buff *skb)
* This function segments the given skb and stores the list of segments
* in skb->next.
*/
-static int dev_gso_segment(struct sk_buff *skb, netdev_features_t features)
+int dev_gso_segment(struct sk_buff *skb, netdev_features_t features)
{
struct sk_buff *segs;
@@ -2489,6 +2489,13 @@ static int dev_gso_segment(struct sk_buff *skb, netdev_features_t features)
return 0;
}
+EXPORT_SYMBOL(dev_gso_segment);
+
+void dev_set_skb_destructor(struct sk_buff *skb)
+{
+ skb->destructor = DEV_GSO_CB(skb)->destructor;
+}
+EXPORT_SYMBOL(dev_set_skb_destructor);
static netdev_features_t harmonize_features(struct sk_buff *skb,
const struct net_device *dev,