| .. | .. |
|---|
| 117 | 117 | u32 rsvd1; |
|---|
| 118 | 118 | }; |
|---|
| 119 | 119 | |
|---|
| 120 | +#define HCLGE_PFC_DISABLE 0 |
|---|
| 121 | +#define HCLGE_PFC_TX_RX_DISABLE 0 |
|---|
| 122 | + |
|---|
| 120 | 123 | struct hclge_pfc_en_cmd { |
|---|
| 121 | 124 | u8 tx_rx_en_bitmap; |
|---|
| 122 | 125 | u8 pri_en_bitmap; |
|---|
| .. | .. |
|---|
| 164 | 167 | void hclge_tm_pfc_info_update(struct hclge_dev *hdev); |
|---|
| 165 | 168 | int hclge_tm_dwrr_cfg(struct hclge_dev *hdev); |
|---|
| 166 | 169 | int hclge_tm_init_hw(struct hclge_dev *hdev, bool init); |
|---|
| 170 | +int hclge_pfc_pause_en_cfg(struct hclge_dev *hdev, u8 tx_rx_bitmap, |
|---|
| 171 | + u8 pfc_bitmap); |
|---|
| 167 | 172 | int hclge_mac_pause_en_cfg(struct hclge_dev *hdev, bool tx, bool rx); |
|---|
| 168 | 173 | int hclge_pause_addr_cfg(struct hclge_dev *hdev, const u8 *mac_addr); |
|---|
| 169 | 174 | int hclge_pfc_rx_stats_get(struct hclge_dev *hdev, u64 *stats); |
|---|