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.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 4725b953e00d..7deb7ad65914 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -712,6 +712,18 @@ static inline __u32 skb_get_hash(struct sk_buff *skb)
712 return skb->rxhash; 712 return skb->rxhash;
713} 713}
714 714
715static inline void skb_clear_hash(struct sk_buff *skb)
716{
717 skb->rxhash = 0;
718 skb->l4_rxhash = 0;
719}
720
721static inline void skb_clear_hash_if_not_l4(struct sk_buff *skb)
722{
723 if (!skb->l4_rxhash)
724 skb_clear_hash(skb);
725}
726
715#ifdef NET_SKBUFF_DATA_USES_OFFSET 727#ifdef NET_SKBUFF_DATA_USES_OFFSET
716static inline unsigned char *skb_end_pointer(const struct sk_buff *skb) 728static inline unsigned char *skb_end_pointer(const struct sk_buff *skb)
717{ 729{