aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 4f2db79a2abb..bf221d65d9ad 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -393,9 +393,10 @@ struct sk_buff {
393#else 393#else
394 __u8 deliver_no_wcard:1; 394 __u8 deliver_no_wcard:1;
395#endif 395#endif
396 __u8 ooo_okay:1;
396 kmemcheck_bitfield_end(flags2); 397 kmemcheck_bitfield_end(flags2);
397 398
398 /* 0/14 bit hole */ 399 /* 0/13 bit hole */
399 400
400#ifdef CONFIG_NET_DMA 401#ifdef CONFIG_NET_DMA
401 dma_cookie_t dma_cookie; 402 dma_cookie_t dma_cookie;
@@ -1361,6 +1362,11 @@ static inline void skb_set_mac_header(struct sk_buff *skb, const int offset)
1361} 1362}
1362#endif /* NET_SKBUFF_DATA_USES_OFFSET */ 1363#endif /* NET_SKBUFF_DATA_USES_OFFSET */
1363 1364
1365static inline int skb_checksum_start_offset(const struct sk_buff *skb)
1366{
1367 return skb->csum_start - skb_headroom(skb);
1368}
1369
1364static inline int skb_transport_offset(const struct sk_buff *skb) 1370static inline int skb_transport_offset(const struct sk_buff *skb)
1365{ 1371{
1366 return skb_transport_header(skb) - skb->data; 1372 return skb_transport_header(skb) - skb->data;
@@ -2179,8 +2185,9 @@ static inline bool skb_rx_queue_recorded(const struct sk_buff *skb)
2179 return skb->queue_mapping != 0; 2185 return skb->queue_mapping != 0;
2180} 2186}
2181 2187
2182extern u16 skb_tx_hash(const struct net_device *dev, 2188extern u16 __skb_tx_hash(const struct net_device *dev,
2183 const struct sk_buff *skb); 2189 const struct sk_buff *skb,
2190 unsigned int num_tx_queues);
2184 2191
2185#ifdef CONFIG_XFRM 2192#ifdef CONFIG_XFRM
2186static inline struct sec_path *skb_sec_path(struct sk_buff *skb) 2193static inline struct sec_path *skb_sec_path(struct sk_buff *skb)