diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/skbuff.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 0e86b6007a0a..5992f65b4184 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -619,6 +619,13 @@ static inline void skb_queue_head_init(struct sk_buff_head *list) | |||
619 | list->qlen = 0; | 619 | list->qlen = 0; |
620 | } | 620 | } |
621 | 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 | |||
622 | /* | 629 | /* |
623 | * Insert an sk_buff at the start of a list. | 630 | * Insert an sk_buff at the start of a list. |
624 | * | 631 | * |