From mboxrd@z Thu Jan 1 00:00:00 1970 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 D7C49C00140 for ; Tue, 26 Jul 2022 18:48:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239659AbiGZSsu (ORCPT ); Tue, 26 Jul 2022 14:48:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239041AbiGZSss (ORCPT ); Tue, 26 Jul 2022 14:48:48 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DD453343B for ; Tue, 26 Jul 2022 11:48:48 -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 EE6A7B8113E for ; Tue, 26 Jul 2022 18:48:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 923F9C433C1; Tue, 26 Jul 2022 18:48:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658861325; bh=dC1Y+XI3iyaYw57J+na6OIcuNU9FRVa51Bf1F2HmiW4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=q1hBA3thAsQHUH/f5CQ4PCt0GfovFfN79U6hdXrvowPD85vXwPfIZm11zQS5sMMdq WxPAjz5xSEE7e9VqoHnZzGEfEuQN0UKXDPxoGWYq3ef0y870bMCFyjp+Fb2GF7BW01 KIg75t8A4BlW6KmoqFnWNszZPde/XKnAGkD0c434iXerkpeGbbwJEZAh2JaIwckA9D S7/Mw9MVPXFCPuwUJ7/w0x2uuopEJ430K+Zj9DEzMc748qp36WTepaNWfuqGA4nRvj Mix1KNMHgfJOIsakMafle2UMFpzfljaosALA2XI9nl0PAMu714Niawl/EUZbR1UfPU Fno7O0HYGYuxg== Date: Tue, 26 Jul 2022 11:48:44 -0700 From: Jakub Kicinski To: "Keller, Jacob E" Cc: Jiri Pirko , "netdev@vger.kernel.org" Subject: Re: [net-next PATCH 1/2] devlink: add dry run attribute to flash update Message-ID: <20220726114844.25183a99@kernel.org> In-Reply-To: References: <20220720183433.2070122-1-jacob.e.keller@intel.com> <20220720183433.2070122-2-jacob.e.keller@intel.com> <20220725123917.78863f79@kernel.org> <20220725133246.251e51b9@kernel.org> <20220725181331.2603bd26@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, 26 Jul 2022 17:23:53 +0000 Keller, Jacob E wrote: > > For now maybe just fork the policies into two - > > with and without dry run attr. We'll improve the granularity later > > when doing the YAML conversion. > > Not quite sure I follow this. I guess just add a separate policy > array with dry_run and then make that the policy for the flash update > command? I don't think flash update is strict yet, and I'm not sure > what the impact of changing it to strict is in terms of backwards > compatibility with the interface. Strictness is a separate issue, the policy split addresses just the support discoverability question.