Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp81438rdb; Wed, 29 Nov 2023 21:25:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IHlmr+CoEp4gP2EVfhoxu93pOmxbiXwMVGW8/x7IU9hDqOFkdpShYlX8Q1DDj0gV3sYhlyl X-Received: by 2002:a17:90b:4d07:b0:286:3b18:af40 with SMTP id mw7-20020a17090b4d0700b002863b18af40mr302367pjb.21.1701321926823; Wed, 29 Nov 2023 21:25:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701321926; cv=pass; d=google.com; s=arc-20160816; b=QEX1Hu3DXAfWWG4EbDtDSYPFpoWAcejwzecTnllcS+V74duJahK0kBEkCMaOQM8Igg 9rEa2yDO2lwMGbNULVi+XPp/NEuaMk4ESIDE9ybBNiRd97ZfQaLjgs4Un3vnj8aFjbJG 9UEU1ubF3pYU+apIpFFsaPXDSQdrVk8EY8mqV6z0j9+JbD7BZ3q1x6mwus+iuiZDtSBM 7dxlsnZAO+xE6MTjUgpL90cx2uq14ZvRJlAYhkHqu2xlvFD25QqXjRnTj/8cPv/HlGkA mmVLGgNPpAZsTUk48c75obQnk4ITEkkNL7wYmzzqU5xKJei6dMvh0ilCwyVE7Sb5ECrN 6Amw== 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=DBdDvVDqITGxtg7rgf4YHLSJoIcFljumjxMkcPJAdTQ=; fh=iIMmpmGV/wtde+rO6yz6l3la8Q4AlIjC/H/W3LxdkFk=; b=guA4E+8fBV28XDi2qMQ/uqZquJTXkhlvnlsJmnDvD5H2Ruevz/lIy9YVouLxGkW/DJ GYLO4AFAjiLf7ht0hEd39zjiVfQzaByUp/7ldoFkYK62QqhfHvB8/16oZZUXXCBUlpoW ksgcEpgT2rFjpG4B7twOivSQXN/6pygC1qPri1Q4GWBrMVRpHP4zmSikTiTHRZNt/PKP cFZsSV4x8dS0sg+YHF/cx7Sx7Odq7/D6KJ00pBT1DvrhuYp2eovY9AlG0Mo9NF0c6+ox HESUbvopCMhrRyG8AQG8/fwvA4zaQo23bNORMfVozZhZeNNf1hALn8UIsEwVaAYm4Uh2 tOwA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QkoU04Eb; 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 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id pf12-20020a17090b1d8c00b0028589f571fbsi598879pjb.148.2023.11.29.21.25.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 21:25:26 -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=@intel.com header.s=Intel header.b=QkoU04Eb; 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 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id B26458083AE0; Wed, 29 Nov 2023 21:23:55 -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 S1344504AbjK3FXL (ORCPT + 99 others); Thu, 30 Nov 2023 00:23:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344496AbjK3FXI (ORCPT ); Thu, 30 Nov 2023 00:23:08 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89F63BC; Wed, 29 Nov 2023 21:23:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701321794; x=1732857794; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=PUZ00spTewTS5lawZpzKaCBvMwTxQBXn9Ql51ayyJLo=; b=QkoU04EblV8tCwqls6fmJTcNdiDhkM/lUyxub3B6kHVVPaEoo7EyMREf Iq/stVitAYo+xZfcJDh8XL24DZ32i+3w/a3oGq+Xi/djI1/hFxgFvY0np eUN2H5qW7NzSoHSG7VM83ySuFbeL4BdMu4yf1uBMgzBQKvi6hJpSEtII4 O6UkyQCKUb5Q2nGmSxlmOC4Y0J69GS3ALtDFvLvBSxXmxcMB/GVApmiee 1Gvg4L7hGOZVDH1F77QCIM15X38D1FBqyfaIPsGvMGzoM/u5sht2AgTdH iqwhsmS9q7y5WwwjkrNMpRCq6FrfsmUvun//4LK2RAJcH8t/K3RkIgOIt A==; X-IronPort-AV: E=McAfee;i="6600,9927,10909"; a="390429506" X-IronPort-AV: E=Sophos;i="6.04,237,1695711600"; d="scan'208";a="390429506" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2023 21:23:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10909"; a="772936757" X-IronPort-AV: E=Sophos;i="6.04,237,1695711600"; d="scan'208";a="772936757" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga007.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 29 Nov 2023 21:23:13 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) 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; Wed, 29 Nov 2023 21:23:13 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) 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.34; Wed, 29 Nov 2023 21:23:13 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) 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.34 via Frontend Transport; Wed, 29 Nov 2023 21:23:13 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.168) 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; Wed, 29 Nov 2023 21:23:12 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DHwwb7Ca/FD3mUbDhfUq38fPcVscTypbQfyWEu58ODf7Bo1cHdCcnCfemEWi+ulaQKE7xyOvL5U2D9ymuFXsWzOrZZRUeromo7P/RccNA61MCeAAIA16XjA47jKpgqs0IbM8hXaaGIP+V3gU84VRfW9FulwglP3UbQ1ry3XtQkzdfPzjoC8MnHdKzdOeg2/NszLom8wRwJ571ATMvXamhZvUnUBY1PTEktCPsahx9LnaQXmR6yeeWc2DtRFvQ+Zfe8TIUAkOiXdg5939eqRkPSpa66aOywgdPoQAz5rc7pgEpJUny953McVjgDD6kuurk2oDlYBy0Y1Z1a2ftaUcdw== 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=DBdDvVDqITGxtg7rgf4YHLSJoIcFljumjxMkcPJAdTQ=; b=a2k/lGGEEykesv9zFxnraMmJXhP2W467dYqmN0u3TSDY3XHAsYBTT5d51nG8F5LeurodX2Gl94CyomyX1GTGpyMPRrw56BzoEYcD+USJadsLwL0eIyNURUlowd65jZQ2/CaDZOW4PuquMnTOKh4feUVTXwcKz9vL1lWjuTPrHn0tByoK9B9nB30OYTpWCV+DWPffNj0b/S4wTlyvyEPhoAPidGfnW2oKgUgcAzwdudAiqPCAm2OF1MUIwVuzPrvLHuahZOXR+pkXKEK+ynn1GBOsMXnRrW9c97HadsAwOWagvajVdUQe3hfZe42WoiKR1LRT8ww9OhcuReOiwYQP9Q== 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 BL0PR11MB3122.namprd11.prod.outlook.com (2603:10b6:208:75::32) by DS7PR11MB6198.namprd11.prod.outlook.com (2603:10b6:8:9a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.22; Thu, 30 Nov 2023 05:23:09 +0000 Received: from BL0PR11MB3122.namprd11.prod.outlook.com ([fe80::954:6050:f988:740f]) by BL0PR11MB3122.namprd11.prod.outlook.com ([fe80::954:6050:f988:740f%4]) with mapi id 15.20.7046.023; Thu, 30 Nov 2023 05:23:09 +0000 From: "Pucha, HimasekharX Reddy" To: ivecera , "intel-wired-lan@lists.osuosl.org" CC: "Drewek, Wojciech" , "netdev@vger.kernel.org" , "Brandeburg, Jesse" , "linux-kernel@vger.kernel.org" , Eric Dumazet , "Nguyen, Anthony L" , Simon Horman , "Keller, Jacob E" , Jakub Kicinski , Paolo Abeni , "David S . Miller" Subject: RE: [Intel-wired-lan] [PATCH v5 3/5] i40e: Add helpers to find VSI and VEB by SEID and use them Thread-Topic: [Intel-wired-lan] [PATCH v5 3/5] i40e: Add helpers to find VSI and VEB by SEID and use them Thread-Index: AQHaHueZIXDan26oM0GJQd1ShUCnwLCSWAEw Date: Thu, 30 Nov 2023 05:23:09 +0000 Message-ID: References: <20231124150343.81520-1-ivecera@redhat.com> <20231124150343.81520-4-ivecera@redhat.com> In-Reply-To: <20231124150343.81520-4-ivecera@redhat.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: BL0PR11MB3122:EE_|DS7PR11MB6198:EE_ x-ms-office365-filtering-correlation-id: c1d9e33b-11af-4849-934a-08dbf1647101 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: V4o4peMbDrNCJoNpDHXChCTsuFwfqEIZlCD+NWg0Yof5QS+YTMGoQ6lBd+dfUA6OOPyx1piz/GToV9mTHrgCOIUfBzYt5li0JjpyhSawVGcEQruvD7YrvGrhyTAPNRjKTPgDyarAbr0Lk6iMGSMZ7Yv4phJbuMO3+VA4FfOViRXIdltmsOYtKQCR1z2AAgeohYCMOvFOx2Bf4uDJ4Ty82TMn2h559QV2DddCw7LWrnF0elisCjeRStuvB2LXx9o6tcgqLvB6pNEABTX/eXitdPIOEikjXihetElo7ZVRRDpoSV8+vQBkKtfMqoaJIq523d5Gk4lUz36l96C4SJ59kvICmrrI51+VsESQOQsfsOc8MYyvPbgPmYcVTxtUrZX4Ew8wS/9j5edQ+2gK8EFKIaKdgPzNeZsREMrvbjHrpYr0nNpaiYEVvWJTgb8EqnEZZpE2GOx+nxtW/jL3VLJZ2kALlhILEqZA2VNWTa0Q3nDzYDGV+iK9GOmC3Rq5ad4gup8HdqjvSQSlJlqthhQLHXmP+aB2vvlas/+4ARVy4IUWTHNiy230o9cpNqdOeWfb95ADX7SB4jW0kF7X9majTsUl2YqWvwVEIUktCChGU9hxv4rVMOiNEiGwRK6vXq10bNoSkhgKNGYTYacQX9QfS7Groa4o/LJ+soKSJLOF6K5Tar/p0pRLeDZEC34fbHno x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL0PR11MB3122.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(136003)(39860400002)(396003)(366004)(376002)(230922051799003)(64100799003)(186009)(1800799012)(451199024)(478600001)(71200400001)(9686003)(26005)(53546011)(2906002)(5660300002)(41300700001)(83380400001)(7696005)(110136005)(8676002)(8936002)(66946007)(52536014)(66446008)(66476007)(66556008)(6506007)(76116006)(54906003)(316002)(64756008)(4326008)(82960400001)(122000001)(86362001)(33656002)(38100700002)(202311291699003)(38070700009)(55016003)(37363002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ldkc+wL3gu7pJjSHDQDv/eJtWVXPg4iSdeS8FAtcD5/hO+NUvlVGB8eae6gW?= =?us-ascii?Q?bro6YnieIuiUSOiV91g/zTt0ElGmdbc/ByplmWAQ0KrQZIOJ4BGdhtiFTT3X?= =?us-ascii?Q?pOSHqvC/MtuAb/gO8vP9mpcjs+gsIpG6cgMGEYyXDH/6tB9kwar7mai5+Bvb?= =?us-ascii?Q?ZYawgKBAyMrqjr6/3aeejL4wr5OfR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xFBn/CSPviknU99X2c9Jnb1cOYWU8y1cew3R/MuiTQm512Q8B67vSV1?= =?us-ascii?Q?vphQQy8A6BrBU+eeDuN0SR9/aLpJTWCuhWi4x1IoRvaQcXzAXUXl8l76zSMq?= =?us-ascii?Q?+7DGqz8yYlMSXVRwUS5DR3iJD2ybWpwDR9t/YsNlqcDzx2l3Gl7ZZaQsrKSS?= =?us-ascii?Q?9BitljDjnziQqPUQZhHS9et8AGF8EvXByYfPpR5J4LB/NHR3L2T9caJhvGJm?= =?us-ascii?Q?i/WAVJCspvYpISPwxortX8SoY5sGOCcn5Hc53qHgxLOwIyPE5GtoRK7g8voo?= =?us-ascii?Q?OVHRbEnoqBOzGkssynUeDJ1aC1V9lc9Q+cWL+RIPHcC7uvL1jbC+QyFFW1zb?= =?us-ascii?Q?JJBYxF6ftutV+6vkm6FmubBz1NP/31JDkANKgl13eKaFgCRmzGGGRIBfogKm?= =?us-ascii?Q?641JPF4Ayf5pPOC8sgaJN4UlI6/xVhpTDkLyRmRu1a5xTgtdW49F/FUuk0gM?= =?us-ascii?Q?LX8YCmjRUf0kfIkunDCgZkF3zh1/a2kx4UbxD+aMIpFOKqe3su5RFFwDV0UF?= =?us-ascii?Q?WQ=3D=3D?= 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: BL0PR11MB3122.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c1d9e33b-11af-4849-934a-08dbf1647101 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Nov 2023 05:23:09.7807 (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: P/BmtKFXndDthRNRQBj8X/ONt4rHwRfRAy/ycehxIQ+8IjF3TFVYYAx7Ncx7RNev9XuJdvgGKMaCrqdUNnnc0er4Nt6txOPz33WmyjmVpcjxL/me8xa0ExE5/5vqpZ/I X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR11MB6198 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 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 21:23:56 -0800 (PST) > -----Original Message----- > From: Intel-wired-lan On Behalf Of I= van Vecera > Sent: Friday, November 24, 2023 8:34 PM > To: intel-wired-lan@lists.osuosl.org > Cc: Drewek, Wojciech ; netdev@vger.kernel.org;= Brandeburg, Jesse ; linux-kernel@vger.kernel.o= rg; Eric Dumazet ; Nguyen, Anthony L ; Simon Horman ; Keller, Jacob E ; Jakub Kicinski ; Paolo Abeni ; David S . Miller > Subject: [Intel-wired-lan] [PATCH v5 3/5] i40e: Add helpers to find VSI a= nd VEB by SEID and use them > > Add two helpers i40e_(veb|vsi)_get_by_seid() to find corresponding > VEB or VSI by their SEID value and use these helpers to replace > existing open-coded loops. > > Reviewed-by: Wojciech Drewek > Signed-off-by: Ivan Vecera > --- > drivers/net/ethernet/intel/i40e/i40e.h | 36 +++++++++ > .../net/ethernet/intel/i40e/i40e_debugfs.c | 38 ++------- > drivers/net/ethernet/intel/i40e/i40e_main.c | 80 +++++++------------ > 3 files changed, 68 insertions(+), 86 deletions(-) > Tested-by: Pucha Himasekhar Reddy (A Co= ntingent worker at Intel)