From cfb981f998cf66d88f903dac8d20c52aa412482b Mon Sep 17 00:00:00 2001 From: Hemant Agrawal Date: Fri, 4 Sep 2015 18:08:26 +0530 Subject: 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 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, -- cgit v0.10.2