net/atlantic: add FW mailbox guard mutex
authorPavel Belous <pavel.belous@aquantia.com>
Fri, 20 Sep 2019 16:22:07 +0000 (16:22 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 8 Oct 2019 10:14:31 +0000 (12:14 +0200)
commite9924638f5c967e119983f871959bc632d37d83d
tree25ddefddee3d0f8ba2a2db050064d20b25543a5d
parentc1339892ddfe74703fff1c2c126c68d9e7e17464
net/atlantic: add FW mailbox guard mutex

Driver uses the Firmware mailbox to read statistics and configure
some features.
This patch introduces a mutex to provide consistent access to the
FW mailbox to prevent potential data corruption.

Fixes: 86d36773bd42 ("net/atlantic: implement firmware operations")
Cc: stable@dpdk.org
Signed-off-by: Pavel Belous <pavel.belous@aquantia.com>
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
drivers/net/atlantic/atl_ethdev.c
drivers/net/atlantic/atl_types.h
drivers/net/atlantic/hw_atl/hw_atl_utils_fw2x.c