Skip to content

devlink: add support to run selftest

Vikas Gupta netdev 6 versions – Applied

Status from this message: This patch was applied to iproute2/iproute2-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest1 patch 1 replyApplied
  2. v52 patches 2 repliesSuperseded
  3. v43 patches 2 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v33 patches0 repliesSuperseded
v23 patches1 replySuperseded
v12 patches1 replySuperseded

Changes in v6 from the cover letter

Remove header file(devlink.h) patch in v5 as its already updated. Resolve conflicts in devlink.c due to rebase with iproute2-next but no change in implementation/functionality.

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/1devlink: add support for running selftestsbash-completion/devlink devlink/devlink.c man/man8/devlink-dev.8+403 -11 reply

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchJiri Pirko
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH iproute2-next v6 0/1] devlink: add support to run selftest

Hi,
This patchset adds support in devlink to run selftests. A related patchset for kernel has been merged.

Below are the few examples for the commands implemented in the patchset.

Examples:

$ devlink dev selftests run pci/0000:03:00.0 id flash
pci/0000:03:00.0:
    flash:
      status passed
$ devlink dev selftests show pci/0000:03:00.0
pci/0000:03:00.0
      flash

changes from:
v5->v6
Remove header file(devlink.h) patch in v5 as its already updated. Resolve conflicts in devlink.c due to rebase with iproute2-next but no change in implementation/functionality.

v4->v5
Addressed the comments by [email protected]. Change in json output for seltests show command.

v3->v4
Updated with the UAPI kernel header and hence related implementation for selftests impacted due to reorganization of enums/attributes.

v2->v3
a) Update the implementation of commands according to the latest patch set of kernel devlink patch.
b) Added bash-completion.

v1->v2
a) Changes required to implement command due to changes in kernel patch (under review).
b) Added commands descriptions in devlink-dev man page.

Thanks,
Vikas

Vikas Gupta (1):
devlink: add support for running selftests

 bash-completion/devlink |  30 +++-
 devlink/devlink.c       | 328 ++++++++++++++++++++++++++++++++++++++++
 man/man8/devlink-dev.8  |  46 ++++++
 3 files changed, 403 insertions(+), 1 deletion(-)
Signature · 1 line
2.31.1