[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210105122416.16492-2-yuri.benditovich@daynix.com>
Date: Tue, 5 Jan 2021 14:24:10 +0200
From: Yuri Benditovich <yuri.benditovich@...nix.com>
To: unlisted-recipients:; (no To-header on input)
Cc: yan@...nix.com, linux-kernel@...r.kernel.org
Subject: [RFC PATCH 1/7] skbuff: define field for hash report type
Used by virtio-net receive side scaling
Signed-off-by: Yuri Benditovich <yuri.benditovich@...nix.com>
---
include/linux/skbuff.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 416bf95cd5f2..36cf40ec0259 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -510,7 +510,7 @@ int skb_zerocopy_iter_stream(struct sock *sk, struct sk_buff *skb,
* the end of the header data, ie. at skb->end.
*/
struct skb_shared_info {
- __u8 __unused;
+ __u8 hash_report_type; /* virtio-net rss */
__u8 meta_len;
__u8 nr_frags;
__u8 tx_flags;
@@ -1430,6 +1430,11 @@ static inline struct skb_shared_hwtstamps *skb_hwtstamps(struct sk_buff *skb)
return &skb_shinfo(skb)->hwtstamps;
}
+static inline __u8 *skb_hash_report_type(struct sk_buff *skb)
+{
+ return &skb_shinfo(skb)->hash_report_type;
+}
+
static inline struct ubuf_info *skb_zcopy(struct sk_buff *skb)
{
bool is_zcopy = skb && skb_shinfo(skb)->tx_flags & SKBTX_DEV_ZEROCOPY;
--
2.17.1
Powered by blists - more mailing lists