net: hns3: mark unexcuted loopback test result as UNEXECUTED
authorJian Shen <shenjian15@huawei.com>
Mon, 25 Mar 2024 12:43:11 +0000 (20:43 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 26 Mar 2024 14:32:39 +0000 (15:32 +0100)
commit5bd088d6c21a45ee70e6116879310e54174d75eb
tree626299632bfdbfe6d06ff5bbe08bd1596d1e1983
parent93305b77ffcb042f1538ecc383505e87d95aa05a
net: hns3: mark unexcuted loopback test result as UNEXECUTED

Currently, loopback test may be skipped when resetting, but the test
result will still show as 'PASS', because the driver doesn't set
ETH_TEST_FL_FAILED flag. Fix it by setting the flag and
initializating the value to UNEXECUTED.

Fixes: 4c8dab1c709c ("net: hns3: reconstruct function hns3_self_test")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c