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 1602FA00C3 for ; Wed, 23 Feb 2022 17:10:41 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 922324116A; Wed, 23 Feb 2022 17:10:40 +0100 (CET) Received: from vadc01-egs02.gd-ms.com (vadc01-egs02.gd-ms.com [137.100.132.44]) by mails.dpdk.org (Postfix) with ESMTP id AEF0541145 for ; Wed, 23 Feb 2022 17:10:38 +0100 (CET) X-IronPort-AV: E=Sophos;i="5.88,391,1635220800"; d="scan'208";a="19026921" Received: from unknown (HELO eadc-e-fmsprd01.eadc-e.gd-ais.com) ([10.96.30.97]) by vadc01-egs02.gd-ms.com with ESMTP; 23 Feb 2022 11:10:38 -0500 Received: from VADC-MMB01.GD-MS.US (vadc-mmb01.gd-ms.us [10.132.100.61]) by eadc-e-fmsprd01.eadc-e.gd-ais.com (Postfix) with ESMTP id 2B7A8A6803E for ; Wed, 23 Feb 2022 16:10:38 +0000 (UTC) Received: from vadc-mmbbak01.GD-MS.US (10.132.100.161) by VADC-MMB01.GD-MS.US (10.132.100.61) with Microsoft SMTP Server (TLS) id 15.0.1497.28; Wed, 23 Feb 2022 11:10:03 -0500 Received: from VADC-MCA02.GD-MS.US (10.132.100.43) by vadc-mmbbak01.GD-MS.US (10.132.100.161) with Microsoft SMTP Server (TLS) id 15.0.1497.28; Wed, 23 Feb 2022 11:10:03 -0500 Received: from USG02-CY1-obe.outbound.protection.office365.us (137.100.132.86) by VADC-MCA02.GD-MS.US (10.132.100.79) with Microsoft SMTP Server (TLS) id 15.0.1497.28 via Frontend Transport; Wed, 23 Feb 2022 11:10:02 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector5401; d=microsoft.com; cv=none; b=mNsf4n4gN+omfJT+hMFPA7fbOGChUVoi8OQ31LDhgt0SPJEaMUX+gqpFXmOrsUlgwNBzxvsPGS5ZDuZnMd+HglIRTuWdGdrU9ZlCKQRqEqhJDZlbtn3S9httHp/YFTViUZnxkL6EQ//CZolMO2LvfeolHPVdkP4SITgTce/swljSJrNsmcwWv8oKW1R2K3Pj6aKXHvyA4t12Aw1gi6edDQvJF7PuDmX8gV65vwMVLEivgZ2DE3GCJp2wEpFjrOrrzifWiHRw6clUFcDKZA8gmJZ52TiiH5g0o8xadRGweP4UUh4k5LwDZ2S9BlxAgbitpeop2EnBZps2DIAkk5D+GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector5401; 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=RmJrJNPNukPqot0NcpiXGQPBrpbQQ3JU3y09zDLz2lc=; b=ly/j/UcajOETEgjY7LaO1Gvh/JO3i8fqdkQlDjjIHOlLGjGfhONsvD9OwyrS8sMGVG6pb7Cbeq30U/vX8wqMWiVBv4OvOP1w5I/wjqdRhdZcczBVZ/hSSG9UzyWGt1XnMFT03tAY43MF2xgn7fq0KQHU/mC7HQuTll9WoCHWk4ZzA4DC4ezHrrnOxxFbPkmkZFNrZ0isLpq+hJ4CLBNO6yrp26VxmTy72WwlriJh2LBPgOkOetRzd0QtyrEI926dP8G1qDdwdPbfZ3LRMc8J0M1xaiDyVjhaWoVgDiM2mDj9Jj/WNVsIunWv2mbSK1Zl1eqzR4nM9v4A/zeS2FpAOA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=gd-ms.com; dmarc=pass action=none header.from=gd-ms.com; dkim=pass header.d=gd-ms.com; arc=none Received: from PH1P110MB1067.NAMP110.PROD.OUTLOOK.COM (2001:489a:200:177::6) by PH1P110MB0954.NAMP110.PROD.OUTLOOK.COM (2001:489a:200:176::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.17; Wed, 23 Feb 2022 16:10:00 +0000 Received: from PH1P110MB1067.NAMP110.PROD.OUTLOOK.COM ([fe80::4d1b:adab:7697:cd12]) by PH1P110MB1067.NAMP110.PROD.OUTLOOK.COM ([fe80::4d1b:adab:7697:cd12%6]) with mapi id 15.20.4995.026; Wed, 23 Feb 2022 16:10:00 +0000 From: "Ramin.Taraz@gd-ms.com" To: "users@dpdk.org" Subject: RE: [dpdk-users] Accessing packet data from different lcores Thread-Topic: [dpdk-users] Accessing packet data from different lcores Thread-Index: AdgHTW8Nf3bcj8TKR26fuGGzDQLgAQhepIJAAAGJxoAAAFp24A== Date: Wed, 23 Feb 2022 16:10:00 +0000 Message-ID: References: <20220223075811.70e65eb6@hermes.local> In-Reply-To: <20220223075811.70e65eb6@hermes.local> 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=gd-ms.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1f18cf22-0505-40ab-84cf-08d9f6e6f18e x-ms-traffictypediagnostic: PH1P110MB0954:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 1PegjzW43kiFasyidCf22hWAxTu1gmXcRgnbRO7G3uHBfPez0/YDLcGbCthSYP4zgvmc9AgTpSSycc+VyyyErmqMawfEi0SoerGGvHSaegnKk6mnr/bwzMjtewR/+7M3jFdexmW1OulBedRmCwlb13g7zpgJlxD6OltYDQ24vDlV8pMoIAs2+5GeWBe11tFYm8ajoWbGtkF3m3quVfTCIZ4n5zACL/L2+bobEzavrDff8AN4BChRRFWu7HjOf4mNlMXztKJ7fLmhZa694esQXjrqhgKPnvX8fQa7virbmGBRcaQwajs3vAd5DIHj/bMsBBMsm240eqV2Rh4xG8Gmg1OWo1QFSXoVvaVpbN3MtjRwVwvj0RilIVw8WkK7QiPPgmhOoMz8xqmTOwJ/T91P+RKrorHfgPub9lr9UJyAC8M5nSWGNM9x7q42Bk8XZ7D/I1o/EkfHylU2PvdwtTaxC5kG0UDOTYb0jL/jBE68buZZX+/siRmXTkMe/DJwcK3Ijg0G3HJ121xHLm+9ttKQVpF9jfDKx48h16vH3xlDSPMmCuITkhrtOEfWLKncku0xm++kN8rVa81auNw+/2/2cKr14VuVYT/2RHWRXG2WcBfYhOOgr9HMMnUloNaWur/h x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH1P110MB1067.NAMP110.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230001)(366004)(6506007)(122000001)(186003)(66556008)(82960400001)(8676002)(38070700005)(4744005)(38100700002)(26005)(66476007)(66446008)(64756008)(66946007)(9686003)(7696005)(76116006)(83380400001)(498600001)(52536014)(86362001)(2906002)(71200400001)(55016003)(6916009)(5660300002)(8936002)(33656002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: HZg6RXZ7ma9bYM3NHasGweICKNMjsCP2jmUZIK27SA+kruKNh6f+MGbFLMOn/71FUAys0M31iK4tmPfR7I48U+upO2hbJbsjp7LLrVwUoGLlnTpylB9DMNnFavEz1Ov75kRcrcwTWni2tRIa/n5c4g== Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH1P110MB1067.NAMP110.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 1f18cf22-0505-40ab-84cf-08d9f6e6f18e X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Feb 2022 16:10:00.4258 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7c5a26cf-ddf0-400c-9703-4070b4e3a54d X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH1P110MB0954 X-OriginatorOrg: gd-ms.com X-TM-SNTS-SMTP: D877665FD4CE5DF2352B590D4D521A57637A5B742EBAF2092C3B24DAB6489F6F2000:8 X-Content-Scanned: Fidelis Mail X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org -----Original Message----- From: Stephen Hemminger =20 If this field is going to be referenced by other cores it needs to be done = inside lock or use atomic builtin primitives. Mbufs are passed from core to core via rings so in practice there will 1 co= re accessing it at any time. Why should it be locked against multiple access?