From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0041.outbound.protection.outlook.com [104.47.42.41]) by dpdk.org (Postfix) with ESMTP id A71A22BB8; Fri, 9 Jun 2017 15:16:29 +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=RekGqyQ0ciCgQrw9yx827YtwdJoN1vq2GLEYZGCAVzI=; b=ZB3OOxmmTHokBFm1o17fQVRNxN18iinoy+uZ5sTED7jz6Yi/aI3qm4r0QJhguskGwX/CFOCbS8pULUeBOdP7ZQ7xPTutcfFmMqbaIqBTfbd2jQsPMGX/EinnveNHL2zBCdDrwkvXJ+qwXpiLoPImAjGT4LmfDBnSL/KT0/mTr6k= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin.caveonetworks.com (111.93.218.67) by CY1PR0701MB1728.namprd07.prod.outlook.com (10.163.21.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Fri, 9 Jun 2017 13:16:24 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: hemant.agrawal@nxp.com, gage.eads@intel.com, harry.van.haaren@intel.com, Jerin Jacob , stable@dpdk.org Date: Fri, 9 Jun 2017 18:46:03 +0530 Message-Id: <20170609131603.13483-1-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.13.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0114.INDPRD01.PROD.OUTLOOK.COM (10.174.208.30) To CY1PR0701MB1728.namprd07.prod.outlook.com (10.163.21.142) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR0701MB1728: X-MS-Office365-Filtering-Correlation-Id: 58d2ae35-a19d-4a15-8133-08d4af39bba0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:CY1PR0701MB1728; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1728; 3:yzLq7szUtOxh3p7vxAoi91qAzJQmfnPLW0RbU4OyqSOgGic2UnL5Xfu/MaZd6voJXmg3xz4XLmdMRNvM4OfKiK4msTYfrEbQ49WOg2MJNHqHWsjigkt7Gvf+MZLWkvm1xHiMK+Yy3gJXgr5jt+FTl0yIyZJp6MrOjPXbN9aPUDRhQ1gPVXgaTOAvzkMDUGJCKGN9LG5oAf1Qts8nGt+dc0elGI/4jnO51w1UfADaA61iVCAbp1nv0H/QxsEO40F9qLZlkuADgCTHqhbIsJV+w82gAX6/NiikQAzV5zjXpDmmYiUpnDM1vX5FxFsrLcYuhYJ1UUTYa+aHshUBOB6/MQ==; 25:MMkQFn5pSZMYVAsDW/uJ0pB9yspQH521vICfZsZhJyz9nWUCVsBAORfqBjWAp7QRmHRDVgTZeSYRy43Ybjvh/knqpFjDydttVDmhPOCZteOedJG10C9b/Yr3xT2pJsBUrlhCkkZReuqOjl8Qeo8r+pX3gDD4Z0eH2DTlDU04shtOZmKI3GhRlXecOOwyi4nUZH1VkmZDXHAAEDuGw5+TT/KrzDjdrhDZcsCg+6rpMgLVjNjPWeodGZnWkMQytdHnj3bKk7Vj/U0WA1tetDTSON4gzBijKIhwwH86NiLu5s/yEIhgxpwquThY7/w13/9gxs/U7gwGODgKKi/1jpHY3MDpNGJIoDEV96N3h8F/vsNI5nYxJZrMul9SNyD0lH/WSS5mraHsAMlDlvHP7npYoH7xBvNFRTdn0KpyUKHHxvO5n/6pti57r8JhtjdLetU1nOQljnL2Ry3clCFfZ4dYl/5zlEB4H7eUTo1mDX6hMdo= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1728; 31:OoNK07omVomy4QrwRzlH0s6nh8pqvoyZ2GU2zs7bkTIxV+SXaf3LJZsECqfTQ9vJtvDaSwoItyo2/lyALt5PAMPefDs7DYJ/FBfQCSlcP59Y5CbpaTN93W4V81NuYEiTe630FnapWWftJl0Cix4wLvioYui6Sj7K+0RgXrS2HbOUIjFfGyD8nLThIzCJCHZSjfWr17isXZ3njiMmoDsgL6HGDm/FbbBtFtV3R57zZP4=; 20:zSILXl6HouCiTMcFSiwvDRJQCDeg/dZAJcveV6OQyQ6s44rYr1uGSwnEvbGBS6J6XPkSa6dfCYHZVu6QzqD1dtLj9SEYcSAnGPCYYVUolpPK3zfNY9RKJcksGhsR8/ACURSwmBe+WaUd1ad8b0LbMHltQKICy2KiCek3Rx1aKwvlCJ/6V6Paq6sRM31QtvnvOQm0jzEnz3t7PjxFKphu5Ry0rfxYo99rOprBHsL1af74pBuAWZ+GwPRP2XlQB4Uc4HArZHmBOGx5G8F97JNUQEqdmectqVejd6/g2qd3qbF+oVrnlq7gRaP3TQIsE70A0OmRwbAiztEma9GdUAYaYu1cFE9/ka1YxMbtdFdrH7F2fb7btFC53Nteg2mtf3NrLC+RSwrkbUt+3HMU68mQe7R4Fl+XFTbmDrHclyGUBnPL9GZUgWNuGEWxZjjcVevJ7cwLSptU73K2sA7Dtnpqn+zbUqJ0WWyvp/AN/D0xPh6zXU/sqsxRwv8WmOAyJiTaxwyPS/DFnntuogEaLBOkgv1QZEi9zgf/NSvRHphLLj0NBaBNIOSgEmDXxL9Ucd86BhQ4RL0MoRPy4VMFtV1vsPYGB/yhnzby6Ow8w0UNcto= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(6041248)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR0701MB1728; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR0701MB1728; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1728; 4:OvUXa5yPN8HRuMD2O/VmSa2V/u4QWlQUBPF7rRe2?= =?us-ascii?Q?oOe5ZP6mhWkXwsI24PpHo6AQB0vmCvAh7b2v4SAZgvyT6cMgPq9cKcc4mMDh?= =?us-ascii?Q?RBK9AJfoTAgerl6VoitPuJIAFEORUwsG/hxJ91bTewBMJ3eiDvzZ2fkegr6C?= =?us-ascii?Q?PEiLIeYII0DyVBqe49XSO7u5AU+FSombqyo/wN1SihzMcDulYx65LJmQPILU?= =?us-ascii?Q?RW0DA3NcLYU5nMHiePvSzGAvMcwyRYfUr0PXpNWaPelOGLOzxmv+1QatsdFW?= =?us-ascii?Q?jPrdn4aNHSDeuF+qzsevPO9kypy/+lcrMTkxaeuG3d+jM38M97u3MJH6mxsW?= =?us-ascii?Q?8lw4rv0QSke3i34tCJTsdLOrtUACCIqZBEqcvVBhYCsouGZkxpQbOq8uuc7I?= =?us-ascii?Q?rhmtjoUs9BRvnQqcbnzqemrN3bBJYFBvN3jF/AKeN8Cfz4mi55oPANU5kBtY?= =?us-ascii?Q?Kq9wSZcbNyRfjeX9hCbRWKobgDlszVBM6E4jomrqVCkHM0jUnqz+//woXWBK?= =?us-ascii?Q?IpVzHMbYw5byKg6lkcD17apT9dIDnnxoHU541vr8CH35ybjIrktRSOHlcQ91?= =?us-ascii?Q?RlKAP2cBvC5r18Thh0nMHwVSaW++N88Q0U7GcxNY7DsYM9Jba4hwRCqDF2EV?= =?us-ascii?Q?lmWj7BMZIt5Z85Zy7PjNLfhGA0ncoH65TrK9+WtG+IaCaH7KFDJFf6eX6ClT?= =?us-ascii?Q?rIFrL4pL8z1OVZHZuCsfvlQhu8xHrISqpYGe185MvR9U2Qz93jorihkRtxAC?= =?us-ascii?Q?jH6q6JCSQoxuw/ECVO03sYnuzFLaThXqYaraU++DJi2webQTUV9MphcZ+4xZ?= =?us-ascii?Q?agwQgrdX8vc8ubUklpGWLj5VKM1nUYztmR8c3eLB74BYU3DhqeS3ZDfl5Obw?= =?us-ascii?Q?ZK6xWsX5zGwZ5mNWKD38PJGeLWXo5PgLK+lLtpCMkC24rUdY16Hu5ARyk5JM?= =?us-ascii?Q?wemvdIoUm2Ck9YbRRx73A9nm1lhlCV9WFyxRhw0+VygVyVH4/ObBxtB28G2q?= =?us-ascii?Q?YDyzSouKkc8mNU6v0qM5iiBVug7GOvcW106eLwGMqlynvm/4WXqmYt1lbmsI?= =?us-ascii?Q?GfWOCCpRxsH5MV/lpoOGWkJXxkS8VVd6FOVwCxTjlDAaLhAmX1ZiQQ8raYY/?= =?us-ascii?Q?By34H6EItYE=3D?= X-Forefront-PRVS: 03333C607F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39400400002)(39410400002)(39840400002)(39450400003)(2351001)(305945005)(36756003)(7736002)(2906002)(5660300001)(6506006)(53416004)(81166006)(42186005)(8676002)(2361001)(33646002)(3846002)(1076002)(6666003)(6512007)(25786009)(8656002)(4326008)(189998001)(50986999)(42882006)(5009440100003)(53936002)(6916009)(38730400002)(72206003)(110136004)(5003940100001)(478600001)(48376002)(47776003)(66066001)(6486002)(50226002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB1728; H:jerin.caveonetworks.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1728; 23:ig0h7RjQt1v8RQO8WsbnyIpwa4lBUSgswwXUMru?= =?us-ascii?Q?YItFtrZ4IDX56Og30QsjEmNAu6OZtJiLM5X10RjzlCpTlNbjCTTe30ssz3XF?=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izuzut+OBb1l/dUrihd84nxLRaGe?= =?us-ascii?Q?aK4btFGjSA+w9lbOAhyFs8GkvDpjEdVfiG8LsyKM9PPdmfF461GExj6Tkvtz?= =?us-ascii?Q?XdyNeomo8ZkCarYVH+agI94hP7wOTX2uvYYCydYZOyTOvOvBCVw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1728; 6:mqoSEi+N7XpRMq/6aMw+6Li0f80YmPIKh1TA/Pe+sTc14C7ptiT58bGPk6bgJ6rutHafm10URAI0nzmjvnba6wlZrE2BB44nLBQi+0Z10e8bjtzwnGOV5uGDm2WOdtqg1JIvb8dtjg1yaMch9TqQEFVDdU5QISqWQpxHaA/7l2P9jemdA0roqArOSB1NG2oWHdmU7vt1R37UOAxLIAAyftLFazEi0qA4zABGI784MP7LNlyo8SEBwBuhdlmDbzSMd7ZdvHNzXguNYyvDB+wQXgHQUf2DFGgZR9LRYZJuQ5wS9GjLZRwi7tJVZtAkayEyLfZbiIHMzdKDs0pfuVfibrhDzrCOiUnAFdEx2l7R0gD8Qrmqhju1q35c+E262QOYpEU+DzssVDIcRn43TxNUCAhso9RWXproQlZlh87laGT3KR1nz/16Ey9HWPQNYUKbtjqPYQNcCdA0/nSJB7UFK58Iq2qAFtpADmFJa0de2A5/3mgX6SqqHNdqLCQKXpIEgYt/GPn7a15sebDOfV3lWQ== X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1728; 5:h1NJk7+A40UWIKDwXxYMjlinmGPCEBy54tedB8oml8aVdvPMUBH+pV3pmSia9hYzULnyuWQz+HbiYL+X1Fvj4M06w0Iga8PBzln+fBPjWAQQZjYS4vTQ1J71yhgWQxIpFef9NPfRoikfAaSztUyVPDxNcd+TKElthrmoJGIVzD3qyqvew9SrmbT+2iTo60hKjjnWv5fbByNm6Ne2iFEuG58it978DYVX1lBfv41z786L4KJKbmuyJ+ux393NELDuP9yhhXooOCDBWPydxIoByEbLYlcgj/HNL7nMINA4LrxOWTaxgoz+V/G9BXd4FCzWqYyNJ1XDp5U2dxteMjsiAsCSaHCp413m4MPIHDU2H9thy3fEjOSeC14tlaUq71U/WstvndW79axmuQFU2tzEPQmm6Fg30wLW97wPFtlx89Dm+gTMPwm4XdBPzz1KsEqB/HHMRI0oj2PSaYriLq07zjQgJ8ShEtGPlGAIffu+b776b3yKaxI7CollzEoxn9Tu; 24:SKjMjyknwp0diNejfZcLdeGw783QaRjEvLR5FQ3NfPTkSUJxV1w7CI/7m5PfJz/AP2kiDKpFbJorwyNHoeYSJETJn5Hx/m8HRn8e/eNg04s= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1728; 7:TM49HpwJKqeX/3Dok7IpZIVGmxxOqwe77Grpl6eu2868uX0Z+aLP5SXWfxLFDgsjVilcAUVfsuE8tjiHH80rLVkiy/GNRdZ2QKqTbAEAe2iDb4rhdfW7X2FTka7HDtlLm6tKl2fuCGlzsk9F0GyiUbTAqfnmA84eUTf+9/AT5tuHHtb5k03BoLcGqCscP8Z0UXPSPykqdrVDSGs6BhrjMs3ngq+CHMFhsJLI3zKgnpxr1luc2L8RI1rLrIqE+/mm9ozYdDk6bHUp0/BNXGIupE9sq0Q0bRBWaW6ACQvwvD++ubFTqrCQKQLeayB31Dtrcl3UZzeCRRBrl0eI00kbUA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2017 13:16:24.0530 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1728 Subject: [dpdk-dev] [PATCH] event/octeontx: fix missing enqueue smp barrier 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: Fri, 09 Jun 2017 13:16:30 -0000 Typically RTE_EVENT_OP_NEW issued by the producer lcore. To reflect the write changes issued by the producer lcore on worker lcore, an SMP write barrier is required on producer enqueue. Fixing the missing rte_smp_wmb() on enqueue with RTE_EVENT_OP_NEW. CC: stable@dpdk.org Fixes: f10d322eff76 ("event/octeontx: support worker enqueue") Signed-off-by: Jerin Jacob --- drivers/event/octeontx/ssovf_worker.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/event/octeontx/ssovf_worker.c b/drivers/event/octeontx/ssovf_worker.c index ad3fe684d..74e89015d 100644 --- a/drivers/event/octeontx/ssovf_worker.c +++ b/drivers/event/octeontx/ssovf_worker.c @@ -179,6 +179,7 @@ ssows_enq(void *port, const struct rte_event *ev) switch (ev->op) { case RTE_EVENT_OP_NEW: + rte_smp_wmb(); ssows_new_event(ws, ev); break; case RTE_EVENT_OP_FORWARD: -- 2.13.1