diff options
Diffstat (limited to 'sys/dev/ice/virtchnl.h')
-rw-r--r-- | sys/dev/ice/virtchnl.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sys/dev/ice/virtchnl.h b/sys/dev/ice/virtchnl.h index d7a1d3f254bf..8af63296560e 100644 --- a/sys/dev/ice/virtchnl.h +++ b/sys/dev/ice/virtchnl.h @@ -2042,6 +2042,34 @@ struct virtchnl_quanta_cfg { VIRTCHNL_CHECK_STRUCT_LEN(12, virtchnl_quanta_cfg); +/* + * VIRTCHNL_OP_HQOS_READ_TREE + * VIRTCHNL_OP_HQOS_ELEM_ADD + * VIRTCHNL_OP_HQOS_ELEM_DEL + * VIRTCHNL_OP_HQOS_ELEM_BW_SET + * List with tc and queus HW QoS values + */ +struct virtchnl_hqos_cfg { +#define VIRTCHNL_HQOS_ELEM_TYPE_NODE 0 +#define VIRTCHNL_HQOS_ELEM_TYPE_LEAF 1 + u8 node_type; + u8 pad[7]; + u32 teid; + u32 parent_teid; + u64 tx_max; + u64 tx_share; + u32 tx_priority; + u32 tx_weight; +}; +VIRTCHNL_CHECK_STRUCT_LEN(40, virtchnl_hqos_cfg); + +struct virtchnl_hqos_cfg_list { + u16 num_elem; + u8 pad[6]; + struct virtchnl_hqos_cfg cfg[1]; +}; +VIRTCHNL_CHECK_STRUCT_LEN(48, virtchnl_hqos_cfg_list); + /* Since VF messages are limited by u16 size, precalculate the maximum possible * values of nested elements in virtchnl structures that virtual channel can * possibly handle in a single message. |