bnxt_en: Fix reporting of test result in ethtool selftest
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Wed, 29 Mar 2023 01:30:19 +0000 (18:30 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 Mar 2023 04:48:16 +0000 (21:48 -0700)
commit83714dc3db0e4a088673601bc8099b079bc1a077
tree3f909c294acd0d6ca7943b92f1c00fe70e188072
parentc5cff16f461a4a434a9915a7be7ac9ced861a8a4
bnxt_en: Fix reporting of test result in ethtool selftest

When the selftest command fails, driver is not reporting the failure
by updating the "test->flags" when bnxt_close_nic() fails.

Fixes: eb51365846bc ("bnxt_en: Add basic ethtool -t selftest support.")
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c