Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1109398rdb; Sat, 18 Nov 2023 03:38:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IETvtLK5pzP8r1bod4VnqL+Xn4bPRafEvZFF8qnTLERXGvnpAt33gvyp8WWiYgLTphJzfHy X-Received: by 2002:a05:6870:be92:b0:1e9:e605:279f with SMTP id nx18-20020a056870be9200b001e9e605279fmr2699716oab.13.1700307503903; Sat, 18 Nov 2023 03:38:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700307503; cv=none; d=google.com; s=arc-20160816; b=ZMQt4E+O705DmSB/JUVFJB9ASeiYfoTydF4ogqVVSsepxV/JT4yVf9wCu57OCF+gIE kOZMqYFkYtr81ZlWTR7z0RWFseF+foXabUu/hecXXPi1dCZMT7cJYv20cCUetjYlRVMZ I9bWXB0Ps3sQAZez0RioGLrRwT3w6Q32FCwOrpR5raIYs9U1FlgCljhXPdHvkZ2P1QtB gUdWaBUiaorpbdgu5s8hp/v5xPrCkHActptYC1RgElmiPILN6FmruJbbn/nv5pjtZU1O 0kjbVokeHdSVd8yqCkmtXUFFtJA8eTNMoqZpuxLQLs+hnQ/6K7yCGMQxGRk/tCkScZbX 85CA== 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=jwfAcLpPBP9/VcLdhWC2YYKbzJ5W2WwAWFFBT48SHb4=; fh=c7GaaWQy5sxGAmN4ZMeRKd0KFpswfbqDKTFE/zDfZXA=; b=cdEZrZTxJ74DlSGRJMBAlye4dOAD9MwHn/Ti/XdxayR8u0spEO0ugcKrrnIqvDZKvo DTABwHfGDJtUZuiuw+Bv2eaJCZC6wckjylsReyo+/293+dDhYIa7sPLDdd6EPq/QNn9+ 7uJKu+Rp0IqaOKzLWIm0eSctZR7ZcasA4xrKemxMwVoXutfS1wVVFqKYBncPgeNxJ36N hQ8tn1c/DtlR2XwxJXj6hbEN0riE2SwiotYTjM7myxLHcTlSFnKCHY36056zX8f9kv8d JSlAwjApydSyJHecsGpl5DZY+3Tc3grm45/1nr8uHU9bC31I7uOEE/iJ65THWmc7efCA RHhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=DPszGSJv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id d15-20020a056a00244f00b0069023e4bcb4si4239951pfj.114.2023.11.18.03.38.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 03:38:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=DPszGSJv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 82D7F80A371A; Sat, 18 Nov 2023 03:38:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229693AbjKRLiN (ORCPT + 99 others); Sat, 18 Nov 2023 06:38:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbjKRLiM (ORCPT ); Sat, 18 Nov 2023 06:38:12 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C3CFD57 for ; Sat, 18 Nov 2023 03:38:08 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-5431614d90eso4086493a12.1 for ; Sat, 18 Nov 2023 03:38:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1700307487; x=1700912287; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=jwfAcLpPBP9/VcLdhWC2YYKbzJ5W2WwAWFFBT48SHb4=; b=DPszGSJv+/tGL68O9MV438e2U1IphyHA0fsDT2uxnwuiwt7B/0DLfpSDpbwkD3NW2P 0zeUrhEuLencCLY0QnjWvHmylomF7ke4W5wXDzibQLR9FYuD55VhCIza49bY3kpMdy4q eK1e5XT5utNGsgO5SAPeXL0/rrj+MVCuePNvhHL03ZfDv5pT8l9WKTkcddPFd6MaaVaG D5tfc/OiNFvXaDYz8MoapDsutZAACb3N6em8x645BeuoB/OXb7H7hiN4rGzpkR3j5iEk GYME1/SpaQZXZlGMt5JoLFf1AkK4byirGEfA4vKNwZtWPmei53xP4bZrpXCJjHIboE0X dFSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700307487; x=1700912287; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jwfAcLpPBP9/VcLdhWC2YYKbzJ5W2WwAWFFBT48SHb4=; b=eov6q7TDcTn9OYWlZmCWpyRAdm6qbjYnOtX8cGtHaVH8570IIIeJklT5YLpV5aosrV liFCEuN39kB8tJh/J3sMzghnHRljLZHdEs8zaaZpu2RjhhkNNkMzGA9hWaCib+z3BYH6 OrCBNnw6g5ssKeC1sqnTq55h5WH/Ecf5dGFKhw8deNz91wma3B1ufgRiTcHsbDGy9zf4 xBZgZnAtMPD7TEIgp+g/3baSBBKMnb60iVTikrEk/AyKbs1jSul7ylWGTBe4cM4Gmx9b SMmOTJyTg/zMdZbN6UMLeRkS6cJsRISu8abnXWTShhMiRpp8ML8zmMzQKCNLlLTa1vGR c9jA== X-Gm-Message-State: AOJu0YyrKGXOEfD5dgoYeOVl0hrfTz9qvHJQBFy91oGxCwFLZNJZcFwp D2vfUX5cC0jBLFJQ6qqaALXqhoXriP8allx7I9Q= X-Received: by 2002:a50:9ec3:0:b0:543:4fca:cc91 with SMTP id a61-20020a509ec3000000b005434fcacc91mr1333532edf.20.1700307486789; Sat, 18 Nov 2023 03:38:06 -0800 (PST) Received: from localhost ([86.61.181.4]) by smtp.gmail.com with ESMTPSA id c7-20020aa7c747000000b0053dfd3519f4sm1669355eds.22.2023.11.18.03.38.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 03:38:06 -0800 (PST) Date: Sat, 18 Nov 2023 12:38:05 +0100 From: Jiri Pirko To: Sachin Bahadur Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH iwl-net v3] ice: Block PF reinit if attached to bond Message-ID: References: <20231117164427.912563-1-sachin.bahadur@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231117164427.912563-1-sachin.bahadur@intel.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sat, 18 Nov 2023 03:38:21 -0800 (PST) Fri, Nov 17, 2023 at 05:44:27PM CET, sachin.bahadur@intel.com wrote: >PF interface part of LAG should not allow driver reinit via devlink. The >Bond config will be lost due to driver reinit. ice_devlink_reload_down is Reinit whould remove and re-create netdevices. This patch should not be needed. >called before PF driver reinit. If PF is attached to bond, >ice_devlink_reload_down returns error. > >Fixes: trailer >Reviewed-by: Jacob Keller >Signed-off-by: Sachin Bahadur >--- > drivers/net/ethernet/intel/ice/ice_devlink.c | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/drivers/net/ethernet/intel/ice/ice_devlink.c b/drivers/net/ethernet/intel/ice/ice_devlink.c >index f4e24d11ebd0..5fe88e949b09 100644 >--- a/drivers/net/ethernet/intel/ice/ice_devlink.c >+++ b/drivers/net/ethernet/intel/ice/ice_devlink.c >@@ -457,6 +457,10 @@ ice_devlink_reload_down(struct devlink *devlink, bool netns_change, > "Remove all VFs before doing reinit\n"); > return -EOPNOTSUPP; > } >+ if (pf->lag && pf->lag->bonded) { >+ NL_SET_ERR_MSG_MOD(extack, "Remove all associated Bonds before doing reinit"); >+ return -EBUSY; >+ } > ice_unload(pf); > return 0; > case DEVLINK_RELOAD_ACTION_FW_ACTIVATE: >-- >2.25.1 > >