Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3666020rdh; Mon, 27 Nov 2023 23:38:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/I5AsvImFLq3g2pX8yDh0w22zpcQ0QKfQrKK5ggP3bReUXAqXZaA8apuPHxoZE9iyqYjR X-Received: by 2002:a05:6830:3154:b0:6d8:31d8:879f with SMTP id c20-20020a056830315400b006d831d8879fmr4590048ots.37.1701157082534; Mon, 27 Nov 2023 23:38:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701157082; cv=none; d=google.com; s=arc-20160816; b=rVEKzzGXkW123UAMSeg27ufg+qICoK+xxqmF6qF8lW1IHSRrZrEG9IwChDpvr3KnQP GoAe+bYxG8zj4HH/lIlt6tCdvS15mfhHw++G2yUG/oynVIPX0TCAdg1LbjZfK7OagF6/ qetV5mWBVu6RbV7QuSdsIVwZsi7tJXJJQld/N2+q1S/rQgLrLiAze36zJYEQmS6amgrE bgnRi2HNry5F++1mQ1NHZq/1cNW2hkrPioXsHtPoqQBSG8K/bbuqBNw/qNfpIU6UQ52L 6WaSdKMkIpwff2LDaYLWp/dBNCuhsngaSt0G81GLlufHjsuwfuh2/Dc0RN78atiEMua2 mqRw== 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=d6gVvfRNPtJ9hR1Q42xqDgJWHxAsSJew352v7XMd5+I=; fh=D90mhRvUyjEiyU0z+kavxCX2+uhJIfk6ZDrmW0sVkFI=; b=vpRm/58JiukGt+KwhGodPFSK6s/RFyotVHb7ujmvsI+/fEY2/9jRVgHFM8DI0kFYML W72mVCrVDgMprD+CRp8xYZg2l8HDFLUKOuKugN7Xs+uIhRCehmasn1sC7Wg7CQI4TcH7 Ybdtl2hFHNkfvib91ItAOzrYVLPYhiVJvuQBuJ6uzIPRyKLjMENOTN3XzGZUcfW9SmOY PEM3Zih0kXJL+iw1DJoQ0BACYFukd/gGii/WI70MUZo7gLoaOtgFHLyA1eDLhCqFNJM+ w1PdnH0x9uYPB6voTzOxul9anIg9/CMvVqmgL5+NaocOLNrhFvWqkrlAwIlH5aTsOjpd c+bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b="Q6IhPwX/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id n10-20020a635c4a000000b005c2137bf557si10958971pgm.558.2023.11.27.23.38.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 23:38:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b="Q6IhPwX/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 2A4AC8060CB7; Mon, 27 Nov 2023 23:38:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343716AbjK1Hhm (ORCPT + 99 others); Tue, 28 Nov 2023 02:37:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231858AbjK1Hhl (ORCPT ); Tue, 28 Nov 2023 02:37:41 -0500 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 945F31A5 for ; Mon, 27 Nov 2023 23:37:46 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-54bb260100eso210232a12.0 for ; Mon, 27 Nov 2023 23:37:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1701157065; x=1701761865; 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=d6gVvfRNPtJ9hR1Q42xqDgJWHxAsSJew352v7XMd5+I=; b=Q6IhPwX/rwSFky2IvnsJsL0f6ZRCJRdpv5wcrgEfcPvJFEfPUQN5Uho5lTDpSROg49 +tyhtaU73urGpb5pz6gMMfYvKjUIBefLxta4LNTzDrEP4wOVJsmrWaez9dCxG4Idz3DZ vgDIStelzenXVGgNNVhYQhPxGBLTH9dOZxLIIM50QOL4NquUq11ZCK5048n2E+fBGmCL JyiDuadxudV6ryX08SeznPNEVknJfardCfQrGGIydY+S+t7muCZVeT/8PtUfKRmtC9Py KZgaGe+LL6UxLKxpLoVMT5OnXse32uhVGio2zATqMe35RqdOxPLyRPt5RtPs3VV1OlVT 9FKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701157065; x=1701761865; 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=d6gVvfRNPtJ9hR1Q42xqDgJWHxAsSJew352v7XMd5+I=; b=f/uo3GXLvE6O8XsswUwi48NkUFUYKPnDgmtINyGyFnVbrnYvA620QdJamVCIKwnY98 PDWw+yTBnZnVz8J+5MuDOICdfbwAX1L3bDOWFExhdh3elDAZyzzFRULGrW2W6Gk5Zygi UhWQb7SphwofdZMGgIpASEWjKuTr7U2ZAHeXGB0jEw9TT/NEpYf1EDXZNtpOca2giwlm 2m9noy7Ha5FjaO7tBvWmJ+sv5Yer8HaiYjALbb+0If8eQ3Dwbb123Bs+jrbz8lzN+UZj Loujz8LriQo7TyHa0L7fplrdOeg8AKp0tMtg1imb9aVxinIHZ0+WH9utLKCZtMhhoo7A oxUg== X-Gm-Message-State: AOJu0YwZdO0/cUfu8AG6lEHQKH4WkVJvA2KEQKzdG3ZtphEfuPgeUUwI rBLq3zWf7nKjP2CAj0uHGYVFxQ== X-Received: by 2002:a05:6402:944:b0:54b:984b:6b53 with SMTP id h4-20020a056402094400b0054b984b6b53mr1598682edz.17.1701157064908; Mon, 27 Nov 2023 23:37:44 -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 h14-20020aa7c94e000000b00548a57d4f7bsm6072332edt.36.2023.11.27.23.37.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 23:37:44 -0800 (PST) Date: Tue, 28 Nov 2023 08:37:43 +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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 27 Nov 2023 23:38:00 -0800 (PST) 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. > >> >> >> >+ return -EBUSY; >> >+ } >> > ice_unload(pf); >> > return 0; >> > case DEVLINK_RELOAD_ACTION_FW_ACTIVATE: >> >-- >> >2.25.1 >> > >> >