net/qede: fix getting link details
authorRasesh Mody <rmody@marvell.com>
Fri, 2 Oct 2020 19:59:45 +0000 (12:59 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 8 Oct 2020 17:58:11 +0000 (19:58 +0200)
commiteffb1d0b9527815a7cd5422bce5defbc0884cea0
treeaa3cb6d58b6e82b83296c29c7c5310a2a0521966
parentd2d57605522d4a43be17e22e649e54033f6d8835
net/qede: fix getting link details

This patch fixes get current link details, without this change the link
details can be inaccurate if proper lock is not acquired.

Fixes: 739a5b2f2b49 ("net/qede/base: use passed ptt handler")
Cc: stable@dpdk.org
Reported-by: Ferruh Yigit <ferruh.yigit@intel.com>
Signed-off-by: Rasesh Mody <rmody@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
drivers/net/qede/qede_main.c