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.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 1fbab2ae613c..bb1981fd60f3 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1969,7 +1969,7 @@ static inline void skb_set_queue_mapping(struct sk_buff *skb, u16 queue_mapping)
1969 skb->queue_mapping = queue_mapping; 1969 skb->queue_mapping = queue_mapping;
1970} 1970}
1971 1971
1972static inline u16 skb_get_queue_mapping(struct sk_buff *skb) 1972static inline u16 skb_get_queue_mapping(const struct sk_buff *skb)
1973{ 1973{
1974 return skb->queue_mapping; 1974 return skb->queue_mapping;
1975} 1975}
@@ -1984,16 +1984,19 @@ static inline void skb_record_rx_queue(struct sk_buff *skb, u16 rx_queue)
1984 skb->queue_mapping = rx_queue + 1; 1984 skb->queue_mapping = rx_queue + 1;
1985} 1985}
1986 1986
1987static inline u16 skb_get_rx_queue(struct sk_buff *skb) 1987static inline u16 skb_get_rx_queue(const struct sk_buff *skb)
1988{ 1988{
1989 return skb->queue_mapping - 1; 1989 return skb->queue_mapping - 1;
1990} 1990}
1991 1991
1992static inline bool skb_rx_queue_recorded(struct sk_buff *skb) 1992static inline bool skb_rx_queue_recorded(const struct sk_buff *skb)
1993{ 1993{
1994 return (skb->queue_mapping != 0); 1994 return (skb->queue_mapping != 0);
1995} 1995}
1996 1996
1997extern u16 skb_tx_hash(const struct net_device *dev,
1998 const struct sk_buff *skb);
1999
1997#ifdef CONFIG_XFRM 2000#ifdef CONFIG_XFRM
1998static inline struct sec_path *skb_sec_path(struct sk_buff *skb) 2001static inline struct sec_path *skb_sec_path(struct sk_buff *skb)
1999{ 2002{