aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index c9ef41916071..fe20d171acf1 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1142,6 +1142,13 @@ static inline void *skb_gro_mac_header(struct sk_buff *skb)
1142 skb_shinfo(skb)->frags[0].page_offset; 1142 skb_shinfo(skb)->frags[0].page_offset;
1143} 1143}
1144 1144
1145static inline void *skb_gro_network_header(struct sk_buff *skb)
1146{
1147 return skb_headlen(skb) ? skb_network_header(skb) :
1148 page_address(skb_shinfo(skb)->frags[0].page) +
1149 skb_shinfo(skb)->frags[0].page_offset + skb_network_offset(skb);
1150}
1151
1145static inline int dev_hard_header(struct sk_buff *skb, struct net_device *dev, 1152static inline int dev_hard_header(struct sk_buff *skb, struct net_device *dev,
1146 unsigned short type, 1153 unsigned short type,
1147 const void *daddr, const void *saddr, 1154 const void *daddr, const void *saddr,