net/hns3: fix statistics locking
authorHuisong Li <lihuisong@huawei.com>
Fri, 24 Jun 2022 08:59:48 +0000 (16:59 +0800)
committerAndrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Fri, 24 Jun 2022 12:27:37 +0000 (14:27 +0200)
commit7b2966626197d210b08da4c04f09c1f9a2d71642
tree72c63c79f9906212649d5d675de0f58e8afb6656
parent17d0a4b239e4416683f6e840b011d4359fb3982d
net/hns3: fix statistics locking

The stats_lock is used to protect statistics update in stats APIs and
periodic task, but current code only protect queue related statistics.

Fixes: a65342d9d5d2 ("net/hns3: fix MAC and queues HW statistics overflow")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Dongdong Liu <liudongdong3@huawei.com>
drivers/net/hns3/hns3_stats.c