net/bnxt: add checks for firmware reset
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Wed, 13 Nov 2019 08:29:40 +0000 (13:59 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Nov 2019 16:36:05 +0000 (17:36 +0100)
commitaadae082ee46be8e6800a53a316eca558a31d103
tree3180025ba249ddea86b0ed4b88afa1bb789d7043
parent20ac796641f8e7e2693800c2531bcec8e1261611
net/bnxt: add checks for firmware reset

Driver should fail the eth_dev_ops callbacks and accessing
Tx and Rx queues when device is in reset or in error state.
Added missing checks for fw reset in few routines.

Fixes: be14720def9c ("net/bnxt: support FW reset")

Reviewed-by: Santoshkumar Karanappa Rastapur <santosh.rastapur@broadcom.com>
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c