From patchwork Tue Sep 18 13:31:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 146904 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp5052151ljw; Tue, 18 Sep 2018 06:35:58 -0700 (PDT) X-Google-Smtp-Source: ANB0VdakrysFJCJhkfpMA3z9KIbdPaA9zn387MeFpPiB4+AeBhtZXg1ehFaahlI5+lnUo07EYWhU X-Received: by 2002:a50:9306:: with SMTP id m6-v6mr50336869eda.206.1537277758609; Tue, 18 Sep 2018 06:35:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537277758; cv=none; d=google.com; s=arc-20160816; b=PEVjSFIjWt+0HO7z4tJXW7HYUSYx6NSFLx7Y9YlYtysT/7kns1Rr4grfQ0TpVwS5iU zG95e1IM87tqSH2W/EIh3Zg9E9msc0+G12NH7SbDIrfN0vUtvpXwD/fS18AFhbJwqYq0 c45TVUhpgNANcmBh7kOebwfWgd4OF96kQcJaPChNuakSkROEdS8GFRPphRksbA0mIKRu CwjA9rF4vo0+OmV2i6MYKW1ILOFA/Oz65C47ePYMxvDI8OW1QQQKUjfBhurxitLQ9/sv jd462fsZ9gJ5QoFIkCIu3njhgtMnouWT+Ip0Mj1G/83JJOAhZd6k7cIfTl9vmTmivnEP Z2cA== 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=AUusSb/HvphiQOVlPE9UqRnberVBiBYZYOLg5FDI65mErm/gW0hbkjGWjozDL4RD91 gmYAv/N71i/LBz/eZh70Jfk6y5HxEBmMzgLnZ2FII4BOALzB/O35e4ThczQTlj8o3nix /+iXdfn+aJ7NuYi6zGh2g8qa9gwRq59aSvnZun9Ubwv5L+2konT8FiFfON/m49u5atU7 bq32+Lzg3MZcGR3wegrJxxxpHpeRQgPs/AR1Wor6FWa48wtPWk3/izwtybycLLqwy24r yLU5ClX7C0qviGGtW590sfpFqYkvc+zF4rpOzErzo4ZAtFggf6azKwygXTTlV0JSJO5A 36QQ== 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 d30-v6si20877228edj.156.2018.09.18.06.35.56; Tue, 18 Sep 2018 06:35:58 -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 5C7685F13; Tue, 18 Sep 2018 15:34:19 +0200 (CEST) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by dpdk.org (Postfix) with ESMTP id 9F01B559A for ; Tue, 18 Sep 2018 15:34:07 +0200 (CEST) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 84BF9200037; Tue, 18 Sep 2018 15:34:07 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 6986320000D; Tue, 18 Sep 2018 15:34:05 +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 250FF4031D; Tue, 18 Sep 2018 21:34:02 +0800 (SGT) From: Hemant Agrawal To: dev@dpdk.org, thomas@monjalon.net, ferruh.yigit@intel.com Date: Tue, 18 Sep 2018 19:01:54 +0530 Message-Id: <1537277516-8876-12-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1537277516-8876-1-git-send-email-hemant.agrawal@nxp.com> References: <1535539660-20228-2-git-send-email-hemant.agrawal@nxp.com> <1537277516-8876-1-git-send-email-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v2 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;