]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
octeontx2-pf: Disable packet I/O for graceful exit
authorSubbaraya Sundeep <sbhatta@marvell.com>
Wed, 3 May 2023 07:09:43 +0000 (12:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 11:58:49 +0000 (13:58 +0200)
commite1877e57667fb20405929e09c800814119ba24e4
treeaa9bcc74b5faec24bbc01880e827980898e52291
parentcc7fd73a39983137eb2e23f92ea57c9cdb7673eb
octeontx2-pf: Disable packet I/O for graceful exit

[ Upstream commit c926252205c424c4842dbdbe02f8e3296f623204 ]

At the stage of enabling packet I/O in otx2_open, If mailbox
timeout occurs then interface ends up in down state where as
hardware packet I/O is enabled. Hence disable packet I/O also
before bailing out.

Fixes: 1ea0166da050 ("octeontx2-pf: Fix the device state on error")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: Sai Krishna <saikrishnag@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c