From patchwork Thu Jul 7 18:31:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vikas Gupta X-Patchwork-Id: 12910065 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF2A6C433EF for ; Thu, 7 Jul 2022 18:34:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236583AbiGGSeT (ORCPT ); Thu, 7 Jul 2022 14:34:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236579AbiGGSeA (ORCPT ); Thu, 7 Jul 2022 14:34:00 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DAD56B277 for ; Thu, 7 Jul 2022 11:31:34 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id i190so7432563pge.7 for ; Thu, 07 Jul 2022 11:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kNQOIAw4PimSa6Kpc7FxCx4sbD+O3J/ytKpzjEl3iSk=; b=ZwdHJtJTPide47Rjl5kbeRbldkOs2SuksWKsQNolBZsAdh1TRFIsIFLoZlr+dRng84 MCEDiw8C4LWtzydDNpzKL16OIZh7eg7Wit3AyQsGmk4+YzTpU7VAjMmLm9IrJLjov2Cx bln6eCt5aZ+3XfTCocOUoEK660qI3jZM6becM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kNQOIAw4PimSa6Kpc7FxCx4sbD+O3J/ytKpzjEl3iSk=; b=eYPibvGDKld1SIDBiMOCea8770l2twNDdx5L02eK1L9sm46cKbdVIjlQvkRj/8dbXv p2Q5M6pCTwQDy0hisUSOd66U7QEOYzVmB7FS2e/XGqLs8J5jyRq13OOoO8wVxhmhtUoI zbWWc65Npf9y1OmseOFFi3RZWrYeffP8F2u72j5IcbeCYZY6o8R7VI/7tbt9POoCqbNh qNK8cS6nbxHW9i7NbwxKHZbjs4Yf1inoNTTD6MJo9vUhhUu/dtxrkV+LCHAkHe6eBi9T kvvgaOeg67HHmlokWk95IMAldZ70BN/G2R4DLqQjDKOnFyY26oLhgqKgiTkmxdX2a9R6 Bq6g== X-Gm-Message-State: AJIora86Xe86n+Rrq8Y2/saB3WLoKkSmSk7w7FcTFQrh6gBe/DgXxrO4 Y7DrBnChZrNyA8ASzfdq5N9N2w== X-Google-Smtp-Source: AGRyM1vtH19N7pJJNyIieqHlQhdLfkmb3yv4qV0LMu5ARNYO+Uqm+JmqU2nuM5G5Idy/ylWPQPoKaA== X-Received: by 2002:a17:90a:eacd:b0:1ef:84c2:418d with SMTP id ev13-20020a17090aeacd00b001ef84c2418dmr6625889pjb.101.1657218693700; Thu, 07 Jul 2022 11:31:33 -0700 (PDT) Received: from rahul_yocto_ubuntu18.ibn.broadcom.net ([192.19.252.250]) by smtp.gmail.com with ESMTPSA id u9-20020a170902e80900b0016a163d1cd5sm28631949plg.253.2022.07.07.11.31.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 11:31:33 -0700 (PDT) From: Vikas Gupta To: jiri@nvidia.com, dsahern@kernel.org, stephen@networkplumber.org Cc: kuba@kernel.org, netdev@vger.kernel.org, edumazet@google.com, michael.chan@broadcom.com, andrew.gospodarek@broadcom.com, Vikas Gupta Subject: [PATCH iproute2-next v2 0/3] devlink: add support to run selftests Date: Fri, 8 Jul 2022 00:01:13 +0530 Message-Id: <20220707183116.29422-1-vikas.gupta@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220628164447.45202-1-vikas.gupta@broadcom.com> References: <20220628164447.45202-1-vikas.gupta@broadcom.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: dsahern@gmail.com Hi, This patchset adds support in devlink to run selftests. A related patchset for kernel has been pushed for review. Below are the few examples for the commands. Examples: $ devlink dev selftests run pci/0000:03:00.0 test flash selftests results: flash failed $ devlink dev selftests show pci/0000:03:00.0 supported selftests: flash changes from: 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 (3): devlink: update the devlink.h devlink: add support for running selftests devlink : update man page for new commands devlink/devlink.c | 193 +++++++++++++++++++++++++++++++++++ include/uapi/linux/devlink.h | 26 +++++ man/man8/devlink-dev.8 | 46 +++++++++ 3 files changed, 265 insertions(+)