X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fnet%2Fhns3%2Fhns3_dcb.h;h=e06ec177c8a23d92e9614a27511abaaa9108b98a;hb=7fe741821337f3cbeecac768b8ef3a16bf21c938;hp=39ff33267573d2c980fa70d026f1a279d361f529;hpb=5d78d42b31203594c6140a4bf0409f854bafe517;p=dpdk.git diff --git a/drivers/net/hns3/hns3_dcb.h b/drivers/net/hns3/hns3_dcb.h index 39ff332675..e06ec177c8 100644 --- a/drivers/net/hns3/hns3_dcb.h +++ b/drivers/net/hns3/hns3_dcb.h @@ -1,10 +1,14 @@ /* SPDX-License-Identifier: BSD-3-Clause - * Copyright(c) 2018-2019 Hisilicon Limited. + * Copyright(c) 2018-2021 HiSilicon Limited. */ #ifndef _HNS3_DCB_H_ #define _HNS3_DCB_H_ +#include + +#include "hns3_cmd.h" + #define HNS3_ETHER_MAX_RATE 100000 /* MAC Pause */ @@ -203,6 +207,8 @@ int hns3_dcb_pfc_enable(struct rte_eth_dev *dev, int hns3_queue_to_tc_mapping(struct hns3_hw *hw, uint16_t nb_rx_q, uint16_t nb_tx_q); -int hns3_dcb_cfg_update(struct hns3_adapter *hns); +int hns3_update_queue_map_configure(struct hns3_adapter *hns); +int hns3_port_shaper_update(struct hns3_hw *hw, uint32_t speed); +uint8_t hns3_txq_mapped_tc_get(struct hns3_hw *hw, uint16_t txq_no); #endif /* _HNS3_DCB_H_ */