Huisong Li 3213d584b6 net/hns3: fix xstats with id and names
Currently, validity check for ids and values in the
hns3_dev_xstats_get_by_id API is incorrect, which will
cause a problem. Namely, if the ID range of the xstats
stats item does not include the basic stats item, the
app can not obtain the corresponding xstats statistics
in hns3_dev_xstats_get_by_id.

Similarly, the hns3_dev_xstats_get_names_by_id interface
also has a problem.

Although the input parameter verification code cannot be
executed due to the implementation of the ethdev framework
interface, the driver needs to ensure the correctness of
the input parameters.

Fixes: 8839c5e202f3 ("net/hns3: support device stats")
Cc: stable@dpdk.org

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
2021-01-19 03:30:13 +01:00
..
2020-11-13 19:43:26 +01:00
2020-11-03 23:35:07 +01:00
2020-11-20 21:10:05 +01:00
2020-11-03 23:35:07 +01:00
2021-01-08 16:03:04 +01:00
2021-01-08 16:03:04 +01:00
2020-11-03 23:35:07 +01:00
2020-11-03 23:35:07 +01:00
2020-11-03 23:35:07 +01:00
2020-10-16 19:48:19 +02:00
2020-09-21 18:05:38 +02:00
2020-10-16 19:48:19 +02:00
2021-01-14 16:42:25 +01:00
2020-10-08 19:58:10 +02:00
2021-01-14 16:42:25 +01:00