Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4628350rdh; Wed, 29 Nov 2023 06:42:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEX2MxuROtyk15i2D5d7jqW3VDB+d26sXI6HcDnT3vcFueorCOFYARlXxL+vTFjX7/lVOTe X-Received: by 2002:a17:903:246:b0:1cf:b29d:3e8e with SMTP id j6-20020a170903024600b001cfb29d3e8emr15002668plh.58.1701268953792; Wed, 29 Nov 2023 06:42:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701268953; cv=none; d=google.com; s=arc-20160816; b=I0Tnc3gJkRcOcShvquhQLrrNn07uufl8p8BrOPo0YvKgGNgkt/ma4l5Or9+O/TS/SH of6TDauI4HA1e6fnpx3ZWuC8Be6y2UDFba9XyYoIejHJNMVFrpF87kYDfRrO/R5nCCO6 lAqUEA4mId9rlkU8ssKSOXYOewpE1/Z3uUZpBBMUEr1d8iG8d0ouEiCbktq3VQIHIs+R H4C7h4GJ7TrUqAfqgsXZ/vHuwL8LTmVMMhyOVKKzSH5XG/O2GPNOGWQFCg9WcbmKdDs5 JVBmco7vgvBn30mQxgmdvvD1t2DFI8LMs/kL8eVMuxZI6nDhdO2ToLz1yzPSEzzrMbtc cgJg== 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=yyYsrVXR9VfHQeLrjs7Rji7raTyh+wNRCcIFYzXejwI=; fh=D90mhRvUyjEiyU0z+kavxCX2+uhJIfk6ZDrmW0sVkFI=; b=IV9Lr1gk4nj7aHDDxnv9rQwexYb6cMpb7bq/9iA3/gyIb1knZTTn8KOVOm/ig3xLjt jjZwIWJWOg1jxnt/1QHlojypgB8xZtKIF/SLWeuzYsY/zRQnaISD6DHQ12yuvqFkEBkS kj1hrLF2kGZCQpuvWKJB9oAaXXtzQC6t+fTkHXtO+h0DbfaNmXI+ZSg3BdcCHSzOctem 9dpvygI0F6j4AxcSbOpaza38VQ5FMWEjATQR7ilKUbZws+GPNwFMdnXnJjrXl2fn8A71 PjAOdmUGGb3tUh83rnIWu+5r4huw4PY2+AwiG0K1JQnuuWN0s3rP9D3N6mRAdfqNHnpA DHwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=i0yLVIMq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id jo6-20020a170903054600b001cfa7f91403si11379316plb.183.2023.11.29.06.42.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 06:42:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=i0yLVIMq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 1675780A1DB2; Wed, 29 Nov 2023 06:42:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231191AbjK2Olp (ORCPT + 99 others); Wed, 29 Nov 2023 09:41:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234665AbjK2Olg (ORCPT ); Wed, 29 Nov 2023 09:41:36 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED97919AE for ; Wed, 29 Nov 2023 06:41:34 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-54b7ef7f4d5so4264818a12.1 for ; Wed, 29 Nov 2023 06:41:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1701268893; x=1701873693; 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=yyYsrVXR9VfHQeLrjs7Rji7raTyh+wNRCcIFYzXejwI=; b=i0yLVIMqpNVNX8hyANt/h0YDDvl9K0JE2SkT4Er90fHaikUj6P8pG6vtu5qr3jZVOr BL4yWpHW7g2kjSWmtR0F0Ex6suH0Lx0aEmUUBBFxgQV/aj2nM6gLjJR7eZs4wuHrQLyA S4VsZuev7LLUXSnr54yPTnYn+CFwc4oQbu0Yf3X5FTjqfjM6gys3wCJNAllaugErfTQj 8RROMH7ABa+p2bztqnJ882iTs/I3hmCUwUOjB8JOWB2KB6RNqBc8nr6meIVgGfpbtqRB w4g1WTQi2/O4wwTlPhAYexTt0UuCHDDHplZBLrSepPrO5IT46HiKl3jWMFoi3TAO0DQo tkgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701268893; x=1701873693; 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=yyYsrVXR9VfHQeLrjs7Rji7raTyh+wNRCcIFYzXejwI=; b=Yww9GIXiGbyMGSKR0YplV8YPtMdRFg/aogAmWZ5dunlSXOvhbFs7iDULQjvJ6XqyII TNPQvmr4yJ6gKmcktGBNvjgjGKNIKOr+vdTn15hNENHhlmWLkAtip+IYav8PP+65zXne 4YfMuVkF1oZAwuzk240JBipAnQE1N5NWfKg3ndrB2d5BEKlE4HRwau8UWT+lS/MdVcd9 O/SDjriRl7X5oQYanMrZhBjJdM4ODkrg19XnmiTLArQMqXAFpBDAr0Js/SSnGKDLtyEW PKiuIBma0FXLAJd+if2s2sPT3NQfkClHUzPwSMIbA9j0aNOjYBX1nYlIkNJuBLLXSf+e Rnaw== X-Gm-Message-State: AOJu0YxB4byXFmi50gb77t4G/loH6EoRIkZc9g/Ix7zYyfuyHV1n39hi 2aWBKb/KHpJhFCMAKkrdIFg5zA== X-Received: by 2002:a50:cd9d:0:b0:54b:5243:f7d6 with SMTP id p29-20020a50cd9d000000b0054b5243f7d6mr7475815edi.32.1701268893292; Wed, 29 Nov 2023 06:41:33 -0800 (PST) Received: from localhost (host-213-179-129-39.customer.m-online.net. [213.179.129.39]) by smtp.gmail.com with ESMTPSA id o24-20020aa7c7d8000000b005432f45bee9sm7311740eds.19.2023.11.29.06.41.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 06:41:32 -0800 (PST) Date: Wed, 29 Nov 2023 15:41:31 +0100 From: Jiri Pirko To: "Bahadur, Sachin" Cc: "intel-wired-lan@lists.osuosl.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH iwl-net v4] ice: Block PF reinit if attached to bond Message-ID: References: <20231127060512.1283336-1-sachin.bahadur@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 howler.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 (howler.vger.email [0.0.0.0]); Wed, 29 Nov 2023 06:42:31 -0800 (PST) Tue, Nov 28, 2023 at 06:45:47PM CET, sachin.bahadur@intel.com wrote: > > >> From: Jiri Pirko >> Sent: Monday, November 27, 2023 11:38 PM >> To: Bahadur, Sachin >> Cc: intel-wired-lan@lists.osuosl.org; netdev@vger.kernel.org; linux- >> kernel@vger.kernel.org >> Subject: Re: [PATCH iwl-net v4] ice: Block PF reinit if attached to bond >> >> Mon, Nov 27, 2023 at 05:23:55PM CET, sachin.bahadur@intel.com wrote: >> > >> >> Nack. Remove the netdev during re-init, that would solve your issue. >> >> Looks like some checks are needed to be added in devlink code to make >> >> sure drivers behave properly. I'm on in. >> > >> >Sure. This fix should apply to all drivers. Adding it in devlink makes >> >more sense. I am not a devlink expert, so I hope you or someone else >> >can help with it. >> >> No, you misunderstood. I'll just add a check-warn in devlink for case when port >> exists during reload. You need to fix it in your driver. > > >What should be fixed in my driver. Can you clarify ? >And are suggesting I add the check-warn in devlink code ? Remove the netdev during re-init. > > >> > >> >> >> >> >> >> >+ return -EBUSY; >> >> >+ } >> >> > ice_unload(pf); >> >> > return 0; >> >> > case DEVLINK_RELOAD_ACTION_FW_ACTIVATE: >> >> >-- >> >> >2.25.1 >> >> > >> >> >