Hi Jakub, On Tue, Jul 19, 2022 at 9:03 AM Jakub Kicinski <kuba@xxxxxxxxxx> wrote: > > On Mon, 18 Jul 2022 11:50:30 +0530 Vikas Gupta wrote: > > + for (i = 1; i < DEVLINK_SELFTEST_ATTR_MAX + 1; i++) { > > + u8 res; > > + > > + if (nla_get_flag(tb[i])) { > > + res = devlink->ops->selftest_run(devlink, i, > > Shouldn't we selftest_check() first to make sure the driver supports > given test? Yes, I`ll add selftest_check() here rather than letting the driver return SKIP. Thanks, Vikas > > > + [DEVLINK_ATTR_SELFTESTS_INFO] = { .type = NLA_NESTED }, > > ... = NLA_POLICY_NESTED(devlink_selftest_nl_policy),
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature