diff options
author | Rahul Lakkireddy <rahul.lakkireddy@chelsio.com> | 2020-07-31 23:50:52 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-04 01:32:52 +0300 |
commit | fd4ec07631b13438c148af973ecd461cf440ee2e (patch) | |
tree | 4e3675e3089731dcbdb855067b7b995de7e7d58e /samples | |
parent | 38bd9d9f6287ae7e39101e7e11a278daf4b56a68 (diff) | |
download | linux-fd4ec07631b13438c148af973ecd461cf440ee2e.tar.xz |
cxgb4: fix check for running offline ethtool selftest
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 <rahul.lakkireddy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions