Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4025630rdh; Tue, 28 Nov 2023 09:46:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1bcYHM/+a9wrj2PmxmfxrsXCz3XqPX8H3kxX/58L9rEu409ZJpZF5ODDYWFEnnT/AZLn0 X-Received: by 2002:a05:6a20:e112:b0:187:bc51:de6e with SMTP id kr18-20020a056a20e11200b00187bc51de6emr20052012pzb.26.1701193573266; Tue, 28 Nov 2023 09:46:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701193573; cv=pass; d=google.com; s=arc-20160816; b=ZjKnfO5CtFRz6xxP844lL7+UYjirud07jr4KYQKlLv5PTr5LNKyQealkqbIcSPMbCi 2gNrchUeckqECWUU19QfzQnWhFq3egGza9eNNn+dmPlhehb+a4PRblNwN6fIrLb74Hxq 9XrAAgZMyvYWqUajm0+f7jWbJ6iW8UpKROL7cQ6ORQx1XOCno8X3Qv3F313M4+nRGVSv hwK8ebjs0O1hXDGeTc312MC7YhHn7LxncGer0bknqGE08AuLBXZfagfCjUXPKP6v6bZV Aqp15aPOBhQ0wh/d9OGJ8TFxq0hLBOyifVmtYvYnGh8Lv5c8tsGPxi3o3OL3Xq4jBsh7 /gAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=HvLfFQla67Eey6Wqt61tAJOt0/xJ50E94JyXiwKoMOw=; fh=juA9Fu9wTFBi6dLCivIj/SwHYjpHyTEcjr0I4QH0Gxk=; b=t5Khh40CYdh6yP30ZSC2V3qpDnJ8BCKTrBqFRPtJkaP6BalgGem01XTHYp5V8FHODC 1VnoLCGGtqIEoNOg7y/Dxb5MansXfAd/4RgykTOopxBqIL0LqeKqNYsU4zKKv2DSbrdx 7MSzMsfHXYpXKE75M9dDiBAUt9sgvLTNrA8xO5Rr0PtXwbY7g89SyNpewc1FvQKKbk82 gnT9E+rKkHOMAwDcog+dE9DMxKqNU7e3/qNVWNCj4TXmYyP8/fp/61ux0dINl9pOLWfl j97hblCOiR5Kw7/J0Ib+ZRd3Im4hlPDfahixf23XlyeSIHTIvJRdtX1iL51i7HOc3Lj6 6khw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=J4dSW5v6; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id m65-20020a632644000000b005c2185e2126si12762922pgm.98.2023.11.28.09.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 09:46:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=J4dSW5v6; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id D2FC4806C466; Tue, 28 Nov 2023 09:46:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346219AbjK1Rpu (ORCPT + 99 others); Tue, 28 Nov 2023 12:45:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346206AbjK1Rps (ORCPT ); Tue, 28 Nov 2023 12:45:48 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 050A810A; Tue, 28 Nov 2023 09:45:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701193555; x=1732729555; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=54NaTsElduO2628aN6A40NL+uN6AZhhLvZvYuzQRP/Q=; b=J4dSW5v6BIVJMFOuc3/Z8QeZvKy+Xjcyomfqk8arf8WcG2XB9P4FhrYL Tfg0+764rFCD1DkENqvG/zoFXIUDkSV4qO0MQNZrnJHrL4Vt8u3hQperK A49aF997RYBIRew8t065qEGKCXTB1RDV8JfNmixKaXz6cNxNSXI/o9/d6 bx+gNNj4Z+9FYIYjRK6jhp5yF6OD644JzepJvayhR7uXYODylkBVcC865 HtnubAXxh1TSG67o4oGwIU6KxBHjMRCnROzV+rUXHiMt00CVyx368ZqQf raWVg9vS9OmRDtmrL0ZIx369JJwX0BPG2eFhNBXpz1D/VfKgkKElfsPQK g==; X-IronPort-AV: E=McAfee;i="6600,9927,10908"; a="391846505" X-IronPort-AV: E=Sophos;i="6.04,234,1695711600"; d="scan'208";a="391846505" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2023 09:45:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10908"; a="839140210" X-IronPort-AV: E=Sophos;i="6.04,234,1695711600"; d="scan'208";a="839140210" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga004.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 28 Nov 2023 09:45:54 -0800 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Tue, 28 Nov 2023 09:45:54 -0800 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Tue, 28 Nov 2023 09:45:53 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Tue, 28 Nov 2023 09:45:53 -0800 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.101) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Tue, 28 Nov 2023 09:45:50 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KkINu07X8HvlaHEDHoeSYad5+qiiBc5WYQhzWEBXA/RK0xCDBKzBQEh1En6ylrirBJgmZmmgb3povSRypGrYQ4EjQHZEXwAukhhRG24zOseWHy7/MEneN7WDhHDnzw3C1skq3c9Kz5EwYMBVyalS1L3yDD3wtI9tIASKSw7bkA6ZjpX+cvIUdNzyJRglrZudQdBOjDb+n0FdqzmQJ1Kvw6kg0sRxIokkTGFZmm5g2QTET/iTAqWUUfE5iOGZnz08GYKEqJneFNxY+4663B0f22RTWYozIOpZWgUVr9t9DTPMKnvY3NPD+Fqkxy3eeDEd6MFNaKTClWiaeHrliajYKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HvLfFQla67Eey6Wqt61tAJOt0/xJ50E94JyXiwKoMOw=; b=WmYDo+PSSuqt3CVXjyIISNb2icyI/xPfIVedGoUqlVf36mURtELOr5fBOXgvY6GqEpIif3owuVFCqoK+87j65LKZf2PlTDhYn5FvXumaiGLFTzzd3v3gxMAdhYEEa67eVA3KTiI05pAiI2tBigttnJAp8fQ2ZzxguY2qg6gp9NQxztCyzy+RmtrgELqPzsuzsYd3MydpAr+SqvL0yINfDwBnQxuvP4cwqFW+MhYjs8tLDJApVzu2mKD4RcBReKJtapGVxFVmgizra0nBlxelSZ6qAn0XfOirHQHCGhRX+A/HqADj3sxguUkU0dlbzL43hc03V2FSeGsaJTNZjon/WA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from BY5PR11MB4257.namprd11.prod.outlook.com (2603:10b6:a03:1ca::32) by BN9PR11MB5339.namprd11.prod.outlook.com (2603:10b6:408:118::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.29; Tue, 28 Nov 2023 17:45:48 +0000 Received: from BY5PR11MB4257.namprd11.prod.outlook.com ([fe80::dc55:8434:8e81:bcb5]) by BY5PR11MB4257.namprd11.prod.outlook.com ([fe80::dc55:8434:8e81:bcb5%4]) with mapi id 15.20.7025.022; Tue, 28 Nov 2023 17:45:47 +0000 From: "Bahadur, Sachin" To: Jiri Pirko 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 Thread-Topic: [PATCH iwl-net v4] ice: Block PF reinit if attached to bond Thread-Index: AQHaIPe/QZ4HasPNt0KtTZtgr5dQa7CN6caAgABvukCAAQAbgIAAqEWw Date: Tue, 28 Nov 2023 17:45:47 +0000 Message-ID: References: <20231127060512.1283336-1-sachin.bahadur@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BY5PR11MB4257:EE_|BN9PR11MB5339:EE_ x-ms-office365-filtering-correlation-id: 06548052-112d-4379-3100-08dbf039dae9 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6UU8fpRNDIhBET6wARPnKHWMlswaRvV2p0Hmh/a27uc+rW5l3pIVAo5H5mtgdpXEjFlWZci124s2k5Y6tCeiQjEf9SXECUlplFSCgQUwsaYR6aRGJpg7UJaVfDIe2+tdU4ISPsn8btYBh/ynWTVX/mVv0z4pcFc60afF+cucBr7pB+X9HZRRvYsM/aTPNF8uAoQs23myPwOPHfDgfcQnRW8xys3ci+l+Tu21R/BKE+/AG7qvcFAmBUzJdSYRcrXnMZgQsEp6bNGzhCnv0b+WXPcXY31wSSmjBh9bZ1US5fpN3Fl7y3O0A8+OSjsDGUtAhlReVOFaeWpY+cxx5c7NECad4pt4vgtmbFMa6lJy5F2RMxp/yL0to9QMe8a5V7r1Lv7BSJwiGkV//lXzDlRZ028yXY1AUpr8CDZlYICOFGYMa3torfUwJWhmlz/WlcF2Ws7lKsPeLZZjMub9KkgcyfnRziKpRw0b+FaPIay12rmNuQnwM6F7ngqNiydohm4H7VMZG2zn7pnPeC4ZUwSqDMKcNmCewKJ/8oRuOjBPnejAfpSYH/jMOnSLs5SoKhOG7pJGcydaNS04txFmcUDrHoR6MTAnHy3FYmfTrNQ3Rr1zLOnLK+v+uiRDgF3eECOq x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR11MB4257.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(366004)(39860400002)(396003)(376002)(346002)(230922051799003)(1800799012)(186009)(451199024)(64100799003)(2906002)(52536014)(66476007)(66446008)(316002)(64756008)(6916009)(54906003)(9686003)(53546011)(71200400001)(66946007)(76116006)(66556008)(41300700001)(8936002)(4326008)(8676002)(55016003)(7696005)(478600001)(5660300002)(6506007)(26005)(83380400001)(38100700002)(82960400001)(122000001)(38070700009)(33656002)(86362001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?lMuui15hSAw4zgwaFmXg7Q/3q0nSt6DfUQfANFxqYRM5ZihYFHq+05DsXX6W?= =?us-ascii?Q?8JxQB4Wth3F813BQDCj3X+pLujMvBU6WLGZAu59hUyDOrIyaKnB3DDWF+VU6?= =?us-ascii?Q?wfEx/STYsNJU6Z1t1LSbVbHfrPXQyufFlpqsPAEnDLaT/AKMFvrfwV9/D6x3?= =?us-ascii?Q?WlBuHcywvFK8pW8tMN0f3WQHDyc/9xAHu9QB/WFk1LsODgEP4uioNSECVg1K?= =?us-ascii?Q?9Sbs2JSBumL1wz8iG6VRDGKy933GntULYG52o1TCRqGMyZXMvAbmSIMliWoF?= =?us-ascii?Q?PQdKfX6Tn4fgX7OM9fhGXvL2exfZvaOhyE/xNOyu94gMnXBRjvfhhh/+Cm1J?= =?us-ascii?Q?s87jT7KOEj4tZz4Ys5aUYLLbzxfNwdbsKTX5vdnC4I4lDgVQCp75honrcvPo?= =?us-ascii?Q?jOFBVGMciuudXtkMI++WUOo7cRN/XGb/clXKMqHHsDWEvHcg9DX7Td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vymIcyMu5hv1GkPvur57Clof1siwISncS/t?= =?us-ascii?Q?2K8X1d8zahhr5N9QOi9pGth5C8Fa2t3/ThNw611lmVPkpwivpUky7Bq21XFn?= =?us-ascii?Q?bvM/lducU36WjQ2HG4TR9ZFYEKjB9as19SBJrWd7nUmo4fKtIR55ZoURFNOd?= =?us-ascii?Q?aoka99YaaOYr4gv8tO/NQoRRCs054ijAJYdu3vjv4e7huDd2KkQpepqtljrG?= =?us-ascii?Q?IJc+9ju7nfalqk7hJ3Xmg7u/Hl3hvjT41J6dJRPX?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR11MB4257.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 06548052-112d-4379-3100-08dbf039dae9 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Nov 2023 17:45:47.9027 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: CCourXkA3rquhqReFs8mQFpz/FaVuhAYefF7Y/DHB7YwN8LaZW5LFjYit45R4qNjbqX6nD8gHVO7VdSK5koXXfrpbZTczawHC14VavjRqIc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR11MB5339 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 28 Nov 2023 09:46:11 -0800 (PST) > 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 >=20 > 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. >=20 > No, you misunderstood. I'll just add a check-warn in devlink for case whe= n port > exists during reload. You need to fix it in your driver. What should be fixed in my driver. Can you clarify ?=20 And are suggesting I add the check-warn in devlink code ? > > > >> > >> > >> >+ return -EBUSY; > >> >+ } > >> > ice_unload(pf); > >> > return 0; > >> > case DEVLINK_RELOAD_ACTION_FW_ACTIVATE: > >> >-- > >> >2.25.1 > >> > > >> >