mbox series

[net-next,v2,0/3] add framework for selftests in devlink

Message ID 20220707182950.29348-1-vikas.gupta@broadcom.com (mailing list archive)
Headers show
Series add framework for selftests in devlink | expand

Message

Vikas Gupta July 7, 2022, 6:29 p.m. UTC
Hi,
  This patchset adds support for selftests in the devlink framework.
  It adds a callback .selftests_show and .selftests_run in devlink_ops. 
  User can provide test(s) suite as a testmask and subsequently it is passed 
  to the driver which can opt for running particular tests based on
  its capabilities.

  Patchset adds a flash based test for the bnxt_en driver.

  Suggested commands at user level would be as below:

changes from:
v1->v2:
  Addressed the changes requested by kuba@kernel.org in patch v1.
  Fixed the style issues. 


Thanks,
Vikas


Vikas Gupta (3):
  devlink: introduce framework for selftests
  bnxt_en: refactor NVM APIs
  bnxt_en: implement callbacks for devlink selftests

 .../networking/devlink/devlink-selftests.rst  |  34 +++++
 .../net/ethernet/broadcom/bnxt/bnxt_devlink.c |  61 ++++++++
 .../net/ethernet/broadcom/bnxt/bnxt_ethtool.c |  24 +--
 .../net/ethernet/broadcom/bnxt/bnxt_ethtool.h |  12 ++
 include/net/devlink.h                         |  30 ++++
 include/uapi/linux/devlink.h                  |  26 ++++
 net/core/devlink.c                            | 144 ++++++++++++++++++
 7 files changed, 319 insertions(+), 12 deletions(-)
 create mode 100644 Documentation/networking/devlink/devlink-selftests.rst