doc: remove references to the old build system
[dpdk.git] / drivers / net / hns3 / hns3_stats.h
index 12842cd..de5c40d 100644 (file)
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2018-2019 Hisilicon Limited.
+ * Copyright(c) 2018-2021 HiSilicon Limited.
  */
 
 #ifndef _HNS3_STATS_H_
@@ -110,6 +110,11 @@ struct hns3_mac_stats {
        uint64_t mac_rx_ctrl_pkt_num;
 };
 
+struct hns3_rx_missed_stats {
+       uint64_t rpu_rx_drop_cnt;
+       uint64_t ssu_rx_drop_cnt;
+};
+
 /* store statistics names and its offset in stats structure */
 struct hns3_xstats_name_offset {
        char name[RTE_ETH_XSTATS_NAME_SIZE];
@@ -135,6 +140,15 @@ struct hns3_reset_stats;
 #define HNS3_TXQ_DFX_STATS_FIELD_OFFSET(f) \
        (offsetof(struct hns3_tx_dfx_stats, f))
 
+#define HNS3_RXQ_BASIC_STATS_FIELD_OFFSET(f) \
+       (offsetof(struct hns3_rx_basic_stats, f))
+
+#define HNS3_TXQ_BASIC_STATS_FIELD_OFFSET(f) \
+       (offsetof(struct hns3_tx_basic_stats, f))
+
+#define HNS3_IMISSED_STATS_FIELD_OFFSET(f) \
+       (offsetof(struct hns3_rx_missed_stats, f))
+
 int hns3_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *rte_stats);
 int hns3_dev_xstats_get(struct rte_eth_dev *dev, struct rte_eth_xstat *xstats,
                        unsigned int n);
@@ -143,16 +157,16 @@ int hns3_dev_xstats_get_names(struct rte_eth_dev *dev,
                              struct rte_eth_xstat_name *xstats_names,
                              __rte_unused unsigned int size);
 int hns3_dev_xstats_get_by_id(struct rte_eth_dev *dev,
-                             __rte_unused const uint64_t *ids,
-                             __rte_unused uint64_t *values,
+                             const uint64_t *ids,
+                             uint64_t *values,
                              uint32_t size);
 int hns3_dev_xstats_get_names_by_id(struct rte_eth_dev *dev,
                                    struct rte_eth_xstat_name *xstats_names,
                                    const uint64_t *ids,
                                    uint32_t size);
 int hns3_stats_reset(struct rte_eth_dev *dev);
-void hns3_error_int_stats_add(struct hns3_adapter *hns, const char *err);
 int hns3_tqp_stats_init(struct hns3_hw *hw);
 void hns3_tqp_stats_uninit(struct hns3_hw *hw);
+int hns3_update_imissed_stats(struct hns3_hw *hw, bool is_clear);
 
 #endif /* _HNS3_STATS_H_ */