Message ID | 1535539660-20228-10-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp522207ljw; Wed, 29 Aug 2018 03:51:14 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaciPCuXK8iW7THaYbPCuNbeFrLc9mLkzCqS2KMpQ++IvDcvzY9Hg29Qcco4uT1opsMYaDC X-Received: by 2002:a1c:1584:: with SMTP id 126-v6mr3904955wmv.24.1535539874174; Wed, 29 Aug 2018 03:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535539874; cv=none; d=google.com; s=arc-20160816; b=WbdGXxZZ8zhPxRo19UeHky+UuI1N5x8EF5iA88kXhUncXw62rtgwxbgheR6M/WGQOD A/OGQiKajRu6qBcuRaq3c/LlJRnMaFyGN7L5mJ8QQnVEqW8AkkCTd0PT5JdueB+uk5lR HOVGwbQYzaKOoyi6928UcuYGa8CNqaFh2VHuA09yZ/zsUeOcFhAL49QgFKzgk86gqVBE HiZ5IV5wHzXEtZhKm8aq6FrrEYwa7vJruCGc+vcKW+t2+BIyHDKzscK31oWGemw1Ph98 snpreH2AXoXyPKwbnxPclT4z7xq2SMS6Za2ZK/U5LbJRxBy4E3PqtSI7hs5MA02UEypV u9NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=Yw9yvwReqVofWynEvTvz3fpf3K2xxxuZYhA9fJ70kXY=; b=D5HhuS2uZagmT0DVvIhTmqczQwNKwjJpIYc5T3jLn3IB/xGzJ1Ii04L2WAvkDmot4F KvOCSilLAhhV6X7/QV1moXzC6FaNoWH/JavSyZNg0Q7hJVg0CeNPQiopn2MoNOSDc0W5 85YFEgCTfOvDbyeUhqIdU4FfVBrilvP3F2lzSgPNtFS67rbqMwtZMlZRHGZYtY8ednsi tX/g2z0dV05XsSD/V7aw+QMO27yk7ztb7OvbDV6Mf0/878pppeTxpE7IShHIw+Bnup1n Ayec11XfaCwQ9O25l9XW3S4MHDkEkgbNyiLHFpm3kLdkTLhkOXflhye4rnwBTq51pD37 TRiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=KG7TcMGV; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <dev-bounces@dpdk.org> Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id g80-v6si3240828wmd.195.2018.08.29.03.51.13; Wed, 29 Aug 2018 03:51:14 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=KG7TcMGV; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 356BC5B12; Wed, 29 Aug 2018 12:50:03 +0200 (CEST) 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 <dev@dpdk.org>; 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 <hemant.agrawal@nxp.com> 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: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XS7vtV2uLLtVtA48CFA+X//qM0FnOIbeyVeDVKKUHE5qW2Ax3kuhRCsjOqEXjahgFu0OoW1RkX1jsnO3qW5CJgCVgHbByVyhwsEckkZiBUEqa0UxSWzQTTPiWZ2Ip+R/u2x8g64DTmkTmBCPic3xIKgLX1fTIRA/ynJM/OZp2826In2/s0RGY3fKq+V4Q1CzRDsN5li5hLo6cGuZc8ajLSIWoYH46g6jZMnv5ewQtrT28hZ/ZRxyFe23G64rD0S3JgSUeB9dnvVD22jsDwZWrqCNpOwbd9vKJVO4beO9fMLqnC5Ss4MPKUk5iOJw4i+LR842/VPDvCDZQRVZXIMbdLc4wjr8u+pO/yBwzdpx/; 4:pSMBr5fXeLSLQBjVcvrNtS6gQMLqhLjdjPLW/KNRFgg5KrNXCYVjzdRD1l+JSKUXQZPvUjQq797Z+ju8u4oPxqzsiIvQ6h0yNwARVM/TvtxFcgRv4kCwP2nu6Lg2C/x6yukE9jFCTdU7EydiOdonkYVL0SO5yVFnqzRLWEVWv7jbWmET0Lf05F7mrotKr1mTpBHqHDskash5LAAGPSYIIxHvssucpr8eOeNXmheKiIMj3YEHomtu4lulUsqk3IiPlyRQ0HeBKH0NtBEWNCg0sSW0WF9g1A5t7s4fMsXcaXASub9ndBEdUBr3CMDoXQ2l X-Microsoft-Antispam-PRVS: <VI1PR0401MB25437D834A2275E1C143E7E789090@VI1PR0401MB2543.eurprd04.prod.outlook.com> 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?= Ff91WYlRrsULozDRpsRO3DJwI2OFfeAXLBm1/9/knDN58UL2sD7FYSJIdn+Ca3Khdt2ERIQvqzj4i9dkQ6ExqvWZ9wasF5pA+rVQnp8DOW+byOF9L7Wsko3xPbxJEvycTQb7siBkKBn95qgCA9lq5OxqArOtZYfzMKRnrUzXz1cmoNL4wBMkj19X1nG9UsTkZ6/KM+G6sElChnR35rx3/WOnxAUyCDRfrAlljygrUPr1fHN6kGDZpjZbEeIAP8P+anI8i+Ji16DD/cotbpETzxPs7uHGxYGp2skNvopReymCBCivaospwP4Q/AJ8e3nJ7Egc+1UifGizbdDKLWTWs1VUNkSNCn0y2B4R3tC80jAioLxqazFYYA+WAcUumRfjL+xS9iuYOx1hw6eqQ1ffHAFfXJa3V63mewhdvCHr+8vwwWm1sJ1ap7Jfz79YDoNjEQ91k7k/W270fXadt0Jfqdp7q1uejV2XjR2hD9+G5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orOrg: 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
driver/net: NXP DPAA driver enhancements
|
expand
|
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: