0001
0002
0003
0004 #ifndef __HCLGE_COMM_TQP_STATS_H
0005 #define __HCLGE_COMM_TQP_STATS_H
0006 #include <linux/types.h>
0007 #include <linux/etherdevice.h>
0008 #include "hnae3.h"
0009
0010
0011 #define HCLGE_COMM_QUEUE_PAIR_SIZE 2
0012
0013
0014 struct hclge_comm_tqp_stats {
0015
0016 u64 rcb_tx_ring_pktnum_rcd;
0017
0018 u64 rcb_rx_ring_pktnum_rcd;
0019 };
0020
0021 struct hclge_comm_tqp {
0022
0023
0024
0025 struct device *dev;
0026 struct hnae3_queue q;
0027 struct hclge_comm_tqp_stats tqp_stats;
0028 u16 index;
0029
0030 bool alloced;
0031 };
0032
0033 u64 *hclge_comm_tqps_get_stats(struct hnae3_handle *handle, u64 *data);
0034 int hclge_comm_tqps_get_sset_count(struct hnae3_handle *handle);
0035 u8 *hclge_comm_tqps_get_strings(struct hnae3_handle *handle, u8 *data);
0036 void hclge_comm_reset_tqp_stats(struct hnae3_handle *handle);
0037 int hclge_comm_tqps_update_stats(struct hnae3_handle *handle,
0038 struct hclge_comm_hw *hw);
0039 #endif