From patchwork Tue Jun 28 16:44:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vikas Gupta X-Patchwork-Id: 12898572 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 9AB81C433EF for ; Tue, 28 Jun 2022 16:50:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233589AbiF1Qu4 (ORCPT ); Tue, 28 Jun 2022 12:50:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238760AbiF1Qrx (ORCPT ); Tue, 28 Jun 2022 12:47:53 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9565C5FA5 for ; Tue, 28 Jun 2022 09:44:58 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id m14so11587512plg.5 for ; Tue, 28 Jun 2022 09:44:58 -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; bh=w24gFDd6t9fJ/cXfFzQKhMkujtRoBl/sVF4IhaSPLbU=; b=HduuVqUqIL1IMksNck6ya0EZjBQQ/iW3qP3eT/zG7MNKTkpKNTw6DR2w5r/xjdowl4 WdHp3I528XdsrRIP3u5Jnk7KFlhmNQ3qqU/L2fyfeSIS93Bbujhai0DWcHI90ExjOVMR LFJNuJXVVR/UGAf8w/MhPK8271LJoX2M11vCY= 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; bh=w24gFDd6t9fJ/cXfFzQKhMkujtRoBl/sVF4IhaSPLbU=; b=M7vEfI4ItIDznsL13HUUW66kbB1Py8MZJznazwdHBYrz3eebZW/LeAp13b+I+ZW9ST e6W0ZK0O8qBGwR068GpjGfDm6IQpHgUQ039ofuUA5XQgXFdrY3073+7EJ7VP3+f/yTqR vy15bjzx5BEZMd+JMZxRvq5ACs3TpjLdE9ozQmsI6YBgkVC0opy7Yy5/cv6uyY0bU2Yf LJWAV0gLVg+7tVhX+njGxy1H/XMnBodqWc/m6sV8Kzm4He2hVPh/Zg0QAfTjziVNu8YX fHf1TwUpsF+2359if2GgIIksxbq3eXeZV5qMhldBD5YlOqhX8MAxcMgvauzhDA7jAu6e rqyA== X-Gm-Message-State: AJIora/QrKiqqADNlr1nDVxBr/bnjF4sgq1YQwxAQHWfNaIZR432m3ci 7kSlUXP8sS0D5pzly8LLPHM9Dg== X-Google-Smtp-Source: AGRyM1t3egWjHk6Jr+DPzP2zPkOQMIP9I9w6xVwoZtxP+VNAtfCzfXbFgESkLI4emFMtX0AuosbbuA== X-Received: by 2002:a17:902:bc43:b0:16b:82ff:e5b4 with SMTP id t3-20020a170902bc4300b0016b82ffe5b4mr5694235plz.5.1656434697916; Tue, 28 Jun 2022 09:44:57 -0700 (PDT) Received: from rahul_yocto_ubuntu18.ibn.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id cb14-20020a056a00430e00b0051bbe085f16sm9630866pfb.104.2022.06.28.09.44.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 09:44:57 -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 v1 0/2] devlink: add support to run selftests Date: Tue, 28 Jun 2022 22:14:45 +0530 Message-Id: <20220628164447.45202-1-vikas.gupta@broadcom.com> X-Mailer: git-send-email 2.17.1 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. $ devlink dev selftests run pci/0000:03:00.0 test flash results: flash test : failed $ devlink dev selftests show pci/0000:03:00.0 device suuports: flash test Thanks, Vikas Vikas Gupta (2): Update kernel header devlink: add support for running selftests devlink/devlink.c | 157 +++++++++++++++++++++++++++++++++++ include/uapi/linux/devlink.h | 24 ++++++ 2 files changed, 181 insertions(+)