Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2538263imi; Mon, 25 Jul 2022 00:56:04 -0700 (PDT) X-Google-Smtp-Source: AGRyM1skGKGgCDIyzpBztMwSpJOkxUpKh/qwU+mtDe+sWnPvqrdFBnMlc6EQO12VoSq/Uait3WnB X-Received: by 2002:a05:6402:48d:b0:43a:cccd:89d9 with SMTP id k13-20020a056402048d00b0043acccd89d9mr12153018edv.257.1658735763890; Mon, 25 Jul 2022 00:56:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658735763; cv=none; d=google.com; s=arc-20160816; b=bRurNKuq3E5hHyi5mIKAzjwwdBdn3sn9MoLC0UotTtnpQNlZ74HH20TENgd3MO7tVE r7TykIzqhD8Secf08fJSQrw7zLNbqFGWkPNDUepIlpQ7PKULY5MlA0oq2pmkj0t4EVIq HeSAmuRVssRNGZq8ZrXUzV6tnNOsqEAfthbKfIL3SRShO08MUdTicTUCUGUVSBQz1SkY xicc8EW+CPDGlC7+Qv2OeK7+OSbydCAqticmHzySOfA1o6DI+fwsTGn/5QUsXRoGX2TI rCWSDS9pdrzL5JD28BgHVJUMSx6A2OWLdPxgy/GxJdaL6j1M+lObajcr9NqUoyE4pg+t Gwrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jQHpcE4C1nH2GCEZXh7ETSpGDaBL6cwEwh9j7gNMWo8=; b=HEBrGWBrn/0VL5zqoi4cBI69OtYcCHXuhoxqmgAs4hS9ZWjdisr0tDGb0e8i+UYbvd GlZETMbE2/NxcKYFEsa0w1X12gaJ6Z420X7c9jOK2+E6eYrdeantmYWdUyPzR1y/gW9g GPzt2kWYGdTWtKxe9t1o8c80zwLjZSa7uhvlOy5QFRmBs/7GSUSVkSiufbxG/A+0jspM EgcxE7vm30zeOmsTjuvzeKgMhRZ7+95ZQH9TJX9hfsKQw60pFs0IIqEN1OWpq56Bb5Gb TeQI9xBIA4dSUsBD57cLpnRSq76vhA/XNiDEQ/qA3nbNGaK2fTwtzZRy53FjqdBaqqNe lgbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20210112.gappssmtp.com header.s=20210112 header.b=OM55UTg0; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t21-20020a170906269500b0072aa1072924si8108366ejc.184.2022.07.25.00.55.39; Mon, 25 Jul 2022 00:56:03 -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=@resnulli-us.20210112.gappssmtp.com header.s=20210112 header.b=OM55UTg0; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231685AbiGYHx2 (ORCPT + 99 others); Mon, 25 Jul 2022 03:53:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbiGYHx0 (ORCPT ); Mon, 25 Jul 2022 03:53:26 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80D1812A96 for ; Mon, 25 Jul 2022 00:53:24 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id va17so19125803ejb.0 for ; Mon, 25 Jul 2022 00:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=jQHpcE4C1nH2GCEZXh7ETSpGDaBL6cwEwh9j7gNMWo8=; b=OM55UTg0wu+CluQkSUuA01YFDEdR/y4F20whcdzU1hU38os/ei31zozZ3nG+vpyapL C4sqPhvVwG2PGmrj2cqmelAHQZjlR2xb+0rcheIVoEhxmBIqe+DaXqmCPnws0bttvYDM D89CQaUgpv7QHiWFeRnMIGfTUhLaA+sSrNNlQ2lGk5vBhH85BV8zYTEEb6f7J6x954Ik ghxFRwdsElN3pAwFnlfnGAiygd7hZ7un3sZnwbSXymco13wqi4JHyXtohzFegCUej9vR IzoaoYzpzs/Y6OsEkHqDtgppAfiM4auffmbGS9I8nRLK4ITgHl+kV21CjuinMnBydi0u n2gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=jQHpcE4C1nH2GCEZXh7ETSpGDaBL6cwEwh9j7gNMWo8=; b=T/4smMw0SC1lpclLW6t4yagADT2o6f4eUz5XlDV8USgVnaJ+u6bvCtZdsdcVZvR3Ru Oxj9agZ4UoyMrin90KhI9vV02ZRK5AwWbMtAmu9vhrqoJeX6m8p2RIy1UP4BBmfHuEa+ by2J3Bh1nUKEYEUgA1TqGg84luDAtSj4LUgAMtIWl30sigrp540OGgTz5luZsK/gzP4e kCpWGVxWtw/imTLyaGzUbc61sx81YFOXeewJH5jQHBPVq/ScTLhQdpZFUYM6Fd4FN4PO F7iEmdyEghV/rzRxyHTxM3oUh3rV5F1Eb23T+xDvq5SOjuB0oixHzZUHgalzEqVUmcS5 MBZw== X-Gm-Message-State: AJIora/mt6H/mlZ03HBYHcSQrOX9cYmO99XyDkGF2oaJdBrD+Zh1rTR3 zXgZ+J9n5GqqNfAtMxofrhGhDg== X-Received: by 2002:a17:906:c781:b0:726:c967:8d1b with SMTP id cw1-20020a170906c78100b00726c9678d1bmr9205707ejb.54.1658735602996; Mon, 25 Jul 2022 00:53:22 -0700 (PDT) Received: from localhost ([85.163.43.78]) by smtp.gmail.com with ESMTPSA id ot11-20020a170906cccb00b0072af4af2f46sm5008824ejb.74.2022.07.25.00.53.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jul 2022 00:53:22 -0700 (PDT) Date: Mon, 25 Jul 2022 09:53:21 +0200 From: Jiri Pirko To: Jakub Kicinski Cc: Vikas Gupta , 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: References: <20220723042206.8104-1-vikas.gupta@broadcom.com> <20220723042206.8104-2-vikas.gupta@broadcom.com> <20220723091600.1277e903@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220723091600.1277e903@kernel.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,UPPERCASE_50_75 autolearn=no 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 Sat, Jul 23, 2022 at 06:16:00PM CEST, kuba@kernel.org wrote: >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 Sure, why not. But please make sure you keep all other related things (variables, cmdline opts) consistent. Thanks! > >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!