From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 458FEA0C47; Mon, 25 Oct 2021 07:47:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1931D407FF; Mon, 25 Oct 2021 07:47:22 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 49C8B4003E; Mon, 25 Oct 2021 07:47:20 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10147"; a="227023097" X-IronPort-AV: E=Sophos;i="5.87,179,1631602800"; d="scan'208";a="227023097" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2021 22:47:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,179,1631602800"; d="scan'208";a="721396976" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by fmsmga006.fm.intel.com with ESMTP; 24 Oct 2021 22:47:19 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Sun, 24 Oct 2021 22:47:18 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) 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.2242.12 via Frontend Transport; Sun, 24 Oct 2021 22:47:18 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.176) 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.2242.12; Sun, 24 Oct 2021 22:47:16 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f/kNFFJ/OS1EvTHtCK0vEQIzy57spTTk6VHwbl8FyVPquMkR7jbWz/bG+D+PtWQPB9N3fBWO0WLtAhCXBafDCpqSbQ3vSQ2RiYfEm3ckL7Ou3ByUkuiipZFQkfAFGufU2ZwRFP5pXicU2zHj6wqH9lPQTR1290hkrwdtea2GtRD12FerF5JxuJ3vzSsEq/M3qymUvVeycwrRRaxBK87NCb2HYiSYawJoFjI2Ix6V4Zwv5Fsxoom98QfqJSPS4goZ7s0k0Dk23ac7fGCH9RBL+njBEen1paqWo11eU7ZxIi6nig5kq5qw86CKfHavJpWPjyhLrAXk1KsqyNoMq+UKow== 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=LXNPp0FNEd7GfuNQrJCEUFjSsCyOxGCmczDgHjrrF+I=; b=lOFrCkW1kITfIQh+SP+7l/CcWYWV9ciV3RGSpd1AWkvGY3Tc7trdm/JIGUCS8+7nVLwDeETEsRelQVc8zrLwX3UHOgpjOj5sWyWc/1rpCF/DojIkrQPZmONRjgh5lbYHCbTT/M1TJl88CjotBHP2ygQxMy3EcOjrKPLHEwRmCjn7567AZ2jG0wEkNWITZiyCJT0jB72f5qSLZ2W5laqgeBjdhPuCxQo1nv3t8pax9R/FiC/dvH7Q+PL86SA7QXHptZg3sVakwS5o1iVqDEFgd4XAx7BO+AXHOBYNPnxYejiGqqRID3arKRXrMVvPUaUxYiwXC8yEP1BkW6xEje4jrQ== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LXNPp0FNEd7GfuNQrJCEUFjSsCyOxGCmczDgHjrrF+I=; b=QWKOSepVTh3dcm3jISVluL6labVYUm+2AM2rdqersfhZUyR0/qijoDghSXg/KGQ+JKrgYtrprufkIO1bhTCRHFHlUzKSfYOSP8GbSuKtoOcEeF87+1dBB6tGlA6xizX1aqEj4HZCuAAlDceGLHVK7P6uRx2jXeAYRbxedHA4nxA= Received: from DM4PR11MB5518.namprd11.prod.outlook.com (2603:10b6:5:39f::18) by DM5PR11MB2025.namprd11.prod.outlook.com (2603:10b6:3:8::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.20; Mon, 25 Oct 2021 05:47:14 +0000 Received: from DM4PR11MB5518.namprd11.prod.outlook.com ([fe80::a1a3:f5ec:2121:415c]) by DM4PR11MB5518.namprd11.prod.outlook.com ([fe80::a1a3:f5ec:2121:415c%7]) with mapi id 15.20.4628.020; Mon, 25 Oct 2021 05:47:14 +0000 From: "Wang, Haiyue" To: "Yu, DapengX" , "Yang, Qiming" , "Zhang, Qi Z" CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH v4] net/ice: fix function pointer in multi-process Thread-Index: AQHXyWLzzKa40W/sCEy4r2+E5bT5N6vjNJ1A Date: Mon, 25 Oct 2021 05:47:14 +0000 Message-ID: References: <20211025034050.1089628-1-dapengx.yu@intel.com> <20211025054029.1140977-1-dapengx.yu@intel.com> In-Reply-To: <20211025054029.1140977-1-dapengx.yu@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.200.16 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 48119a33-5cda-48cc-cd08-08d9977ae599 x-ms-traffictypediagnostic: DM5PR11MB2025: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ezgkj+tiq1fnkkcdt0gXJoMrd44ZvdS3JhjDuovcNntKuKWZHu33E7yJwGF2h1VieSsG+fiPfpG4XV4lETX7TaIPKR8uLf60V3vmFGh7qPGI7zejXo7zp8EtrqM1FD9UPakK2g6Nad2ULr7DEHBBp4IUt9JxzV7LQSx+V8dmQJzsKRKcu3LmCXmKRcU1z5omC53ZkxpYtXRTJqw0r706CRqlV58hDIVZYPoKVkWW3UHQ03wFs8OsVh/VojSCm5VQPLvCsmAPNk62xlGUGRvWn3rID7ReY+OOefMTABJYNArnPRe+qJ8p7R0pYWb77jChVBTMCrp9d0gluLuK3vC6bxKlQPoNQ2DEuRGQf7Q2pCYVr3sEJo5J5E19AUnH7x/kzyA65NfCXlLE/C48Ny8gTUaBJxCNpPruPdp8ZlgZ4gGnJZiIjw1QNhBRVjgMkAOjPQCKRJlelY+kXRSVnVYI5XaHo6fTiP+Id5mpzLN0MbqNPq1g/GF3zKYKrMhHpMXpxzh2S7JWBo9w4uAivibpkeEb0eZPqGJnAh4gyTRRndGNLdYHsq4QNOJsGyI1qVW3oO8Li+SY18HwyXKq+l44uz9bpHFpJ8fIcV2zbUf8FSMBuTlFbsB8W7nYlGEcE11k7LO6OTcURnalQ5WMZgq4EoPEp6j8pZ2bUx4pEMamkdsrAosOAHfZSGX4XlHkejToY45dfi2S1F9Lm6sxHBVdlA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5518.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(26005)(66946007)(66476007)(64756008)(66556008)(9686003)(6506007)(53546011)(122000001)(71200400001)(316002)(86362001)(4744005)(38100700002)(76116006)(52536014)(186003)(66446008)(450100002)(8676002)(83380400001)(5660300002)(6636002)(82960400001)(8936002)(33656002)(2906002)(508600001)(38070700005)(4326008)(54906003)(55016002)(110136005)(7696005); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Hnl6xg271Jarp1ZbL/DgSCotKexqRaXBrkzN43TntgE8l7vVCg8c2FxxxV1m?= =?us-ascii?Q?h5znI8Xl1V95gQxO0rGNsGZgVGgZZ1c2lL8V/49vWR6kmMGSF/0vaodooK11?= =?us-ascii?Q?H558QyBroJnxb4ssYHxH3KkhsccIbb/JwknLcEuC/jbvY1LIlxeUNmwUmj7S?= =?us-ascii?Q?Tc2a6xOsgzSg/qG9MfuEDGgtZK2068K6TRRpJWx9Oj+jjClUb92wc7A80qm0?= =?us-ascii?Q?devKwm9MSOwl5GmJ+VRHLkPOv9teUC6dif5nl70GTIUm3oye9tOSP7G+9wAf?= =?us-ascii?Q?It/uVa2TgltiuzmFyjKhCry1eqTCGmXPUtcCFTcNOPFNFXronfivR4Jl6Njk?= =?us-ascii?Q?gBkCSBHCoOB4yasvY/R0osrAMQXxdM4lEZwmre/G+gVm8fv8udScOLcpVVNw?= =?us-ascii?Q?UNPZrTjulTud5Rz8xU0scR2PZMIaxMi4zF6+a1jbq7w4xAc/Cvs5xK28EkQg?= =?us-ascii?Q?wg68C5z0838Pq5ZIui4sgurtI4JPTrkG2zhlvOX5L8Lu2H803wYRGB99pWDS?= =?us-ascii?Q?1AeIhuewVxoDV6hp81SDbSjjuxDODrFIC0k7MNxfK7Y4NDtdlW52fQBx5uEj?= =?us-ascii?Q?+nNRcxdPJUwahgDm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8U?= =?us-ascii?Q?8g45BsoHHnlZirrW3MN8ubI0utgqzrAtEsZoAB0V2Q/GN+wFA3YqdfNy7B8T?= =?us-ascii?Q?bAOdjmmsCS2XPkVKg1UjGfbYIQDq43Xzyb+JxNKbzmtT/+owpQJb/vJyHTds?= =?us-ascii?Q?ZQ=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: DM4PR11MB5518.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 48119a33-5cda-48cc-cd08-08d9977ae599 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Oct 2021 05:47:14.2078 (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: fjuFZg0AnuHZn689O2QPGay2r1W9DRiYDN3ibwnUVJsmWc3gBjLPS687SAN9wLJC9YRKOPv+dZr/m9hP25aTjg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB2025 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v4] net/ice: fix function pointer in multi-process X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Yu, DapengX > Sent: Monday, October 25, 2021 13:40 > To: Yang, Qiming ; Zhang, Qi Z > Cc: dev@dpdk.org; Wang, Haiyue ; Yu, DapengX ; > stable@dpdk.org > Subject: [PATCH v4] net/ice: fix function pointer in multi-process >=20 > From: Dapeng Yu >=20 > This patch uses the index value to call the function, instead of the > function pointer assignment to save the selection of Receive Flex > Descriptor profile ID. >=20 > Otherwise the secondary process will run with wrong function address > from primary process. >=20 > Fixes: 7a340b0b4e03 ("net/ice: refactor Rx FlexiMD handling") > Cc: stable@dpdk.org >=20 > Signed-off-by: Dapeng Yu > --- > V2: > * Remove redundant code > V3: > * Fix incorrect switch statements in V2 > V4: > * Combine similar case statements > --- > drivers/net/ice/ice_rxtx.c | 32 ++++++++++++++++++-------------- > drivers/net/ice/ice_rxtx.h | 2 +- > 2 files changed, 19 insertions(+), 15 deletions(-) >=20 Acked-by: Haiyue Wang > -- > 2.27.0