Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1088853lqb; Wed, 29 May 2024 22:55:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX/BL5Z9SbgkdAUDhH++XTcMCkTuVnC11EcG9X2hRYk9JE3MADiIwHoEAHVYjYU60GqPv6ZoMhTsTW0H4ylgGhSdBEcXZTz4Bksw08o2w== X-Google-Smtp-Source: AGHT+IGsCjOUax8YJKG0fjto1ieyKdhYbORmQXK8hAMLmGR3Urba94T7LDhCjh9ZiSI5bCmk2m1Q X-Received: by 2002:a05:6a20:8408:b0:1af:93b0:f007 with SMTP id adf61e73a8af0-1b26451e28emr1343576637.1.1717048545914; Wed, 29 May 2024 22:55:45 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c96facasi112802165ad.258.2024.05.29.22.55.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 22:55:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194962-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OC2Op65D; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-194962-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194962-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 84AA1285ACE for ; Thu, 30 May 2024 05:55:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C3ABD14373F; Thu, 30 May 2024 05:55:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="OC2Op65D" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C41732D792; Thu, 30 May 2024 05:55:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=198.175.65.17 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717048530; cv=fail; b=tJ8HMddKmsruWRsKse4eUDeQZzJeRP558+B8sm8Wwz1XFjiZitK/Ie1Jbtjd87/UwAy7aQnZ436Dl7lH96QCdgSrNbEtoqlw4Zlz2mZoYeA8T4MYlbNoYWHm9XJzZOpsrgIaez7a8FMIBNEtdRNnpiQkidp/Zd4WKVHTyCh5fxE= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717048530; c=relaxed/simple; bh=BhEN9WRIsL+98jxHgbofexhtWn5RR5KLM+6ni547/rw=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=k6kaLNBL1L8fjG/ICz1pc3pRFBW1LtqxVuVfAfbtVhnXIEbIOMwr8cqGgO7a/DTzRyzPJXboyvixC9vScOQhRcUr9r3OAaCLNEvnAh47pNoJr1BvXw6a0b4S36c7TMS15dx0Z3HrfiL5ewqdZ2SAhJYUTRyC8smDNlZOiGkxGvA= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=OC2Op65D; arc=fail smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717048529; x=1748584529; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=BhEN9WRIsL+98jxHgbofexhtWn5RR5KLM+6ni547/rw=; b=OC2Op65Dwf/RUtQiVhCgmM//azRRr+wete3tjwcgCwd+W1cDJlodcPtL IxZbUA8p57CE3RpFQ0IhiTUktqrITXYGlOKSPjyrtr+WHhqMI9rhDa2Uz G1m1DGW1vmGRINs7pZ1LV3EAIinindeeCqlVBaqMHDorvweQVPXNdhfkD 7y1Snl2/2V5BiuGtbQpmnS5M5nV5D5kM4J6ieoGuP8QVjbUMZxpRv/ZQb rxb4HPt8/IeZV+0zA6p+LDoIeGVaKsBvmF/h3sLC86KLEQrJQE1KX58wB 4+gFuFv+/KB0fUL9MUGftOasi31iP8xHvXJCQzpo8xNzWep8xrkmUujc1 Q==; X-CSE-ConnectionGUID: 2xDoEXaxSMOQNSlw9TTq6w== X-CSE-MsgGUID: 3kqJGOwgRa6aL4stqiHf+g== X-IronPort-AV: E=McAfee;i="6600,9927,11087"; a="13632824" X-IronPort-AV: E=Sophos;i="6.08,199,1712646000"; d="scan'208";a="13632824" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 May 2024 22:55:28 -0700 X-CSE-ConnectionGUID: OpWny8mYQau3jpSOw7tSMw== X-CSE-MsgGUID: dN35xzH9TEOicEN2/1vhqQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,199,1712646000"; d="scan'208";a="40566474" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orviesa003.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 29 May 2024 22:55:28 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 29 May 2024 22:55:27 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 29 May 2024 22:55:27 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) 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.39 via Frontend Transport; Wed, 29 May 2024 22:55:27 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.43) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Wed, 29 May 2024 22:55:27 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HheinCeraptw4nyY69nWwz2TgtZhPrm6fvMYtXW9/nVzvHG3mFhdzJIOKCNfaLuFQmDJIHerQ9N0FRcIuouUaHTMJCHu54QqZphvixkocs4jV45JORslV0dD0uGLtwmdW7n50kLtEy3QAuqtk2KNQXTsHrhxzdjxNsUBJQT2OX3FlAqZEvBadVCzfNflB1ML0rEkZhaz3i09oXQ1cPWeCPZZd/C0e23Sqqy4M+ELe6SOzee/gpTMxO4YJ2NmQHZdz1JKKku9ciCKc4ndCcSNX5KcGaOPl9dufcjE4DQjWunhwLRs7EiMPkW3U4s5m1ZaNboipDdL8VkO98IlQ46Y9w== 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=+IuQDAJBvaBhl5j2Yuoe4sCXWUugD7I+j5nTmwYbzdM=; b=ZyLo9ximQQ+fTg1Nd2lh7wQqBvyeTsVzCZJN/wovdWI0g/g533VJyRbbLfTqA+QZGECwTpuT5xuqmFuGKfSrCvj+ElLZltYsCXSl94AgGU3ZkdKt2Zgt0FkXd2EoOVBiA9g84xD7YP9nzZWaKXWoMbSe6DtFxZ4OqPu1GBJOOgmHuoPMPi6PP+B5s+8YR5hXgZMtXR7gRsJMmb8ONOUoXNtCuzvOYnAF7BSCcmfV3u0UvOTbPIzEluJCt3MnRTo3usrqWWJnBBYRFwXmN3e8D6ARHOQcKZWRGxjbqMxq95VZ0KvReQzsYvZUl4icYXIGkU20ASzZ1aepNDyJXyV+yg== 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 CH3PR11MB8313.namprd11.prod.outlook.com (2603:10b6:610:17c::15) by CH3PR11MB7204.namprd11.prod.outlook.com (2603:10b6:610:146::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.30; Thu, 30 May 2024 05:55:25 +0000 Received: from CH3PR11MB8313.namprd11.prod.outlook.com ([fe80::3251:fc84:d223:79a3]) by CH3PR11MB8313.namprd11.prod.outlook.com ([fe80::3251:fc84:d223:79a3%5]) with mapi id 15.20.7633.018; Thu, 30 May 2024 05:55:25 +0000 From: "Rout, ChandanX" To: "Zaremba, Larysa" , "intel-wired-lan@lists.osuosl.org" , "Keller, Jacob E" CC: "Fijalkowski, Maciej" , "Jesper Dangaard Brouer" , Daniel Borkmann , "Kitszel, Przemyslaw" , John Fastabend , Alexei Starovoitov , "David S. Miller" , Eric Dumazet , "netdev@vger.kernel.org" , Jakub Kicinski , "bpf@vger.kernel.org" , Paolo Abeni , Magnus Karlsson , "Bagnucki, Igor" , "linux-kernel@vger.kernel.org" , "Kuruvinakunnel, George" , "Pandey, Atul" , "Nagraj, Shravan" Subject: RE: [Intel-wired-lan] [PATCH iwl-net 2/3] ice: add flag to distinguish reset from .ndo_bpf in XDP rings config Thread-Topic: [Intel-wired-lan] [PATCH iwl-net 2/3] ice: add flag to distinguish reset from .ndo_bpf in XDP rings config Thread-Index: AQHapuJXNPjM2NT7gkKDMqhdOCS6ybGvXd1Q Date: Thu, 30 May 2024 05:55:25 +0000 Message-ID: References: <20240515160246.5181-1-larysa.zaremba@intel.com> <20240515160246.5181-3-larysa.zaremba@intel.com> In-Reply-To: <20240515160246.5181-3-larysa.zaremba@intel.com> 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: CH3PR11MB8313:EE_|CH3PR11MB7204:EE_ x-ms-office365-filtering-correlation-id: ab26c806-ff07-47df-48d8-08dc806d19fd x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230031|7416005|1800799015|376005|366007|38070700009; x-microsoft-antispam-message-info: =?us-ascii?Q?6RvFG7pPHeSol1HFypSJln4oCOpMxfYJ0rd+UQiUOxK5h1Jx5sSusoXhsv+n?= =?us-ascii?Q?ZdLrQGVr8VbWsfTvdMapYDpUtCwrh4XkVC1APEdsqejgaoZ1zHwBAOFD5j+q?= =?us-ascii?Q?9Vm7dLv2mc7tvsHo48T58dT/G5N7GMly3qkNUurkI18qrh3P/grXfnQDAtgu?= =?us-ascii?Q?XPye7Ljt4x2aIt3sYtD6aDi6eYWYu9JKnukhRMtkbu990mM3DCMM3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CmmucDA/lpT76dyp3q3xS94M0aS+Q/6RmvqG5Mn2gTU3eHR3S4w/R?= =?us-ascii?Q?4GJZuSlXTo+ZUn7JjQgJLvV5r2tH7rRZiul6My0sLpOUwYBw42duE5wkATCo?= =?us-ascii?Q?20eCfxTh5jFB9+a//Cnt+tB8Ogqc94fnt49WLTqDFdPW7v3ec85S6YluK9bS?= =?us-ascii?Q?wDugg6QWjkb0aU/71N56qHrW1EfL60rpZXHI4Bn9DriyPSUxHSsquIfTyWd0?= =?us-ascii?Q?ATgjynIH0daO4ARZOYoM6fbsiKMZ3az6Vba08QvRPZru/A=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH3PR11MB8313.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7416005)(1800799015)(376005)(366007)(38070700009);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?B9tgF4wLfiYrpAuFnSqOfeNmxFpuoEkF+lbVcusDiVENaFPrdMKCCSvTtk1D?= =?us-ascii?Q?nlaYAjHLClALCIEw3eT4w4cKjXzkQ1wzxrkl0VgybD8L8BrZYowKGUcq7sFz?= =?us-ascii?Q?5TrkiS3EkKo8xy4g84e5pGphFKEYfdOh2dbc2G7nUIMNJAbMHJxg/4BxDumC?= =?us-ascii?Q?3RpGA5L9TU7SI9mAjGTirfGOVafLsewVA8EBVWBCSrB9DCusD7EjuS0LGUpM?= =?us-ascii?Q?K2cWmNCXUiAVU86nb77u/G5mH1v56om2BAciYmeoQ1R5Jzsj45Bp2P8zRwNt?= =?us-ascii?Q?ILaM8u1FHeFjSEQNPciMKfokh+llHDYKUo+nMr7S9zGDptecOUruA5KQL9HT?= =?us-ascii?Q?x+ckZy5/23UMApwrvPJlBDAhUDOxvC9PkpHViD1THQU2IzH30GqYzvVxjRw0?= =?us-ascii?Q?0M1IYB4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0o9YxkfaVW?= =?us-ascii?Q?F9EnpoTcUNmAS18PNQ6ECkgAimqSkk3IpIbhG4sMGGNObqUo0sn0539MskUh?= =?us-ascii?Q?J8B/4jY6XnjXa7qWBXEivg5EEP0LVeQrl24l+Cl04IDQucQSr7zF26yFfb/v?= =?us-ascii?Q?fU1AdOpDofheQjbv3PS6Zhu8lVf5xG8Eqla3Of66uB4KIMzfUasEWhOXRkwZ?= =?us-ascii?Q?NP45Iz5HX9QAYujAnc6xF4qEsNGSvYb7NkPJeFa06xE3D0jQRUmw4Vm0UiNc?= =?us-ascii?Q?yjb47mzJtaCo4bphJMYSRQXSUhHs2Zevhieq1gm7?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH3PR11MB8313.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ab26c806-ff07-47df-48d8-08dc806d19fd X-MS-Exchange-CrossTenant-originalarrivaltime: 30 May 2024 05:55:25.5027 (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: EhuWnfCBAGejk1uaD8v8NWKVP5kC4WSpySpCblePK+706LCof63j7jEPcK2Wu8KdGhDeZoHW6yZWLc+HXNBiDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB7204 X-OriginatorOrg: intel.com >-----Original Message----- >From: Intel-wired-lan On Behalf Of >Zaremba, Larysa >Sent: Wednesday, May 15, 2024 9:32 PM >To: intel-wired-lan@lists.osuosl.org; Keller, Jacob E >Cc: Fijalkowski, Maciej ; Jesper Dangaard Br= ouer >; Daniel Borkmann ; Zaremba, >Larysa ; Kitszel, Przemyslaw >; John Fastabend >; Alexei Starovoitov ; David S. >Miller ; Eric Dumazet ; >netdev@vger.kernel.org; Jakub Kicinski ; >bpf@vger.kernel.org; Paolo Abeni ; Magnus Karlsson >; Bagnucki, Igor ; >linux-kernel@vger.kernel.org >Subject: [Intel-wired-lan] [PATCH iwl-net 2/3] ice: add flag to distinguis= h reset >from .ndo_bpf in XDP rings config > >Commit 6624e780a577 ("ice: split ice_vsi_setup into smaller functions") ha= s >placed ice_vsi_free_q_vectors() after ice_destroy_xdp_rings() in the rebui= ld >process. The behaviour of the XDP rings config functions is context-depend= ent, >so the change of order has led to >ice_destroy_xdp_rings() doing additional work and removing XDP prog, when = it >was supposed to be preserved. > >Also, dependency on the PF state reset flags creates an additional, fortun= ately >less common problem: > >* PFR is requested e.g. by tx_timeout handler >* .ndo_bpf() is asked to delete the program, calls ice_destroy_xdp_rings()= , > but reset flag is set, so rings are destroyed without deleting the > program >* ice_vsi_rebuild tries to delete non-existent XDP rings, because the > program is still on the VSI >* system crashes > >With a similar race, when requested to attach a program, >ice_prepare_xdp_rings() can actually skip setting the program in the VSI a= nd >nevertheless report success. > >Instead of reverting to the old order of function calls, add an enum argum= ent >to both ice_prepare_xdp_rings() and ice_destroy_xdp_rings() in order to >distinguish between calls from rebuild and .ndo_bpf(). > >Fixes: efc2214b6047 ("ice: Add support for XDP") >Reviewed-by: Igor Bagnucki >Signed-off-by: Larysa Zaremba >--- > drivers/net/ethernet/intel/ice/ice.h | 11 +++++++++-- > drivers/net/ethernet/intel/ice/ice_lib.c | 5 +++-- >drivers/net/ethernet/intel/ice/ice_main.c | 22 ++++++++++++---------- > 3 files changed, 24 insertions(+), 14 deletions(-) > Tested-by: Chandan Kumar Rout (A Contingent Worke= r at Intel)