From patchwork Thu Jul 7 18:31:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vikas Gupta X-Patchwork-Id: 12910068 X-Patchwork-Delegate: dsahern@gmail.com 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 25052CCA481 for ; Thu, 7 Jul 2022 18:34:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236569AbiGGSeX (ORCPT ); Thu, 7 Jul 2022 14:34:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236602AbiGGSeB (ORCPT ); Thu, 7 Jul 2022 14:34:01 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A35BA6D554 for ; Thu, 7 Jul 2022 11:31:44 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id d10so7296286pfd.9 for ; Thu, 07 Jul 2022 11:31:44 -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=bdWhUvZsEHMlEHRdhzlfauXiaooZJYX0hfg30tAVuic=; b=Z3F8Gh+6ICnSc22SZXo90kd+eQ7hNvV6dPJXRKYt7jLWkIZkaNFGCcVgRcYZzlnKpy 4AAX/wpMSuvGP05ts9k0j+yoyGt7EtnQT7Rbrau7kT8OOFE48mL72EgvZUaJLQ1q8FBC lrfRSnSo0lcR2a7c8qSjmcT3b+5/iZOZHdRoU= 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=bdWhUvZsEHMlEHRdhzlfauXiaooZJYX0hfg30tAVuic=; b=3gWYrHoqBbRwIqk2xx5LOmwIk01IitCKrTao+R4Uj2KI02jZIORO5dTMcgAuajmzkO 4NDO6GdF6UsUfayqTS2O7D3WaGJXKi7c33M2knr1gJ6vj5owu5onmDAQrrmxb5ui5tGQ SgEWvI/fmY+xsDO030cv/Pah78elng985soVi9jzVKpzXuK/l+FZMt386AUnW32eE0Bw Do0EHWQcX2gHKmAxiq7XEc1ccZ12Y6+sqQrWd3kELA7AdENM/DSSml0v+7UYroU0qjeG hq7ThCluoAEOWEwg15qRyoGigyXpk/snCKrDbbl1K0gthrvFBYx5q2zZlR1xW4NYPnag NdKg== X-Gm-Message-State: AJIora975Y+W4v5zfe9BM3bU3x9S9CqyUwZ1MeA01AiqA2jipUM4wq5c is/QCX6SxduvH0hbpykwEtJ/RA== X-Google-Smtp-Source: AGRyM1u9aO7Dv1f9iC+Nw2bulLwdZmrnaVnuopt32G17yY2G8dMRELtpNRsQk5gDYwSd+qP0YbfH8A== X-Received: by 2002:a17:90b:384f:b0:1ef:e95d:de66 with SMTP id nl15-20020a17090b384f00b001efe95dde66mr153917pjb.174.1657218704028; Thu, 07 Jul 2022 11:31:44 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 11:31:43 -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 3/3] devlink : update man page for new commands Date: Fri, 8 Jul 2022 00:01:16 +0530 Message-Id: <20220707183116.29422-4-vikas.gupta@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220707183116.29422-1-vikas.gupta@broadcom.com> References: <20220628164447.45202-1-vikas.gupta@broadcom.com> <20220707183116.29422-1-vikas.gupta@broadcom.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: dsahern@gmail.com Update the man page for newly added selftests commands. Examples: devlink dev selftests run pci/0000:03:00.0 test flash devlink dev selftests show pci/0000:03:00.0 Signed-off-by: Vikas Gupta Reviewed-by: Michael Chan Reviewed-by: Andy Gospodarek --- man/man8/devlink-dev.8 | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/man/man8/devlink-dev.8 b/man/man8/devlink-dev.8 index 6906e509..057551a8 100644 --- a/man/man8/devlink-dev.8 +++ b/man/man8/devlink-dev.8 @@ -85,6 +85,16 @@ devlink-dev \- devlink device configuration .I ID ] +.ti -8 +.B devlink dev selftests show +.I DEV + +.ti -8 +.B devlink dev selftests run +.I DEV +.B test +.I TESTNAME + .SH "DESCRIPTION" .SS devlink dev show - display devlink device attributes @@ -249,6 +259,32 @@ should match the component names from .B "devlink dev info" and may be driver-dependent. +.SS devlink dev selftests show - shows supported selftests on devlink device. + +.PP +.I "DEV" +- specifies the devlink device. + +.SS devlink dev selftests run - runs selftests on devlink device. + +.PP +.I "DEV" +- specifies the devlink device to execute selftests. + +.B test +{ +.BI " TESTNAME " +| +.B " all " +} +- The value of +.I TESTNAME +should match the test names from +.B "devlink dev selftests show". +OR Pass option +.B "all" +to execute all the selftests on the devlink device. + .SH "EXAMPLES" .PP devlink dev show @@ -296,6 +332,16 @@ Flashing 100% .br Flashing done .RE +.PP +devlink dev selftests show pci/0000:01:00.0 +.RS 4 +Shows the supported selftests by the devlink device. +.RE +.PP +devlink dev selftests run pci/0000:01:00.0 test flash +.RS 4 +Perform a flash test on the devlink device. +.RE .SH SEE ALSO .BR devlink (8),