LinuxKPI: skbuff: add skb_get_hash()

Add a dummy implementation of skb_get_hash() until we'll hit and
implement it.  It'll help to keep an upcoming wireless driver to
compile.

MFC after:	10 days
This commit is contained in:
Bjoern A. Zeeb 2023-05-20 00:47:05 +00:00
parent 047298203f
commit 369264acf7

View file

@ -1046,6 +1046,14 @@ napi_consume_skb(struct sk_buff *skb, int budget)
SKB_TODO();
}
static inline uint32_t
skb_get_hash(struct sk_buff *skb)
{
SKB_TRACE(skb);
SKB_TODO();
return (0);
}
#define SKB_WITH_OVERHEAD(_s) \
(_s) - ALIGN(sizeof(struct skb_shared_info), CACHE_LINE_SIZE)