Message ID | 1535539660-20228-12-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-v6csp522495ljw; Wed, 29 Aug 2018 03:51:32 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ2W0XjgnTTX8XU4sTHFeZPrLInEAazhhd4P03eMc2GGX5ulwQ/i3iT/W3Xc3atTUdx0T17 X-Received: by 2002:a1c:8291:: with SMTP id e139-v6mr4135126wmd.39.1535539892886; Wed, 29 Aug 2018 03:51:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535539892; cv=none; d=google.com; s=arc-20160816; b=mpW5MdqUsyrLRfmmiiULBHYns4SpPE4gzHZUuN2/0T7YOnKg0HOgSf4YTwpFMuia4M kQ/G15mvYA9IzwjOlzZ/7tqpOFeURd9Ng9s2G3IPCVqWRQpzGonPmUIALHbuBpA/pRx4 YXdXoEwxLcVgF29kbO2Z9OquKdBGROiY+Gpj3kutiZQDJCSlCGB26Hq+zG7H6RVoZ6lM 3ktjv1T6PExgXDQ4JlmaC08XmcJDhdG9/lGIPfDHY4d/8l9P1Yhek+KutO2aMM1F9yfQ zT+iR2Ty01n4Wrn13tl59yoFlp15s3BDAfPEYL5WopsE5pCKT5XC9qluS6oCEh5xNdHL PNOA== 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=zf+z9tsCsVcsnOHZw0MUx2500yUuU9ATBOk9uxZgS2g=; b=OxdhbWAmBvbzORItj/CJaHs2rwxIVKdVTbApx/K0z0yW7+d4LB7BQFmkwu7Ddj+acd 4bZAZ8GTG/KO09qkOvi6/CKDmP2hMdSyKJvDsXcxCk8D/7PA0fN/MLXtx4PZknFV2rXW 0v09tPLTUsWxxlrsJ4vLZ6Fj3bGq2LcFg1T2ecbUEYyTLtYwgEkm0AoCgUUZromCy9qc rGsg9omBDEwmt1JVpX4w5lOKB4Ld5ZAJOfGvahYmIcopdTeDz2YXItOcxQdXnnv6l56V PCFTONPcmIH+CS3OMlD0FNK2AUr6EcRvWNVvuyHU4zJDKpN3LoHt8HgX6/OAhk4Dcgkb OnSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b="e0816/Ky"; 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 18-v6si3263568wmv.27.2018.08.29.03.51.32; Wed, 29 Aug 2018 03:51:32 -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="e0816/Ky"; 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 514AB5B38; Wed, 29 Aug 2018 12:50:06 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0084.outbound.protection.outlook.com [104.47.1.84]) by dpdk.org (Postfix) with ESMTP id 90FB056A3 for <dev@dpdk.org>; Wed, 29 Aug 2018 12:49:58 +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=zf+z9tsCsVcsnOHZw0MUx2500yUuU9ATBOk9uxZgS2g=; b=e0816/KyZv7LoISjhBshZ1YeCVSApEZwFQZj73AXTBh2rbX+NTas7sH5o7sdJytvM2jnmXTdchw4Q8/5coJilyPk2o9kLJ3B9arAQl29t6sG+L4+0q2mpWIn/wxswaOx9aiHIPGotucDR6OyOKAV6FJXFzX54NLLIZb6OYkv0Ak= 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:56 +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:38 +0530 Message-Id: <1535539660-20228-12-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: af7756d2-dd42-43a8-5b6c-08d60d9d2955 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-Micro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S5k30CB5chkBMqzK+8pHb68DobVO9frEEmUT1r2Zl5F1lqDbW+W+Z/o/2EGCEXcjSyUqqpn9DN7dlpIlQeQJIzsCOUOmTpghFWOLVKzDKyuhTP54YpwkILz4lzasI9/0KoKyUxN4kklPsf82I2AKTo+AdlC314+LkHw/ShXzWYf7IPJFh8HVlLyKdTDLVskkwAqWdpXRtK+3Fzqi5bc7k/Itkai4cbMwcSrOHTlDdpay9AnLBJTiQDh/cI8vOe058jfF8Rxv5eSs/SYyrB2Q/o3wpVyuD0iEZM3Oqkri+TljFCGW5iyUGObd5tl2kpphTT1Wu+m0MEQChVMBw4V0lOOC9KknOYDpqIdF3tEHa8ILBrUrrwFysP2NocrgktxjwoUEl; 4:SHstVHgVirX63TzI0sP55mO1yDgQ5AikJDCLGm71jnf+eUIqBsW2Hi8A1YAV093bavUZqZ4vd3j//iDmRpF7fcNbEYmcAWHOfHixl9E/MOJ0TgOMQpw4ZwdteCZ/Vn22vjcQXIi9OH3iL3b4aJwdj7f8vt6CJflMEqTYxJanYE1u8yFhcnCvk9cMdwpEJ9NmEvdclxQrAGG2YvnqrqVZV6eDIf9sN0JyjhW39ozXIlgpVCDPLdxXZ9SXeDEn93OnvNuxYs7RhXD6wFxboilGPBDzn4ubSGZWQo9H6oWa59OrY+R27Ax2X9VKcYf01GGP X-Microsoft-Antispam-PRVS: <VI1PR0401MB2543D58B53454EA5D504198989090@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:vogXO+HxeN3ycJdAU9iLkzpLKvTPKicmqx7YCbI?= TnsKRWMAbs7/7k91kS5pMTCQNzguwuMYjIpYwPKbkZ1y9GK6vpoMcqja1xwbxAvlXBQQFJWsDQeBIJzoaGlgqazfoGDdwinhWFFGUZPbdNYbnZ/UNik3cNvllF60eEvpKbYflA9iJnYxnTNrWKY1WvC1TV5070ifbeuG6hYfpJ6iPJFEGaRTQ4hlc39MKnIv/xs1Hb7xWK0oBgaGkGhVY5PpXbPzeVl13bNpdol1I16/UKCOjkX0yqtrDeAH2q1g6qmdHrT8WkFp9eABzlbRaPeuPQrlZQhKHXvhNm683umffloQYN+fFnFfBm/NGnwHA+e4oWz6tccjf3AzCLcyYLXkH1CVD5b0uXuHALNcZg27Rr6nJAXBD/FoX+VYD/Jd+lKas8a/sqbIQgEYMdFq3v7Ef7VCflexSFVwP7oWYLZ1wfHX5XOdOOFy838cO6E7gux+70oTr/cN8ogWzEn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PM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 10:49:56.6093 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: af7756d2-dd42-43a8-5b6c-08d60d9d2955 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 11/13] net/dpaa: tune prefetch in Rx path 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 2c57741..c4471c2 100644 --- a/drivers/net/dpaa/dpaa_rxtx.c +++ b/drivers/net/dpaa/dpaa_rxtx.c @@ -370,10 +370,6 @@ dpaa_eth_fd_to_mbuf(const struct qm_fd *fd, uint32_t ifid) if (unlikely(format == qm_fd_sg)) return dpaa_eth_sg_to_mbuf(fd, ifid); - ptr = DPAA_MEMPOOL_PTOV(bp_info, qm_fd_addr(fd)); - - rte_prefetch0((void *)((uint8_t *)ptr + DEFAULT_RX_ICEOF)); - offset = (fd->opaque & DPAA_FD_OFFSET_MASK) >> DPAA_FD_OFFSET_SHIFT; length = fd->opaque & DPAA_FD_LENGTH_MASK; @@ -381,8 +377,11 @@ dpaa_eth_fd_to_mbuf(const struct qm_fd *fd, uint32_t ifid) /* Ignoring case when format != qm_fd_contig */ dpaa_display_frame(fd); + ptr = DPAA_MEMPOOL_PTOV(bp_info, qm_fd_addr(fd)); mbuf = (struct rte_mbuf *)((char *)ptr - bp_info->meta_data_size); + /* Prefetch the Parse results and packet data to L1 */ + rte_prefetch0((void *)((uint8_t *)ptr + DEFAULT_RX_ICEOF)); mbuf->data_off = offset; mbuf->data_len = length;
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> --- drivers/net/dpaa/dpaa_rxtx.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) -- 2.7.4