From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00089.outbound.protection.outlook.com [40.107.0.89]) by dpdk.org (Postfix) with ESMTP id E369A5681 for ; Wed, 29 Aug 2018 12:49:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Yw9yvwReqVofWynEvTvz3fpf3K2xxxuZYhA9fJ70kXY=; b=KG7TcMGVQ7+xEWXfuWNnmIhHCRaXidlAAl8H1+2ZNryGu3Jaov4cTUOjQKbjmkYlQYSAuPJ3vvyPWXZaeNPZVfWQOhw4APPZ1p/Iu3mYPp4o4143/yucF3qoNlt3hrPs9Hap3/uszggezc3MTwsQO4OFAb0eTiTtZN2mpZRqILw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 10:49:54 +0000 From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: dpdk-up@NXP1.onmicrosoft.com Date: Wed, 29 Aug 2018 16:17:36 +0530 Message-Id: <1535539660-20228-10-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> References: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::33) To VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 54eba6c2-6bd6-4404-213d-08d60d9d27e9 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2543; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 3:oq1CA1Z0SZM+mFPItDkh+hLWJpkecooIVwUEqM0Zvxca+f70/RFvmGd71nL2rPensCEjso6CE2HbJfOAJ8dD7iahBPl9IL5G6WxObdqWnhlQu3ZbtEzHnpEx4rBybCbO1LMfDN7WcNSWemxuF74Vxm95go0SIG6S4eerVPu2YZko3iaiAINBJ9BYoHXoL63OpWE6z1XnJqpbnqugpoGQ444YYRqWFiA0I+r/RXxUQ8izU2J55Te7OtgsSI1Otrkd; 25:JkRVCQ2JCQxlMtnLUYLSSiKGiLnAgGEShNi5Z1zCdn6uDvSh0gZLfKL29hkzFLYTraakwro0OakuCPdnQ7yB/X3ESoZjFdpDPoxQBfTosea9kcxRGqPuti+F02vRdhKUO4RIeDdbq6LZpn1ueDQdq3Vy6QEtJOeKgumbemFrqNxSFERfWOKYgdpHuvrw4IvnW4u3ZaTF4n2WVepIisqQEa62q2joN14FIdWA2+inufGadFeytddWCVrBmIEKiPbloI8XxShTHZw3yMAMM8P3R4Uol31g+wokfuAzJ9twAvhalTbc6Omb23ndT/VlMCpF42glwQMiToitoY6p1ndy1A==; 31:30iLB6ioIj9jf/Qgy6WXoJSoN0xfm8awaMOfyLI3joNq+9bgfUQx6eVs+AG1k/OrsFSymDy/96bUUsUlkq5bTanuXFM2Ve7fHELP7oVlZjPDQJayt8bqKnoBQ5OFjqFYcG+ZIx8KfnLdexYAwMqBLm8Lsjne3LfAIUes+/o4w1CcSycUtJMBg8KUcIc7/3WbgZAFj+PQl1JF3a1LOKHzfKTfQV4oS7xjAIikZfg/npY= X-MS-TrafficTypeDiagnostic: VI1PR0401MB2543: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 20:0q4Vk2Bel/56Y8cy1XKaLO5tGSh2bRIXYJbtMaHeXc+HaKm3sMumt3VbJ+cdH0c4It7kujXU+nscSQ6GKCp+HdL6g3hb2ohYkpHyc+sshEmaVjKjOj/diSqbTNLd5V8SYiUyIRQBfLUgyCbU7cJlWH5XS7vtV2uLLtVtA48CFA+X//qM0FnOIbeyVeDVKKUHE5qW2Ax3kuhRCsjOqEXjahgFu0OoW1RkX1jsnO3qW5CJgCVgHbByVyhwsEckkZiBUEqa0UxSWzQTTPiWZ2Ip+R/u2x8g64DTmkTmBCPic3xIKgLX1fTIRA/ynJM/OZp2826In2/s0RGY3fKq+V4Q1CzRDsN5li5hLo6cGuZc8ajLSIWoYH46g6jZMnv5ewQtrT28hZ/ZRxyFe23G64rD0S3JgSUeB9dnvVD22jsDwZWrqCNpOwbd9vKJVO4beO9fMLqnC5Ss4MPKUk5iOJw4i+LR842/VPDvCDZQRVZXIMbdLc4wjr8u+pO/yBwzdpx/; 4:pSMBr5fXeLSLQBjVcvrNtS6gQMLqhLjdjPLW/KNRFgg5KrNXCYVjzdRD1l+JSKUXQZPvUjQq797Z+ju8u4oPxqzsiIvQ6h0yNwARVM/TvtxFcgRv4kCwP2nu6Lg2C/x6yukE9jFCTdU7EydiOdonkYVL0SO5yVFnqzRLWEVWv7jbWmET0Lf05F7mrotKr1mTpBHqHDskash5LAAGPSYIIxHvssucpr8eOeNXmheKiIMj3YEHomtu4lulUsqk3IiPlyRQ0HeBKH0NtBEWNCg0sSW0WF9g1A5t7s4fMsXcaXASub9ndBEdUBr3CMDoXQ2l X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699016); SRVR:VI1PR0401MB2543; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2543; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(136003)(366004)(396003)(39860400002)(376002)(189003)(199004)(6512007)(6486002)(16526019)(53936002)(486006)(186003)(11346002)(105586002)(6116002)(106356001)(5660300001)(50466002)(68736007)(5009440100003)(2616005)(25786009)(48376002)(386003)(4326008)(55236004)(6666003)(73566003)(86362001)(956004)(107886003)(446003)(3846002)(26005)(6506007)(476003)(316002)(52116002)(50226002)(478600001)(47776003)(66066001)(8936002)(16586007)(76176011)(51416003)(97736004)(44832011)(81166006)(8676002)(7736002)(305945005)(36756003)(81156014)(2906002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2543; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2543; 23:mJrtwFHwUbCHZrKTt/Jj2VlF+yV35Yx4VlL6ixW?= =?us-ascii?Q?Ff91WYlRrsULozDRpsRO3DJwI2OFfeAXLBm1/9/knDN58UL2sD7FYSJIdn+C?= =?us-ascii?Q?a3Khdt2ERIQvqzj4i9dkQ6ExqvWZ9wasF5pA+rVQnp8DOW+byOF9L7Wsko3x?= =?us-ascii?Q?PbxJEvycTQb7siBkKBn95qgCA9lq5OxqArOtZYfzMKRnrUzXz1cmoNL4wBMk?= =?us-ascii?Q?j19X1nG9UsTkZ6/KM+G6sElChnR35rx3/WOnxAUyCDRfrAlljygrUPr1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TWysVfKu6eMAB2nWCRmajbPJiooBg==; 5:C0xeGgxysdWwWlO2KICgpBFrlIj8hc/qvi2w9/PxjEh5UFGCxgP/yKsT+yBFVQZA+CTbaGTHSi1Khv4CDwpWzLGFJg/5hEzwXskFmVaEX9/hn/GFDECe2T7vsxppDpu3GCSBDUmJDf3r7Zbqj/E1VYcP0at9H7znRCLat+d1vUA=; 7:F+IHqTdmJdnjZa0a8axdB7nmbXyIjVBhwyHMIerCeAiuHhgkH+qEG4E0RzcWHua4Ovogr3SpSuvxJhw6GUn38VkpifF4+oZHBSuTDpKCzSCpVmMB61w4+5xsGfIRzDYOauYifxC/RXAAgseNgJjWG2hgeJFDkCIkcZzVyOCFX+1U+si/7eQETFSD4slEF7diGpwtU1vSkCONOT1LeQSLhLiUiOT709+SReBWJ9jLrEhdCsrPEUW2T05wjBsC/W/m SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 10:49:54.2233 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 54eba6c2-6bd6-4404-213d-08d60d9d27e9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2543 Subject: [dpdk-dev] [PATCH 09/13] net/dpaa: rearranging of atomic queue support code 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: Wed, 29 Aug 2018 10:49:56 -0000 From: Sunil Kumar Kori Signed-off-by: Sunil Kumar Kori --- drivers/net/dpaa/dpaa_rxtx.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/net/dpaa/dpaa_rxtx.c b/drivers/net/dpaa/dpaa_rxtx.c index 3a3a048..6698c97 100644 --- a/drivers/net/dpaa/dpaa_rxtx.c +++ b/drivers/net/dpaa/dpaa_rxtx.c @@ -870,6 +870,19 @@ dpaa_eth_queue_tx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs) DPAA_TX_BURST_SIZE : nb_bufs; for (loop = 0; loop < frames_to_send; loop++) { mbuf = *(bufs++); + seqn = mbuf->seqn; + if (seqn != DPAA_INVALID_MBUF_SEQN) { + index = seqn - 1; + if (DPAA_PER_LCORE_DQRR_HELD & (1 << index)) { + flags[loop] = + ((index & QM_EQCR_DCA_IDXMASK) << 8); + flags[loop] |= QMAN_ENQUEUE_FLAG_DCA; + DPAA_PER_LCORE_DQRR_SIZE--; + DPAA_PER_LCORE_DQRR_HELD &= + ~(1 << index); + } + } + if (likely(RTE_MBUF_DIRECT(mbuf))) { mp = mbuf->pool; bp_info = DPAA_MEMPOOL_TO_POOL_INFO(mp); @@ -916,18 +929,6 @@ dpaa_eth_queue_tx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs) goto send_pkts; } } - seqn = mbuf->seqn; - if (seqn != DPAA_INVALID_MBUF_SEQN) { - index = seqn - 1; - if (DPAA_PER_LCORE_DQRR_HELD & (1 << index)) { - flags[loop] = - ((index & QM_EQCR_DCA_IDXMASK) << 8); - flags[loop] |= QMAN_ENQUEUE_FLAG_DCA; - DPAA_PER_LCORE_DQRR_SIZE--; - DPAA_PER_LCORE_DQRR_HELD &= - ~(1 << index); - } - } } send_pkts: -- 2.7.4