net/hns3: fix mailbox communication with HW
[dpdk.git] / drivers / net / hns3 / hns3_stats.h
index 88ac4cd..d1230f9 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_
@@ -161,8 +161,8 @@ int hns3_dev_xstats_get_by_id(struct rte_eth_dev *dev,
                              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,
+                                   struct rte_eth_xstat_name *xstats_names,
                                    uint32_t size);
 int hns3_stats_reset(struct rte_eth_dev *dev);
 int hns3_tqp_stats_init(struct hns3_hw *hw);