diff mbox series

[RFC,3/7] net: sched: Add members to qdisc_skb_cb

Message ID 20231008052101.144422-4-akihiko.odaki@daynix.com (mailing list archive)
State Superseded
Delegated to: Netdev Maintainers
Headers show
Series tun: Introduce virtio-net hashing feature | expand

Checks

Context Check Description
netdev/series_format success Posting correctly formatted
netdev/tree_selection success Guessed tree name to be net-next, async
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 2762 this patch: 2762
netdev/cc_maintainers warning 1 maintainers not CCed: edumazet@google.com
netdev/build_clang success Errors and warnings before: 1513 this patch: 1513
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 2870 this patch: 2870
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 20 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Akihiko Odaki Oct. 8, 2023, 5:20 a.m. UTC
The new members will be used to deliver virtio-net hash information by
tun. The other members are also reordered so that the overall size will
not change.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
 include/net/sch_generic.h | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h
index f232512505f8..9dfdc63859c7 100644
--- a/include/net/sch_generic.h
+++ b/include/net/sch_generic.h
@@ -430,13 +430,15 @@  struct tcf_proto {
 };
 
 struct qdisc_skb_cb {
-	struct {
-		unsigned int		pkt_len;
-		u16			slave_dev_queue_mapping;
-		u16			tc_classid;
-	};
 #define QDISC_CB_PRIV_LEN 20
 	unsigned char		data[QDISC_CB_PRIV_LEN];
+	unsigned int		pkt_len;
+	u16			slave_dev_queue_mapping;
+	union {
+		u16		tc_classid;
+		u16		tun_vnet_hash_report;
+	};
+	u32			tun_vnet_hash_value;
 };
 
 typedef void tcf_chain_head_change_t(struct tcf_proto *tp_head, void *priv);