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 829B2A0C47; Tue, 6 Jul 2021 03:38:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 17E4F4067E; Tue, 6 Jul 2021 03:38:53 +0200 (CEST) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50083.outbound.protection.outlook.com [40.107.5.83]) by mails.dpdk.org (Postfix) with ESMTP id 48CB640040 for ; Tue, 6 Jul 2021 03:38:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=s2Q4XG//Z/ybv23Trfph5KzCX0gJKJ/GlGVhbjjfIDs=; b=vhldOtS1+N5pyGSswqaE+gbJhYCBASO+/PVlXIt7kd3+VwIJ4G9xkbfFccam9aoqKoKQJwRwq0OM27+Yb5rnNVHfDEA/HcyvNb2gLm4+T5Rmf+lvdwi4aPS6ihauawBN2eMmoYfSn4cyxIuoacUq+Mp7eCtydP73Fy8llEznhKA= Received: from DB6PR0402CA0001.eurprd04.prod.outlook.com (2603:10a6:4:91::11) by DBBPR08MB6139.eurprd08.prod.outlook.com (2603:10a6:10:200::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22; Tue, 6 Jul 2021 01:38:48 +0000 Received: from DB5EUR03FT014.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:91:cafe::61) by DB6PR0402CA0001.outlook.office365.com (2603:10a6:4:91::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22 via Frontend Transport; Tue, 6 Jul 2021 01:38:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT014.mail.protection.outlook.com (10.152.20.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22 via Frontend Transport; Tue, 6 Jul 2021 01:38:48 +0000 Received: ("Tessian outbound 1763b1d84bc3:v97"); Tue, 06 Jul 2021 01:38:48 +0000 X-CR-MTA-TID: 64aa7808 Received: from e5867cb2e0ad.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id DCF59504-4076-463B-A4D0-FD6EE5CBE259.1; Tue, 06 Jul 2021 01:38:41 +0000 Received: from EUR01-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id e5867cb2e0ad.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 06 Jul 2021 01:38:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YhwgPhXV3c8Z3af9dgJc0b3cgCzZXJmsoV7VdBbZpm/5CD8pABkyRTDO1pegYYpXVe7ElpmO5NrayyH2AD6rn2HYuV3G8ssAivraAM3pVifEHYbq7Bl3kePfuCjQhyH+LR+YfxYNzVD3qmz1fIDViExoG6xUtVDgOpQ4fUWnWUjVnDl+0/H7i4iTv6E+7SmlFb3QOAfGU9eR+vBS79wDbhP62fpKgRmMGx/TvwDskbvGGdvidTVKwkWKnj70Cjlch7/t1LIC7qc/QN9XiKv54wKZaT8o1hXxKPZE/INzr1IVLY8VLYolq4hQIcko7D03HNy/IIlAt/T1B4SxWbXSAw== 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-SenderADCheck; bh=s2Q4XG//Z/ybv23Trfph5KzCX0gJKJ/GlGVhbjjfIDs=; b=NfsR2PN4U1DlthRYCaNRp/knX4bNHsmBXbxUM/NSr5Ov3/27acbqXPR+1B/6jXIkx24wC6Rnuaw8rGGfMihnPTb1mYn6niPTzpW1qSjzabi0FBuu/wVeQQNGtrKQvOA4UrzDc4TsBDtnq2IczlTgY6NfsurZj/HsNXFrDmjOcyKsnnNhUtcwyu1Ldp8+KS5zKr3IcE5m72OyxXzIYStrUgqx2wDqV4s1YN6KWt5MZToT2gAojhEgpP2Ybz4b/zy6Uu5qNsfG545BLiHL3bOVWlji+MlsongNpK6tux7DgvjT8w8ZC7BqdssXAXSCdKNAXWhPseSmtry1CPc3wycNJw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=s2Q4XG//Z/ybv23Trfph5KzCX0gJKJ/GlGVhbjjfIDs=; b=vhldOtS1+N5pyGSswqaE+gbJhYCBASO+/PVlXIt7kd3+VwIJ4G9xkbfFccam9aoqKoKQJwRwq0OM27+Yb5rnNVHfDEA/HcyvNb2gLm4+T5Rmf+lvdwi4aPS6ihauawBN2eMmoYfSn4cyxIuoacUq+Mp7eCtydP73Fy8llEznhKA= Received: from AM5PR0802MB2465.eurprd08.prod.outlook.com (10.175.44.150) by AM6PR08MB5048.eurprd08.prod.outlook.com (10.255.123.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.33; Tue, 6 Jul 2021 01:38:37 +0000 Received: from AM5PR0802MB2465.eurprd08.prod.outlook.com ([fe80::3d12:4220:b215:7c52]) by AM5PR0802MB2465.eurprd08.prod.outlook.com ([fe80::3d12:4220:b215:7c52%8]) with mapi id 15.20.4287.033; Tue, 6 Jul 2021 01:38:37 +0000 From: Ruifeng Wang To: Conor Walsh , "konstantin.ananyev@intel.com" , "vladimir.medvedkin@intel.com" , "jerinj@marvell.com" CC: "dev@dpdk.org" , "paulis.gributs@intel.com" , nd Thread-Topic: [PATCH] examples/l3fwd: remove useless reloads in FIB main loop Thread-Index: AQHXccAT3s1wm/7WoE2/tzXGvX1Pnas1K3yA Date: Tue, 6 Jul 2021 01:38:37 +0000 Message-ID: References: <20210705170546.1002806-1-conor.walsh@intel.com> In-Reply-To: <20210705170546.1002806-1-conor.walsh@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 3D8F68AF24852642B61DBDA65A4FE3C5.0 x-checkrecipientchecked: true Authentication-Results-Original: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=arm.com; x-originating-ip: [203.126.0.112] x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: 31b2db1d-52a4-4e97-03c0-08d9401ecd20 x-ms-traffictypediagnostic: AM6PR08MB5048:|DBBPR08MB6139: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:204;OLM:204; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 5/co9F1u7uXYgb3oQeK2dvCka6EHDpjLsC7UvCx4Co0m+gZMh5gDUnLujdPCxVCNk7NgGalMgiqceIilKbpvhwpAPugsOwrZ7mV1BsIdEr7BgHhfkpFzXZm+5IESY7zoslBPTja3uts4UiMG5uMCzisXZyi6GnuBIVXUI4EyiIHnyf/u8e2TM4+MiJwTbDnBLEHeHN4cLZz2iWA4jiJpArLZlcoYP87+pOHfK958A4C0NR9rXCLflgxQHIJm9N28Z2zlSaDgut6udkRGgD65ZBDjDvEHBrMrL1/1zAUtarcJ+HVGxJFaJSUPk4xf59r2qxCID/X+tJ6dzbzJ7Ih3TKjNB+6GTOSJ6bMUJpeqbHmnOwl1N+g9WjCoACYSWvRUd/uxoIuPf7p0/9FAjMACAevMDR51X08lB4755CEgcjuD4AbxXy3qjfwjuFuCgWVPHcGPf2XUfhXsPg+jPvO0nWs06zI36C1PmNRgCRMYHP985YNuzilqy7Q+nuq0xn7CRn0D1o4nIaHRxMyrLxsYF9KQDndAC3bE+G+7N9dm9beq9J+CtJ1EaY4Mzy4GafaVsyxB+BHewyrYdTuGORnjH/ZWJW6bAf1x2CYUhEr6SeorDXRoPGZLrY3kzbAgtlm2nX2Tdl+0QXohWdrw3lZ7YA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM5PR0802MB2465.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(396003)(39850400004)(376002)(136003)(346002)(54906003)(6506007)(71200400001)(110136005)(33656002)(53546011)(7696005)(478600001)(8676002)(86362001)(8936002)(52536014)(83380400001)(9686003)(4326008)(2906002)(4744005)(26005)(186003)(66556008)(66476007)(64756008)(66446008)(38100700002)(122000001)(55016002)(5660300002)(316002)(66946007)(76116006); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?5mcMf1Vuudob9eh9TkK6DzVoSpXuVPSxw9xSA2Qsn577gkQumqdGc4RVrOEW?= =?us-ascii?Q?VNJizWXv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4GocmpCk?= =?us-ascii?Q?W4iG8bFoyNRfx5djbW3fOjSlI9kyCkefdwAEVNoe3xgc/HkEmp++uEwxgehN?= =?us-ascii?Q?zySlyT5dciJSGjSbKn97cMRLmi8qxUkpBZprhGZlgFIYDMrT4+YeNU/vFkm7?= =?us-ascii?Q?6pVE4+UIv/Yxl3kSECYXwzKkP05ArEgW1eTrA5/yjua/4ijM29r0TmRyYuJ8?= =?us-ascii?Q?HjzY/z99QETtOAXsjHYZ//Y2fY0GoTEkdLykGzk/9AM8fOh5d28xdqAUR84z?= =?us-ascii?Q?Y7mHRKpyoGyVfReTvjO0Qwhp1JY8sIkB/g7iSHfNt2lRQ/Ksh6MgvOuKxOXt?= =?us-ascii?Q?WKfe4uRbF7+aMtSIQ0q+/OqUi8LIiwqOLtRs7pneUBTHjIgwDiJyLslRJs+9?= =?us-ascii?Q?k26ZVbQetc1eF5to+T1owWYH?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB5048 Original-Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT014.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: d9c31de3-098e-415d-a38a-08d9401ec688 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7ve85Xs9MJOjUzKakQTZb8qXm+PQpTys8PjO4Y0I6ENuBOqN4SXq4K+v4cySaWxta1uScvLANI6+COtStkLO5Plc4Cv8ahzbCBTimlezMO2N6iIxlDeTu8LB1z2E8MiV/vMmDtPCIUwEJ3CsN7b4WwOViKSHQWpOK8VFykEZJlcAAv/ZwadyjDzw6vEOupqTCmhTdaFZ7Dd2hY9pGp/To+GA6UihPa7+u4ld0qVAqq/+EclBR3vyBxgJWIsDVFaSwFVnn5qVXeH+uEHytU8Q3hGRKnJENo6t+vQWQ6f1R0U9Bef4t9jhBYIyrtug0WqMs5fsHlWDBh0/uWcJUNA0XjsL08O4WmI0SXWpZUw/UrkBwCv/VbafBIIx5b/B9Z0z+TA2LarniTgpLsiyKsjGuxZEjoknOofxqjNZBzHgMGi/gjd/vhQyzpBabEz3Nu1EWysQl83OVEIZQGI++lPndBquX+LGF66cbBQ0AO7BdGMkBM0r284CirRdMOHK+THHFbLz3gWs0sR1K0/Pv0yGbLwTD/Sl+iwN34butiSegksCCqxKz7OhCes85RSKTAEi4/XfkFUhfDu9aNzUa5CMhVNFw78u43qv7JftMeOfN7RlK9arZri/nJFrS55Od4qWO6iIItxitL5dBv4A7aKOcfsqSLtL/+jBzIeBvj8EeQBTsuO9tawc58zIWOB/SebNOCfKQQErtPMoF1zxZ+w4+A== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(136003)(396003)(39850400004)(376002)(346002)(36840700001)(46966006)(55016002)(336012)(8936002)(110136005)(7696005)(9686003)(26005)(4326008)(86362001)(5660300002)(8676002)(36860700001)(70206006)(33656002)(54906003)(186003)(52536014)(83380400001)(47076005)(356005)(2906002)(82740400003)(478600001)(70586007)(4744005)(81166007)(53546011)(6506007)(316002)(82310400003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2021 01:38:48.4177 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 31b2db1d-52a4-4e97-03c0-08d9401ecd20 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT014.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB6139 Subject: Re: [dpdk-dev] [PATCH] examples/l3fwd: remove useless reloads in FIB main loop 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: Conor Walsh > Sent: Tuesday, July 6, 2021 1:06 AM > To: konstantin.ananyev@intel.com; vladimir.medvedkin@intel.com; Ruifeng > Wang ; jerinj@marvell.com > Cc: dev@dpdk.org; paulis.gributs@intel.com; Conor Walsh > > Subject: [PATCH] examples/l3fwd: remove useless reloads in FIB main loop >=20 > This patch aligns the l3fwd FIB code with the changes made to LPM in comm= it > 74fb854a3de6 ("examples/l3fwd: remove useless reloads in LPM main loop"). > This change ensures the compiler knows that the lcore config variables ar= e > constant values and the compiler will then optimize the code accordingly. >=20 > Signed-off-by: Conor Walsh > --- > examples/l3fwd/l3fwd_fib.c | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) >=20 Reviewed-by: Ruifeng Wang