aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/skbuff.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 369f60a4797d..ecb0edef0b39 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1769,6 +1769,15 @@ static inline void skb_set_queue_mapping(struct sk_buff *skb, u16 queue_mapping)
1769#endif 1769#endif
1770} 1770}
1771 1771
1772static inline u16 skb_get_queue_mapping(struct sk_buff *skb)
1773{
1774#ifdef CONFIG_NETDEVICES_MULTIQUEUE
1775 return skb->queue_mapping;
1776#else
1777 return 0;
1778#endif
1779}
1780
1772static inline void skb_copy_queue_mapping(struct sk_buff *to, const struct sk_buff *from) 1781static inline void skb_copy_queue_mapping(struct sk_buff *to, const struct sk_buff *from)
1773{ 1782{
1774#ifdef CONFIG_NETDEVICES_MULTIQUEUE 1783#ifdef CONFIG_NETDEVICES_MULTIQUEUE