X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fhns3%2Fhns3_dcb.h;h=82484347d5a2884ea78808c69d9ce06fec5faced;hb=27890a34ca39762e1229bf18dc133e9eabe53b62;hp=7ab90933f339e73a01730d9823a3bcbbb3e7cafe;hpb=d55f3d9c1a463098142c89e4dcf4d2291833b1c0;p=dpdk.git diff --git a/drivers/net/hns3/hns3_dcb.h b/drivers/net/hns3/hns3_dcb.h index 7ab90933f3..82484347d5 100644 --- a/drivers/net/hns3/hns3_dcb.h +++ b/drivers/net/hns3/hns3_dcb.h @@ -5,6 +5,10 @@ #ifndef _HNS3_DCB_H_ #define _HNS3_DCB_H_ +#include + +#include "hns3_cmd.h" + #define HNS3_ETHER_MAX_RATE 100000 /* MAC Pause */ @@ -205,5 +209,8 @@ int hns3_queue_to_tc_mapping(struct hns3_hw *hw, uint16_t nb_rx_q, int hns3_dcb_cfg_update(struct hns3_adapter *hns); int hns3_dcb_port_shaper_cfg(struct hns3_hw *hw); +int hns3_pg_shaper_rate_cfg(struct hns3_hw *hw, uint8_t pg_id, uint32_t rate); +int hns3_pri_shaper_rate_cfg(struct hns3_hw *hw, uint8_t tc_no, uint32_t rate); +uint8_t hns3_txq_mapped_tc_get(struct hns3_hw *hw, uint16_t txq_no); #endif /* _HNS3_DCB_H_ */