From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 ; 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 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-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 3:trWDH9We2gDZfGDIPnczye2Q6p32998FfpC7eoXapxL2zD1q6HKTuY/92NnkiT5h4CELMPEdgKIuURjkc3Z6IH0OJ10YSaK/oX3+elOqAOtbFPL1xekUI4OuxOVQ2O5qzuO5O97Gr1FkiGK50e7MbEeN9jIeOOURckQ5+gsPrloyQEEwHJYale8iRaE68Ebi5TE1gNep4Se7jc1Jd8gMYLFegDIGSV3Z0a4nTTaJnie7pTeYB3OBIxOBKB3HVyGk; 25:jq8zzE6LOeOdlgDnBkdI3OfBHDXXPFeaLqubuBAfOGs2sY1tpylpXBIAJaMg5SWlGhkSFQv8WSa5rGJLPuAMJ70ZiB3seFe+6uO36O0bxXddg/g9VGmDgoiP9lbpvY0tpGVCfXupmIwpWKQh4CYGT/M6iQKo/5d6o6VTf5UwP1lZ+VdKsmuTExv+IEMmxXZesEZ75dWFlupPPze7OY4IMXMWJweTo3E6KKWpxN+R9FLKicWuU3IEXndEqT37X4w2I6vJ2u+EXniQVCKra4CupJEhOBzIa1f8XmYmCw3aCY/rGPqA1OztTRc05ymzF/gG9fGp+hVy4lZGluG4Ibp61g==; 31:4SnsF8e0hkleuHcz7ojxQLSRUhLdSqjHf1c+IyN8rC66Z4IcLoMt4Drv3YM6j3J8wdscrLbP5Gt0HAoFdn+g1zLo1F3TmytmORMXiRmYOOWSiOrJzTjwjJ18Up7ySQ+LVrniJ9oK6rZVHa4lY+Upu2Rs45R2v2I81O/hmnuw50ksVimZbPUe8x47TSH1MOdwhHZl4ceRp/FIIhENvJ4Vo4xfNtKDqpOxPpphseuwEjU= X-MS-TrafficTypeDiagnostic: VI1PR0401MB2543: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 20:+LKT5bnF5HdJ4rsn3qDTcY5GymIeOdgJjT85CRL3lsC0iq8EINjggAZFDalnPbPlR/yvZmRk6d1nBFsIB/uMt11CKKe3LfDloh+yjO4+t8OPW2QBQUsfQ2P8CeCS5k30CB5chkBMqzK+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: 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?= =?us-ascii?Q?TnsKRWMAbs7/7k91kS5pMTCQNzguwuMYjIpYwPKbkZ1y9GK6vpoMcqja1xwb?= =?us-ascii?Q?xAvlXBQQFJWsDQeBIJzoaGlgqazfoGDdwinhWFFGUZPbdNYbnZ/UNik3cNvl?= =?us-ascii?Q?lF60eEvpKbYflA9iJnYxnTNrWKY1WvC1TV5070ifbeuG6hYfpJ6iPJFEGaRT?= =?us-ascii?Q?Q4hlc39MKnIv/xs1Hb7xWK0oBgaGkGhVY5PpXbPzeVl13bNpdol1I16/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eZbNeTBe/IT4w==; 5:NRMP8LAb+UAW9GhlLCg/z0DrJ+Y+U+57Z71Z0KASBcKyz7nOID28TOzvVRZVvQfg4xbHr9pLX3VcZH8T9Kn1nHD06OHHBXO1ymBwbJ6wAGSDqV8CaNQVFpjHIZhczxAY8vUBjIbgB5xxXevi2TGadNJ8DN2w6bYt4F6P/BzjrSo=; 7:loXbM/YDrB93Sz0sVfCcZcAHB6HZVzR7wG8nKc0qnPhV6ZmIHU+h3KTZnYkwOXUElYD3fnkycSO/BAeH+6u1wJtED/CvmXoALUoNFrOWciNBHKBvQu4UymAQq19aEZPVNyB6j5bgz0FuXkVueNelwodB19Y9uET8fZeBl4i4DMx9SDY3j4EhMbj03SFWWPMDkLCKXuPHAWm/mGwKNVy3CPUv7Fr5N/zCHharHDstowCQK3+V7/Tb7atmqQzIWXim SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Aug 2018 10:49:58 -0000 Signed-off-by: Hemant Agrawal --- drivers/net/dpaa/dpaa_rxtx.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; -- 2.7.4