From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0072.outbound.protection.outlook.com [104.47.34.72]) by dpdk.org (Postfix) with ESMTP id 5FFD72BE5 for ; Mon, 2 Apr 2018 06:09:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ygK+/e8WBRCNhpf1It962GzBvUy9mvjpWuqFKArvbnU=; b=nwnLQlVScsE/BiwBaJKeSLzEzmSFgCfloi5J3GLuajVVP5+YgyiGSSG0YNiUY6om2MoUIxUboiyuDylOdulhKourCpixN7BsCJEOCSQwhI7f8FPAJMwdT010MLx06JCkOuGdYJxO4nag/116Sp/k120geo4A+GgN2Gg0tKftY7s= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (122.167.114.122) by BN3PR07MB2514.namprd07.prod.outlook.com (2a01:111:e400:7bbf::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.10; Mon, 2 Apr 2018 04:09:49 +0000 Date: Mon, 2 Apr 2018 09:39:31 +0530 From: Jerin Jacob To: "Van Haaren, Harry" Cc: "Ma, Liang J" , "dev@dpdk.org" , "Jain, Deepak K" , "Geary, John" , "Mccarthy, Peter" Message-ID: <20180402040930.GA21996@jerin> References: <1520940853-56748-1-git-send-email-liang.j.ma@intel.com> <1522160292-193409-1-git-send-email-liang.j.ma@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [122.167.114.122] X-ClientProxiedBy: MA1PR01CA0084.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00::24) To BN3PR07MB2514.namprd07.prod.outlook.com (2a01:111:e400:7bbf::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1ddd0009-d1ab-45ed-8361-08d5984f9542 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BN3PR07MB2514; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2514; 3:g0BeB2GE5AtFSOj7rDgb6+ArsfJgERj23yeRHxRcjevU6AsMcB6ozTQ8lMcIQK0F0k7cRaEE2V0hhMiX51sQijOPyLcf7KbISc1ZiOurEYZaWoiVwykmhncFxNKXaWBV7iyy5U4AY9UvhTAeo3lTx/UESXV3jzecY24zu3fEnFNA1zlGWYND/RONgb4U8+UJXHpfu4AzBcOvV++4JWRbeRy4btrn34909lYm+OfLzEO99uWWfqruCn71aO/X51yV; 25:L1wftVasmsC0qzOWUOlwPJISPzgVPr4nfV5ClE/ezPZh56tle+rrRG8UAaMtq4Tq1nNzYZBsl5RyOq4Dlepr9kZjytai7TPXleIKJFtuofazl0elbXEeE1AHFQnEFBr74w5uvY5Js0ekpLNjXIfufRg3DbECz3ggPGacBWhJPNQGDWE0kwxj/RKTce88G9fRnaqUhabxg2d8SHs2UVojxstrF6TFrP2OxX9tYqgg4OUYHcfMTdteq88YzRjXpiO/FeBvQ3+D1eWVFntJ/3RqpA27GGjjJTbf7t5HYU/Lpkh51TAGdIHGVhYHkKh2oO8yiZl+oRKi8a2iDgHB097HdA==; 31:ErJMWm3HNq6w/3oMieG4iYklOft6e6R1bBuRt+54nkgzA4hI6rrZ+ZXkGDTyt6nCGmHD0OY5PrqQil2HtrXNTfo2KSSnmiXpNLFl9+9vCjLNgaAnCmHHpttdwvBtdd2M5NJEzJUslRhKno+naFkTNqC7/YVoakyNsm4G69bx+4m1wATmQSgBvyW0H+/wB+QLLUCtkC7Ho0WpBsCKkGTpEm+ZOzkz+14SMCRIyYcS79k= X-MS-TrafficTypeDiagnostic: BN3PR07MB2514: X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2514; 20:p4XpkViuwThXl0mHLXTI2fwYnF22Pmvu89ZepCPGyd1qL3mHpbfkbRfKxO36x1cH2wPIckQlq68zg/Q2VpCs9sKeoE2csEbnkzELf23K4WtKsCHSTcZFqhbrP4ftwRmV2yE+B39mM9uncedVoQttIiBbN2bfe7lMJDZoY5rpbaDifsyK3hqimwQwBwjIIp0CCC4EJW5i33ntYKCeZgqVuEMtGIuNz513LbHJfk6jTQ35VLUxwG8avXWHqHFc/K8BDGTcwEQRffz37YSTc2pgdWzX1cOGVN/+vr6Ekn9CdAZtc9cRHMAKzSE4rAVYnhtPsVPHTKAgtohzPX3YBXmW46RQ4O0X1IKFI1me0QQXfEt1bNQ3wMMkKcK1Aog0yNIzmBeHnRc4O3UuhyCgNY4RZqzJWJq1QuI6M6h18S6ItSNoZ7y6EtDRScxD6z1bjchtNAW7KgbP/4aw4Hf3FhNBI6tbPo4t4aiUPphCfSGcdBXqNHNKWr9NMLi09tJu8RKfgil5+bAzEb8UacIUioEbHgJSXp3Sl61gGSwpLSLFpVp0CujOUPyJTzMplyb+RRe96nP1lG7ruB5ikAKgX8rgqDPZW8/fXR2lCiMRArx28gY=; 4:V14SvnjKvWNTSlSnCcu8jV6G57nJNYYE4A2hl2adzuM1iw50VHbrfYBShyBaG9c+fXz/gf3uXBw4VaXVtXWDT7+37x5SsRdHGyzQSxC2WFBCwUo9mrUC2cxSTkDpAqO+OxMoMwOwS9a4F9WZ44AX9AtcqWcElz5ni6ONYRr9KN0VTRf2jd2BpPMHE1YEJgdBHDDITnyoCZzhJCgQHpITd8hmOdoAu5ECo9Sgh1cNC7p1ZyP0nWy+KqNu6z4OCt71c6PJrcRhYqbIxpTexEGMN8SOaqXfRIBs4ETVSBnIFlIPZ94NythZWgqqCJRzEYiQ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3231221)(944501327)(52105095)(93006095)(3002001)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:BN3PR07MB2514; BCL:0; PCL:0; RULEID:; SRVR:BN3PR07MB2514; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(396003)(376002)(346002)(39850400004)(39380400002)(366004)(199004)(189003)(13464003)(26005)(3846002)(6116002)(7736002)(305945005)(23726003)(1076002)(2906002)(33656002)(956004)(229853002)(105586002)(486005)(486005)(476003)(106356001)(8676002)(8936002)(6916009)(11346002)(446003)(81156014)(478600001)(4326008)(81166006)(5660300001)(47776003)(25786009)(72206003)(66066001)(53546011)(42882007)(386003)(6666003)(97736004)(58126008)(54906003)(9686003)(76176011)(53936002)(55016002)(16586007)(33716001)(59450400001)(33896004)(316002)(6246003)(6496006)(52116002)(16526019)(50466002)(68736007)(186003)(18370500001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR07MB2514; H:jerin; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR07MB2514; 23:WqVCYXjb+r3q8xsP5Q2EYVwboRx7EupsOQKZ1AlE3?= =?us-ascii?Q?rKgxgUeGjz5218EymfUTtpXyBCZHDiqk43pEf8VPbjTaDbDYsWdSP69dNZ/T?= =?us-ascii?Q?LzSEUDA3zE+ShKOz5XBqG6mmlPGTFuWJfRQHoOr7QU1DRUtLZNlkPi54CNLm?= =?us-ascii?Q?JB/g7be5+POfV1mutieF0foACFE8pYg1nMoIsPoZ0RK0TW1F9jCGgCC5eb5q?= =?us-ascii?Q?gY0T2AavFoPaIT7g7SbOPpRbgQ+xUrN5+Uguiyy40ZNHI7VXEjx9shloUPPA?= =?us-ascii?Q?ZDIPN5ruF4iD4TfgWDbspEEWqrWXNtuxZehnUrZYbuhplqDnGklBiJDaN7H1?= =?us-ascii?Q?/Mocj+4KgcPAg68Jb38rDA8hg0MH1ru1wYeNQxTG5w6gIJCVjkzmPGV8JKMM?= =?us-ascii?Q?RmSOVDo+dajch0HhwZLLMUnDhCvkB5DQ+EjNX/fKEKboMCMkB46YnWxAoSGn?= =?us-ascii?Q?MleKOoYdVtkoRloy4ScpcjscJHbhqts4GebgNyO7iBCApBaP1yolMrd1vVMi?= =?us-ascii?Q?k/defb65kxcYcgAqITejw2ySjQy5joDMxC6S8uUukL3hU0W84JrVCh8RToXO?= =?us-ascii?Q?oRTtlatAojDm4RaHU4KhWIcSmOlGYIfXP1znf8QKDW0MG01LVXhDH7U/K1Iv?= =?us-ascii?Q?92anXXKyOCpCcP3JD3cKvMOjSn1FjOFZROXKXC8Y3Ces8gy0cdPU62Izltla?= =?us-ascii?Q?AO5NQtifYUESMs3xqdtNx1mQskY5T6nN5RAtueNlbpKor3dHSkAqKfJm0hOf?= =?us-ascii?Q?Vp8IMYu/ikRmNQVSc2cEFQ0QlgOV4nwg/cSLWoZJub6emjVaf2FpN6cE25eO?= =?us-ascii?Q?zWiYc7lIPx4izJ2kja5uSh/KyHQFaBPVBwmsrb0jkuu3bb9X7xh+kmSfXxSY?= =?us-ascii?Q?D939DFN3MURiabYPVjnFgZQSc6JrltYyrUGa/dP1RVV51vyitnCidneRnc45?= =?us-ascii?Q?tb3pPJ79t06cl3sqZB1YkEpS887MF/b9VI3raYClomF5lk3muOO9759NcrlJ?= =?us-ascii?Q?FPnPtexAubrhZCYLhD4maeHr9idHY8wcKshTwze6NgXTyoMRrWoCUYDSfIFu?= =?us-ascii?Q?rxHpzntOBsLLYRh44uh5tAOqFyDSs9AB+URQuQfM+6SazzRj+Zm/O9/AjExS?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fCZm2sftOMnxVqo4zgUqZNrlU6ZGtUbe5S7a2CL06Z29oOnyY+gAW3riobzR3z9rhZdqUAK/Ryo5ZxtAnGZFbqigaCvc7KsNbX7ghwmo/Cgr+g00SF1LgzTDE7bnw==; 5:Gxagacb3b9Eq3FCBMeMQhP0on6evOMOjBx5rhVv1AM8RLFArkQBLBZMjObvhVt/yo8x38s7+jI9drQ+f9/qFQ9drjwkvJbsWwr7CuUaV0StTYqtNbHC3R+3L1eW/iHlsDWJxbYACEYqXcp2JwWlw1y+DXDJTbLCD3rIt6Qs45HQ=; 24:9ZtbuM2SGI5/Mmv/8FG/zKuuxI3LOLQEdCDZHCorCMsIvT4uVnwqxi0s4BS4pMoqCS5VZQH9lGYb0VNp8LjodOdCrWvWPBKw0BGuKiUSNx0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2514; 7:b7U4TdiNOsd1Tc8RCgFOjLJf4uVjlt6J/3MMuWFXt3tXmEpkIZlymMrxRlfSltHL7jFej3sJflKCTaGirvUSSoCT+U67M73pdYKVK6bLYh14nskLxEAldOS7gkO/dEpRCF+WmrIUcmofNU0vbN1Y34r6iBVkEzXxrGfR5UFYc3e9eGHiDRZmKMU00Mnt9uzZzn4lv+C5q6FhjQJADyDWoeL3axPGwmW0APoc3aVHp8d9rzygknPGW/6AgVWhbXVK X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 04:09:49.4677 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1ddd0009-d1ab-45ed-8361-08d5984f9542 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR07MB2514 Subject: Re: [dpdk-dev] [PATCH v2] event/opdl: fix atomic queue race condition issue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2018 04:09:55 -0000 -----Original Message----- > Date: Thu, 29 Mar 2018 14:48:26 +0000 > From: "Van Haaren, Harry" > To: "Ma, Liang J" , "jerin.jacob@caviumnetworks.com" > > CC: "dev@dpdk.org" , "Jain, Deepak K" > , "Geary, John" , > "Mccarthy, Peter" > Subject: RE: [PATCH v2] event/opdl: fix atomic queue race condition issue > > > From: Ma, Liang J > > Sent: Tuesday, March 27, 2018 3:18 PM > > To: jerin.jacob@caviumnetworks.com > > Cc: dev@dpdk.org; Van Haaren, Harry ; Jain, > > Deepak K ; Geary, John ; > > Mccarthy, Peter > > Subject: [PATCH v2] event/opdl: fix atomic queue race condition issue > > > > If application link one atomic queue to multiple ports, > > and each worker core update flow_id, there will have a > > chance to hit race condition issue and lead to double processing > > same event. This fix solve the problem and eliminate > > the race condition issue. > > > > Fixes: 4236ce9bf5bf ("event/opdl: add OPDL ring infrastructure library") > > > > Signed-off-by: Liang Ma > > Signed-off-by: Peter Mccarthy > > Note; compilation flagged as failing on patchwork, but its due to master build broken not this patch. > > Acked-by: Harry van Haaren Cc: stable@dpdk.org Applied to dpdk-next-eventdev/master. Thanks. >