Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1573500imi; Sat, 23 Jul 2022 09:54:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uiZffb643RHguOJw6DhqswAXafW4WB94k34rolw+ljCuZ2fPcIbr+WQMZ8B+9s+P0Opity X-Received: by 2002:a17:90a:590e:b0:1f2:2184:6893 with SMTP id k14-20020a17090a590e00b001f221846893mr20921572pji.57.1658595258995; Sat, 23 Jul 2022 09:54:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658595258; cv=none; d=google.com; s=arc-20160816; b=Abf6SpunJ+cxtzF7hy3jUtXxqsxVECIuD91KRXOoymYYq+v4m2jD1Bec6y7WkoQvLU HbOSMXU4TNkVKX4JoJ1yt6gRnMu1uC4p2D3hK/NuiOfd0Lo/1H+16/IyFAuj8rR9Q5bm 1J795h3Yy4ULs7N2nmeRJ8lEzW1dF96AYeM060O+2azpDTPZuGNauJABJz4ux46ou+X5 SZs/t2tEciY7xUD95MhHQ+oUQxAmw/qkiwP2TaCohCDXx49PDLJe3Zlt3Tykzu000ppU k5XLGi9uw3+muBPSrcnLXpRlWLtahII4eYmrtLk0yvCeM/+3CA4/tnAS2knUcXYvXyXP p9xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=GCOdsEfWW5IjXV28XWWOktef9/NPYdX1fPH96WKlhAA=; b=gYDkusdHgDauJFZidyiD17IQo1sytACV3cAK45pTArMzgM/9DffyVoOBwrsNKsIXyV K3a0MBcxU9dI2Em4QH5UScdPV0ip40IBstgepYrL7engFnAdM/l8iS4Qh/RH+tgNkwSX YxshnMK7NlIb/uX5bnOrgAWnpK35RPXO3/0v/KffLAi7aZ9xngmC6XEqlVIUluPUOSfQ ItsApLQG3xvcs/HSjDBM+2/ZjVT123k4TmT7O9ai9HKcJLdB6mbiobz//98UO29lP06t Ytn9LePLCigRqaC2TW/nqALDmVWnECxiqo9FMrB9haNgW961BW9Qw0cgZCVQpvnZNwAY h/rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=frsc0R1p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p6-20020a17090a74c600b001ec9e142438si12600268pjl.177.2022.07.23.09.54.03; Sat, 23 Jul 2022 09:54:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=frsc0R1p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235383AbiGWQQJ (ORCPT + 99 others); Sat, 23 Jul 2022 12:16:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230092AbiGWQQI (ORCPT ); Sat, 23 Jul 2022 12:16:08 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CC4D26C0; Sat, 23 Jul 2022 09:16:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BA14CB80D11; Sat, 23 Jul 2022 16:16:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1AEBC341C0; Sat, 23 Jul 2022 16:16:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658592962; bh=5MOxEYpXVUBFaJ0FpfgHvTDZGmLFTcWpraTlxekql4k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=frsc0R1pS19ocHwvrxmsJeY4nl3B956wc+jcCj7pRc/ivbynk/22F68FxBP2jcx0q gNHaQs4kF28x9rRebcrZnawx/BwJ6yQNAOqoNMrtl5NluUFytfGWnO3YEZl1V1FYEp O9894eFoeAK7AkjjlmqG7NQFitNaIr7YtWVjxopn7hslSkfwM3CxxEfGf3nlCPcUIB +8ulNT2/WU9tqKBp1bTlFd1SXnqCZcOeX9dUIg5MPh4ACt4J4N+WLNOqQTXjehbMWL wygJnB7Vet8gNtssjy/G1zNSu0RdJWgsnH/HNwG7g7tRDWlvnpYdZ6Efim9dCFLWOi 9t3KNrEBdOC8A== Date: Sat, 23 Jul 2022 09:16:00 -0700 From: Jakub Kicinski To: Vikas Gupta Cc: jiri@nvidia.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, davem@davemloft.net, dsahern@kernel.org, stephen@networkplumber.org, edumazet@google.com, pabeni@redhat.com, ast@kernel.org, leon@kernel.org, linux-doc@vger.kernel.org, corbet@lwn.net, michael.chan@broadcom.com, andrew.gospodarek@broadcom.com Subject: Re: [PATCH net-next v6 1/2] devlink: introduce framework for selftests Message-ID: <20220723091600.1277e903@kernel.org> In-Reply-To: <20220723042206.8104-2-vikas.gupta@broadcom.com> References: <20220723042206.8104-1-vikas.gupta@broadcom.com> <20220723042206.8104-2-vikas.gupta@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,UPPERCASE_50_75 autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 23 Jul 2022 09:52:05 +0530 Vikas Gupta wrote: > +enum devlink_attr_selftest_test_id { > + DEVLINK_ATTR_SELFTEST_TEST_ID_UNSPEC, > + DEVLINK_ATTR_SELFTEST_TEST_ID_FLASH, /* flag */ > + > + __DEVLINK_ATTR_SELFTEST_TEST_ID_MAX, > + DEVLINK_ATTR_SELFTEST_TEST_ID_MAX = __DEVLINK_ATTR_SELFTEST_TEST_ID_MAX - 1 > +}; > + > +enum devlink_selftest_test_status { > + DEVLINK_SELFTEST_TEST_STATUS_SKIP, > + DEVLINK_SELFTEST_TEST_STATUS_PASS, > + DEVLINK_SELFTEST_TEST_STATUS_FAIL > +}; > + > +enum devlink_attr_selftest_result { > + DEVLINK_ATTR_SELFTEST_RESULT_UNSPEC, > + DEVLINK_ATTR_SELFTEST_RESULT, /* nested */ > + DEVLINK_ATTR_SELFTEST_RESULT_TEST_ID, /* u32, > + * enum devlink_attr_selftest_test_id > + */ > + DEVLINK_ATTR_SELFTEST_RESULT_TEST_STATUS, /* u8, > + * enum devlink_selftest_test_status > + */ > + > + __DEVLINK_ATTR_SELFTEST_RESULT_MAX, > + DEVLINK_ATTR_SELFTEST_RESULT_MAX = __DEVLINK_ATTR_SELFTEST_RESULT_MAX - 1 Any thoughts on running: sed -i '/_SELFTEST/ {s/_TEST_/_/g}' $patch on this patch? For example DEVLINK_ATTR_SELFTEST_RESULT_TEST_STATUS is 40 characters long, ain't nobody typing that, and _TEST is repeated.. Otherwise LGTM!