octeontx2-pf: Fix graceful exit during PFC configuration failure
authorSuman Ghosh <sumang@marvell.com>
Wed, 13 Dec 2023 18:10:44 +0000 (23:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jan 2024 12:42:30 +0000 (12:42 +0000)
commit1e5283b960194bf5cb7b9f581d9bcbdf2af58b7f
treee2bfe6dd4f60f3ebe9590c16f6a8eaaaf838349d
parentfd0f5c1a314c352aac1b45a464edcd4cd323e1b4
octeontx2-pf: Fix graceful exit during PFC configuration failure

[ Upstream commit 8c97ab5448f2096daba11edf8d18a44e1eb6f31d ]

During PFC configuration failure the code was not handling a graceful
exit. This patch fixes the same and add proper code for a graceful exit.

Fixes: 99c969a83d82 ("octeontx2-pf: Add egress PFC support")
Signed-off-by: Suman Ghosh <sumang@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_dcbnl.c