diff options
Diffstat (limited to 'include/linux/skbuff.h')
| -rw-r--r-- | include/linux/skbuff.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 4ff3940210d8..5992f65b4184 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
| @@ -188,7 +188,7 @@ enum { | |||
| 188 | * @sk: Socket we are owned by | 188 | * @sk: Socket we are owned by |
| 189 | * @tstamp: Time we arrived | 189 | * @tstamp: Time we arrived |
| 190 | * @dev: Device we arrived on/are leaving by | 190 | * @dev: Device we arrived on/are leaving by |
| 191 | * @input_dev: Device we arrived on | 191 | * @iif: ifindex of device we arrived on |
| 192 | * @h: Transport layer header | 192 | * @h: Transport layer header |
| 193 | * @nh: Network layer header | 193 | * @nh: Network layer header |
| 194 | * @mac: Link layer header | 194 | * @mac: Link layer header |
| @@ -235,7 +235,8 @@ struct sk_buff { | |||
| 235 | struct sock *sk; | 235 | struct sock *sk; |
| 236 | struct skb_timeval tstamp; | 236 | struct skb_timeval tstamp; |
| 237 | struct net_device *dev; | 237 | struct net_device *dev; |
| 238 | struct net_device *input_dev; | 238 | int iif; |
| 239 | /* 4 byte hole on 64 bit*/ | ||
| 239 | 240 | ||
| 240 | union { | 241 | union { |
| 241 | struct tcphdr *th; | 242 | struct tcphdr *th; |
| @@ -345,9 +346,6 @@ static inline struct sk_buff *alloc_skb_fclone(unsigned int size, | |||
| 345 | return __alloc_skb(size, priority, 1, -1); | 346 | return __alloc_skb(size, priority, 1, -1); |
| 346 | } | 347 | } |
| 347 | 348 | ||
| 348 | extern struct sk_buff *alloc_skb_from_cache(struct kmem_cache *cp, | ||
| 349 | unsigned int size, | ||
| 350 | gfp_t priority); | ||
| 351 | extern void kfree_skbmem(struct sk_buff *skb); | 349 | extern void kfree_skbmem(struct sk_buff *skb); |
| 352 | extern struct sk_buff *skb_clone(struct sk_buff *skb, | 350 | extern struct sk_buff *skb_clone(struct sk_buff *skb, |
| 353 | gfp_t priority); | 351 | gfp_t priority); |
| @@ -621,6 +619,13 @@ static inline void skb_queue_head_init(struct sk_buff_head *list) | |||
| 621 | list->qlen = 0; | 619 | list->qlen = 0; |
| 622 | } | 620 | } |
| 623 | 621 | ||
| 622 | static inline void skb_queue_head_init_class(struct sk_buff_head *list, | ||
| 623 | struct lock_class_key *class) | ||
| 624 | { | ||
| 625 | skb_queue_head_init(list); | ||
| 626 | lockdep_set_class(&list->lock, class); | ||
| 627 | } | ||
| 628 | |||
| 624 | /* | 629 | /* |
| 625 | * Insert an sk_buff at the start of a list. | 630 | * Insert an sk_buff at the start of a list. |
| 626 | * | 631 | * |
