Re: [PATCH net-next] cxgb4: fix check for running offline ethtool selftest
From: David Miller <davem@davemloft.net>
Date: 2020-08-03 22:34:18
From: David Miller <davem@davemloft.net>
Date: 2020-08-03 22:34:18
From: Rahul Lakkireddy <redacted> Date: Sat, 1 Aug 2020 02:20:52 +0530
The flag indicating the selftest to run is a bitmask. So, fix the
check. Also, the selftests will fail if adapter initialization has
not been completed yet. So, add appropriate check and bail sooner.
Fixes: 7235ffae3d2c ("cxgb4: add loopback ethtool self-test")
Signed-off-by: Rahul Lakkireddy <redacted>Applied.