From patchwork Mon Jul 18 06:22:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vikas Gupta X-Patchwork-Id: 12920753 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 B60FEC43334 for ; Mon, 18 Jul 2022 06:23:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233276AbiGRGXA (ORCPT ); Mon, 18 Jul 2022 02:23:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233518AbiGRGWn (ORCPT ); Mon, 18 Jul 2022 02:22:43 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A6F2140C4 for ; Sun, 17 Jul 2022 23:22:39 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id b9so9765524pfp.10 for ; Sun, 17 Jul 2022 23:22:39 -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=DsVzl3CHUF9pxcxGYkFBU8RUDuISyD/yipNpV2Wa0VE=; b=XnpauscQv51N0BXkwGQrIg00F5t1NxMAYw2O66D27jhXBsYZ+2yMAp7yQbbbdslq2t WS7M2sYYZJ2otCq4dnuu951/WV8lCcI6eJ7CZpdxZeUGQ2jGOrl5M8lhZFuSeNcSdAwf tHO+7UvTjL/sV6MiAOW2y30WdoIBC4u6QNsVI= 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=DsVzl3CHUF9pxcxGYkFBU8RUDuISyD/yipNpV2Wa0VE=; b=T+lEhWDu5jdk+Fu+7nplJ7itY7gMwd4hgGdfzThfKxTRFKpKddXs0pd2FBrBZFPeQT UCECjG3xb+9RbHFNI8l6taa1ctWdk8KVgecZmE284gyHcUXHiWh5TWYxJNfCWmpW64vN 312rUrxJOYiazo66x03+HgNWEEXVd5XFpmhR6L6GP9TJuLBoaUHM7DMutO3Q+EdIvKcc qjVEvD7YVZiOB3Uv/nAtYOwSz6TgHTMVJgDRwB6Z1UN7E89O0xzdHmOXrtEp/2sW7p79 lbfUQnPs+vQopj3UswDV0DZdEzJvFz1V0yUtuMscPdBIvw/jYWMJXwMpka8NgdidU0Og XeNg== X-Gm-Message-State: AJIora95PxzOZ+/yO0rlCEdZ6UJxqzrfBJzXCs4iVhli/nF0aqWiq2/L qWNfIQAY7mK3S0RdREre96Xk3g== X-Google-Smtp-Source: AGRyM1ucSrMhWoJE6nOgOVC3/AqksXsxdsA95TlksIUGDOepb+3eH+OpVmJ6WB1wXAZ6FMdVgWCY8w== X-Received: by 2002:a05:6a00:2906:b0:52a:bc7f:f801 with SMTP id cg6-20020a056a00290600b0052abc7ff801mr27366974pfb.49.1658125358938; Sun, 17 Jul 2022 23:22:38 -0700 (PDT) Received: from rahul_yocto_ubuntu18.ibn.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id i8-20020a17090a058800b001f1a192476csm3844307pji.15.2022.07.17.23.22.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jul 2022 23:22:38 -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 v3 0/3] devlink: add support to run selftest Date: Mon, 18 Jul 2022 11:52:26 +0530 Message-Id: <20220718062229.22531-1-vikas.gupta@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220707183116.29422-1-vikas.gupta@broadcom.com> References: <20220707183116.29422-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 pci/0000:03:00.0 flash failed $ devlink dev selftests show pci/0000:03:00.0 pci/0000:03:00.0 flash changes from: 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 (3): devlink: update the devlink.h devlink: add support for running selftests devlink : update man page and bash-completion for new commands bash-completion/devlink | 21 ++- devlink/devlink.c | 292 +++++++++++++++++++++++++++++++++++ include/uapi/linux/devlink.h | 29 ++++ man/man8/devlink-dev.8 | 47 ++++++ 4 files changed, 388 insertions(+), 1 deletion(-)