diff options
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index bcdd6606f468..ae836fded530 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -299,7 +299,7 @@ typedef unsigned char *sk_buff_data_t; | |||
299 | * @nfctinfo: Relationship of this skb to the connection | 299 | * @nfctinfo: Relationship of this skb to the connection |
300 | * @nfct_reasm: netfilter conntrack re-assembly pointer | 300 | * @nfct_reasm: netfilter conntrack re-assembly pointer |
301 | * @nf_bridge: Saved data about a bridged frame - see br_netfilter.c | 301 | * @nf_bridge: Saved data about a bridged frame - see br_netfilter.c |
302 | * @iif: ifindex of device we arrived on | 302 | * @skb_iif: ifindex of device we arrived on |
303 | * @queue_mapping: Queue mapping for multiqueue devices | 303 | * @queue_mapping: Queue mapping for multiqueue devices |
304 | * @tc_index: Traffic control index | 304 | * @tc_index: Traffic control index |
305 | * @tc_verd: traffic control verdict | 305 | * @tc_verd: traffic control verdict |
@@ -366,7 +366,7 @@ struct sk_buff { | |||
366 | struct nf_bridge_info *nf_bridge; | 366 | struct nf_bridge_info *nf_bridge; |
367 | #endif | 367 | #endif |
368 | 368 | ||
369 | int iif; | 369 | int skb_iif; |
370 | #ifdef CONFIG_NET_SCHED | 370 | #ifdef CONFIG_NET_SCHED |
371 | __u16 tc_index; /* traffic control index */ | 371 | __u16 tc_index; /* traffic control index */ |
372 | #ifdef CONFIG_NET_CLS_ACT | 372 | #ifdef CONFIG_NET_CLS_ACT |
@@ -389,8 +389,10 @@ struct sk_buff { | |||
389 | #ifdef CONFIG_NETWORK_SECMARK | 389 | #ifdef CONFIG_NETWORK_SECMARK |
390 | __u32 secmark; | 390 | __u32 secmark; |
391 | #endif | 391 | #endif |
392 | 392 | union { | |
393 | __u32 mark; | 393 | __u32 mark; |
394 | __u32 dropcount; | ||
395 | }; | ||
394 | 396 | ||
395 | __u16 vlan_tci; | 397 | __u16 vlan_tci; |
396 | 398 | ||
@@ -414,14 +416,6 @@ struct sk_buff { | |||
414 | 416 | ||
415 | #include <asm/system.h> | 417 | #include <asm/system.h> |
416 | 418 | ||
417 | #ifdef CONFIG_HAS_DMA | ||
418 | #include <linux/dma-mapping.h> | ||
419 | extern int skb_dma_map(struct device *dev, struct sk_buff *skb, | ||
420 | enum dma_data_direction dir); | ||
421 | extern void skb_dma_unmap(struct device *dev, struct sk_buff *skb, | ||
422 | enum dma_data_direction dir); | ||
423 | #endif | ||
424 | |||
425 | static inline struct dst_entry *skb_dst(const struct sk_buff *skb) | 419 | static inline struct dst_entry *skb_dst(const struct sk_buff *skb) |
426 | { | 420 | { |
427 | return (struct dst_entry *)skb->_skb_dst; | 421 | return (struct dst_entry *)skb->_skb_dst; |
@@ -489,8 +483,7 @@ extern int skb_append_datato_frags(struct sock *sk, struct sk_buff *skb, | |||
489 | int len,int odd, struct sk_buff *skb), | 483 | int len,int odd, struct sk_buff *skb), |
490 | void *from, int length); | 484 | void *from, int length); |
491 | 485 | ||
492 | struct skb_seq_state | 486 | struct skb_seq_state { |
493 | { | ||
494 | __u32 lower_offset; | 487 | __u32 lower_offset; |
495 | __u32 upper_offset; | 488 | __u32 upper_offset; |
496 | __u32 frag_idx; | 489 | __u32 frag_idx; |
@@ -1489,6 +1482,16 @@ static inline struct sk_buff *netdev_alloc_skb(struct net_device *dev, | |||
1489 | return __netdev_alloc_skb(dev, length, GFP_ATOMIC); | 1482 | return __netdev_alloc_skb(dev, length, GFP_ATOMIC); |
1490 | } | 1483 | } |
1491 | 1484 | ||
1485 | static inline struct sk_buff *netdev_alloc_skb_ip_align(struct net_device *dev, | ||
1486 | unsigned int length) | ||
1487 | { | ||
1488 | struct sk_buff *skb = netdev_alloc_skb(dev, length + NET_IP_ALIGN); | ||
1489 | |||
1490 | if (NET_IP_ALIGN && skb) | ||
1491 | skb_reserve(skb, NET_IP_ALIGN); | ||
1492 | return skb; | ||
1493 | } | ||
1494 | |||
1492 | extern struct page *__netdev_alloc_page(struct net_device *dev, gfp_t gfp_mask); | 1495 | extern struct page *__netdev_alloc_page(struct net_device *dev, gfp_t gfp_mask); |
1493 | 1496 | ||
1494 | /** | 1497 | /** |