Ivan Ilchenko 17b0d7b367 net/sfc: fix reading adapter state without locking
Update MAC stats function reads adapter state with MAC stats locking
but without adapter locking. Add adapter locking before calling this
function and remove MAC stats locking since there's no point to have
it together with adapter locking. The second place MAC stats locking
is used is MAC stats reset function. It's called with adapter being
already locked so there's no point to use MAC stats locking anymore.

Fixes: 1caab2f1e68 ("net/sfc: add basic statistics")
Cc: stable@dpdk.org

Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
2021-07-23 23:04:24 +02:00
..
2021-05-12 00:44:06 +02:00
2021-05-11 15:17:55 +02:00
2021-07-07 16:41:53 +02:00
2021-07-13 11:04:55 +02:00
2021-07-23 17:44:58 +02:00
2021-05-12 14:21:27 +02:00
2021-05-11 15:17:55 +02:00
2021-07-02 19:03:03 +02:00
2021-07-07 16:41:53 +02:00
2021-07-21 07:56:13 +02:00