From patchwork Fri Sep 21 11:06:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 147240 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp672744ljw; Fri, 21 Sep 2018 04:09:44 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYXvogJ5LV3UT/vl7aTfcF1XVXA8r+bMnJeolcKgJj2Z6A12Z82PdZHZYTlTyG8p/0hY0Td X-Received: by 2002:a5d:6b8d:: with SMTP id n13-v6mr37731190wrx.149.1537528184907; Fri, 21 Sep 2018 04:09:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537528184; cv=none; d=google.com; s=arc-20160816; b=fkqPSG5OEQwQs20JP8vHC34TOogqVKQ0Bp122+kPSqJPhkozRYPNX6gjyWA93BojTg y86Qq17LdK3zDPOfES5Z9GtqSsn5eX9floyJ7lnHEfUxicTMswJWvCSrYU+27lcwVPnY 1BpZ35O2vpUgYyLNQlMNYADqv5dD5e/g1i/61Rn26yMzqenoe68NAqbpjAU9LdpxkzrD KIK/PiD6dLkCkxiMWrfr7RjvwSsYub/rpvcgdyAj2bPEk9nk7Ypa5hWd3vZMFDMjtwqE zIvYipMdctBrLnhd+0q64IBHDDcD4APvwfaiRs9jCw389QzeobtkuP1HEeqPcpGUrcqe 3vWw== 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:references:in-reply-to :message-id:date:to:from; bh=5vYV4cIWWi0nSTqW7LUx08mvqFkPKgjQlRU8jwpB2cU=; b=OpzqK0owZ1YtMq21csLsxkQhp3UKeUsvCiUJZeXT1sw0LWrqutnqaAsK0RqO1Vm9zs zq0m7+/htTP3SOhgzBysBJyOeCQpkyvmGrY1pFY+CtHCIwVKGmjTUCkjRVKgmo7chqAy qBIN8t346kHFD+wherhJpNlslp/C1WHEJg/fGUnaY6oOMgKkthX1UuRUSC8pziXyUvYM YW5rsGMk9uldHCr38qq5husvcV55NwF+3d8UJgGSlp9xkC7o7TXM2hf8tdoN2puklpo7 1dqu5UHp7q08j0RyrSLASJH1FQSavGPI4PLVm7jZY8FMQzyFUM54K2iPOg2iUztL4a+p ylJg== ARC-Authentication-Results: i=1; mx.google.com; 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: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id y6si5111665wrw.327.2018.09.21.04.09.44; Fri, 21 Sep 2018 04:09:44 -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; 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 9352B5F1D; Fri, 21 Sep 2018 13:08:35 +0200 (CEST) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by dpdk.org (Postfix) with ESMTP id 0EEE95592 for ; Fri, 21 Sep 2018 13:08:14 +0200 (CEST) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id E94E21A02BE; Fri, 21 Sep 2018 13:08:13 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 15B611A02C2; Fri, 21 Sep 2018 13:08:12 +0200 (CEST) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id C1B9A402E6; Fri, 21 Sep 2018 19:08:08 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org, thomas@monjalon.net, ferruh.yigit@intel.com Date: Fri, 21 Sep 2018 16:36:00 +0530 Message-Id: <1537527962-25757-12-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1537527962-25757-1-git-send-email-hemant.agrawal@nxp.com> References: <1537277516-8876-2-git-send-email-hemant.agrawal@nxp.com> <1537527962-25757-1-git-send-email-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v3 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" As part of performance optimization excercise, tuning the prefetch placement. Signed-off-by: Hemant Agrawal --- drivers/net/dpaa/dpaa_rxtx.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) -- 2.7.4 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;