Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2456089pxk; Sat, 3 Oct 2020 23:33:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy42EOL+Edx63n4Pg3cYjctNk0qe950TRGIFvx/69GC0jlriWKwvvUJ8/RWbUVtXm+q7jXb X-Received: by 2002:a05:6402:1148:: with SMTP id g8mr11591029edw.271.1601793235633; Sat, 03 Oct 2020 23:33:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601793235; cv=none; d=google.com; s=arc-20160816; b=gE3QQHc0Ccgy40+vBFTshligCRkCvJ0/5bZkJvbLkNPQ0EoUCkjOyFSTgvp8dyHkek hW6BE2dYx/PCEQpzo5XilyCsfmqhx1U/u8ExCPjXDm7Y3vWFhAds2n/6f/rUTehN9sxi or7+oYTxmpuGJcclkinqfl287TJrxSmwzH80dgDk4ed21yxJsxJ2hNpwxNr9WR7bmDn4 ULjY5TAI1Z9U6E7VcVH0JwY/Klktaeav9af9VlPKYaBseY3cmRqEEJTlmNwrn/PvU4Nf IzZ2OVUleJzRWPZtX0dYbmbbTIS62LNdQJJpwxWnddyfcr98LR3Y4iMK2XxtYeiZc7+b kkPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=uu0CTyBqLF7KdJxyDrjGKEkyAj9kchNDjZPnpEmUIik=; b=jHpLxwZql+/AZ6JEkT/tYghuegyWNIPnUS7DuLvoU7iVMCLYQgrI+j9O7gZldDsawc xPs8QEgWgsnRijPQYLq3GQx6ypsUuQA6R8o2/64CSdtsVTwdq9DkRck1yIsIapwrBEnO vfdAMo7LMehCIPgI+fSC5jPJoTZ0yva0EU/15pUqXADr2bufXUTVku/jZpS/CStK++3v cCzMlKLW0jznLAXHcp88GFPWiq2cvA6ifXEmD06j4+iSyFHcgr47hB6Rk8cbYVOxIAgf VQ4m/Dn7qfVP76cqNomKhl+6ywOGVfoTc7PVinfpOz3l2oopysshQEDq5mQ9oxqrlaaO fITw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=qoivaNDR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a1si48249ede.410.2020.10.03.23.33.05; Sat, 03 Oct 2020 23:33:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=qoivaNDR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725854AbgJDGbE (ORCPT + 99 others); Sun, 4 Oct 2020 02:31:04 -0400 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:11143 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725819AbgJDGbE (ORCPT ); Sun, 4 Oct 2020 02:31:04 -0400 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Sat, 03 Oct 2020 23:30:51 -0700 Received: from [10.21.180.76] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 4 Oct 2020 06:30:51 +0000 Subject: Re: [PATCH net-next 02/16] devlink: Add reload action option to devlink reload command To: Jiri Pirko , Moshe Shemesh CC: "David S. Miller" , Jakub Kicinski , Jiri Pirko , , References: <1601560759-11030-1-git-send-email-moshe@mellanox.com> <1601560759-11030-3-git-send-email-moshe@mellanox.com> <20201002151943.GB3159@nanopsycho.orion> From: Moshe Shemesh Message-ID: <44621685-5356-c0c2-2947-15013b8f6d13@nvidia.com> Date: Sun, 4 Oct 2020 09:30:48 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201002151943.GB3159@nanopsycho.orion> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1601793051; bh=uu0CTyBqLF7KdJxyDrjGKEkyAj9kchNDjZPnpEmUIik=; h=Subject:To:CC:References:From:Message-ID:Date:User-Agent: MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding: Content-Language:X-Originating-IP:X-ClientProxiedBy; b=qoivaNDR67uZoGdfMvfOwhmLbAkBL2Fop3XS/Gs2ixEh29/8PQtRE/TRGEWrPPKhP HW5EAU/2foUDWZjrHai+ZdNqyaT4kxnPG4pH5ZAI6Gs47Rg04ALFslApdIMqW3sU8s 9gdi7aiN0qdtH/zlnoUE9XTWupiPT+f/x+STu8i+mVZTdwBYQOPMq54I+xmqXf2m0G 7Sl3KuZ5uhVEXnw7vdqSd9gVlNXUBFN/TTmEVEzyxtKcBpoNNGDB78/fAlPNsYxhSB t4BnVZLhFdf/wuzAIEyE1gZ1FYtFsPINgM7FLh3rAw7dQc/WaA42GBEH59jzQTK596 cRZqc/i4hPFQw== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/2/2020 6:19 PM, Jiri Pirko wrote: > Thu, Oct 01, 2020 at 03:59:05PM CEST, moshe@mellanox.com wrote: > > [...] > > >> diff --git a/include/net/devlink.h b/include/net/devlink.h >> index 1c286e9a3590..ddba63bce7ad 100644 >> --- a/include/net/devlink.h >> +++ b/include/net/devlink.h >> @@ -1077,10 +1077,11 @@ struct devlink_ops { >> * implemementation. >> */ >> u32 supported_flash_update_params; >> + unsigned long reload_actions; >> int (*reload_down)(struct devlink *devlink, bool netns_change, >> - struct netlink_ext_ack *extack); >> - int (*reload_up)(struct devlink *devlink, >> - struct netlink_ext_ack *extack); >> + enum devlink_reload_action action, struct netlink_ext_ack *extack); >> + int (*reload_up)(struct devlink *devlink, enum devlink_reload_action action, >> + struct netlink_ext_ack *extack, unsigned long *actions_performed); > Nit. Could you please push extack to be the last arg here? It is common > to have extack as the last arg + action and actions_performed are going > to be side by side. Sure. > Otherwise the patch looks fine. > Reviewed-by: Jiri Pirko