X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fnet%2Fhns3%2Fhns3_tm.h;h=83e9cc8ba9ef44f3749e8355b4ea81a2c9347c36;hb=fc18d1b4b85f9dcda468d4a424b668d0d8724382;hp=d8de3e49ed2bb9364fdaa2ba61a64316faea17cf;hpb=c09c7847d8928258c97621cd4b56433a9019521c;p=dpdk.git diff --git a/drivers/net/hns3/hns3_tm.h b/drivers/net/hns3/hns3_tm.h index d8de3e49ed..83e9cc8ba9 100644 --- a/drivers/net/hns3/hns3_tm.h +++ b/drivers/net/hns3/hns3_tm.h @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: BSD-3-Clause - * Copyright(c) 2020-2020 Hisilicon Limited. + * Copyright(c) 2020-2021 HiSilicon Limited. */ #ifndef _HNS3_TM_H_ @@ -9,6 +9,18 @@ #include #include +struct hns3_port_limit_rate_cmd { + uint32_t speed; /* Unit Mbps */ + uint32_t rsvd[5]; +}; + +struct hns3_tc_limit_rate_cmd { + uint32_t speed; /* Unit Mbps */ + uint8_t tc_id; + uint8_t rsvd[3]; + uint32_t rsvd1[4]; +}; + enum hns3_tm_node_type { HNS3_TM_NODE_TYPE_PORT, HNS3_TM_NODE_TYPE_TC,