]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-pf: Fix the device state on error
authorHariprasad Kelam <hkelam@marvell.com>
Wed, 30 Sep 2020 16:09:14 +0000 (21:39 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Sep 2020 22:07:19 +0000 (15:07 -0700)
commit7db575ccfccc08f5b62a31f2d1ebc9ecd4d98062
tree617330c5cc53ddefbb7a2b78814ce3345cf4c0f7
parent6b4e37b9f73989b84fe24e18e1a938bd3fdf1ddb
octeontx2-pf: Fix the device state on error

Currently in otx2_open on failure of nix_lf_start
transmit queues are not stopped which are already
started in link_event. Since the tx queues are not
stopped network stack still try's to send the packets
leading to driver crash while access the device resources.

Fixes: d674dc650 ("octeontx2-pf: Register and handle link notifications")
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c