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 |
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);
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(-)