From patchwork Tue Jan 30 15:06:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shreyansh Jain X-Patchwork-Id: 126264 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp3459052ljd; Tue, 30 Jan 2018 07:26:15 -0800 (PST) X-Google-Smtp-Source: AH8x227gDa2mOLpm3I6DiRIcaHm3PSakMZLZnTig63iBBb1pxWecvtJxWBrbvmoXgZuz4aublVKF X-Received: by 10.223.182.165 with SMTP id j37mr11148114wre.85.1517325975119; Tue, 30 Jan 2018 07:26:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517325975; cv=none; d=google.com; s=arc-20160816; b=M4hjh9j9odWD81k1t92m7j5s17yN8cvF0fcV1hipGw9UJF3804ltTUL+EhXi7stNSU XZShm0dnVqWuEPNiM5qrpE4cP6R+aU+mtV0dHwVlj4TuXNaiBAKySl08yQ+OSliGMeaQ 8rBmZF9Hqv6gyqQCdBPmH1+Ir9vUi1/uI3Ern1ZVe+Q0cgrdhnvYh9/5N002BqAR61bO I/SeNovR+regjNxMFZrg0chPICwGgRGmnvWsikcBxwLf3E9Wxk49zN2naXFUDpam8a8Y uPGpcirAveLVLQi3yUvRE1WhbwzmunMZ6pnEwRO+QLpHtjaquE8Ey0A4zriL9rUA9jd7 AH/A== 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:arc-authentication-results; bh=hv7xh/i2VqdZtmCIWv+P2mhHdC2mX4Hm/zRybNu+AI0=; b=jcYc6KD924EUXlig8nx90r0yUzTkVu8/S74Pr/2qWkQ/Mh5uAi926y4HMcJLo1hMUn fUuOew9fjMGz+48nfhwJsWrLMIpGW4N1DojnMsaaQv5WyX39AMrPJB7MKOMwIcl4wWpe DdL6LiORRQhkQjYj1R64EfWeEnxhze6wZA7ntTyW5H+H0JPNN5G4tM+l6Uj/GzOBBd8S ORIW6Yioj5UM3unsnYETgm2KkuIorVj078AXXKJB5TXHMHPj/h+pL2O3m/Erv7xrwcNs /2xBVtiZ1k1R/FRyKAyHkJFzKypDfNwEpmwfI0+U1nAuKBZ3dt/8i0FBUzc/LSeDz6rN R8iQ== 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 g12si9603191wmc.162.2018.01.30.07.26.14; Tue, 30 Jan 2018 07:26:15 -0800 (PST) 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 AE0B71B66B; Tue, 30 Jan 2018 16:25:04 +0100 (CET) Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0089.outbound.protection.outlook.com [104.47.34.89]) by dpdk.org (Postfix) with ESMTP id A18821B3CA for ; Tue, 30 Jan 2018 16:24:49 +0100 (CET) Received: from DM5PR03CA0047.namprd03.prod.outlook.com (2603:10b6:4:3b::36) by BL2PR03MB465.namprd03.prod.outlook.com (2a01:111:e400:c27::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Tue, 30 Jan 2018 15:24:48 +0000 Received: from BN1AFFO11FD018.protection.gbl (2a01:111:f400:7c10::136) by DM5PR03CA0047.outlook.office365.com (2603:10b6:4:3b::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.444.14 via Frontend Transport; Tue, 30 Jan 2018 15:24:47 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD018.mail.protection.outlook.com (10.58.52.78) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.444.13 via Frontend Transport; Tue, 30 Jan 2018 15:24:46 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.39]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w0UEqIHM001232; Tue, 30 Jan 2018 07:52:23 -0700 From: Shreyansh Jain To: CC: , Date: Tue, 30 Jan 2018 20:36:20 +0530 Message-ID: <20180130150621.29253-2-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180130150621.29253-1-shreyansh.jain@nxp.com> References: <20180130150621.29253-1-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131617994880175287; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(346002)(376002)(396003)(39380400002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(305945005)(53936002)(1076002)(26005)(2906002)(336011)(97736004)(77096007)(85426001)(81156014)(4326008)(104016004)(50226002)(8936002)(498600001)(8676002)(81166006)(68736007)(51416003)(76176011)(47776003)(50466002)(86362001)(106466001)(48376002)(105606002)(2351001)(2950100002)(16586007)(316002)(6916009)(356003)(54906003)(36756003)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB465; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD018; 1:EUzokKnRQF26nPM+famCBhHKzv9o7vx9yoVvozyKchcXDION0XoS20pIg4z0JTO6tBRhembdiTwuTYEupoaDy/OTf19wMhhcpsXPRDG8ngUqatfAzB7Bu5Y9whLCegcH MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b2bb05ae-6c94-4368-6b56-08d567f59956 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:BL2PR03MB465; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB465; 3:ZS273AVvigpbRjgFK+me9/J2owPBBzX+3zt3/8kmnQn9+0doSMJdSTCpqvMrMrPdvoD7XJlyIFSK66MDFvaQM6Qh9ecPez/XAdSdzOjjL3No9x3NUq5nwHpAIM3X0Ggn+wDSE11cFvtM9MQFixNgH6D1spLe79TtXh1i9ZFiKMzR1qH8JhyLOZ/KYY1ZUF/WpnPix4bpCCSyXji0Klc+wNDF3qF8I74VWCJfiE1kNmSPouDltyYsuNazE2itA/7gL+7D3N20qYE6TZfASVfMteG+z7DVOggH2SX83f2Y7YXhwS0ROBDrzpNA77wjsGok2xSOCxYfwBBF7CVGrUrbvRboPWULH8SLKKgJKu6R7ck=; 25:YwgMB8o8OWFI/Ij+WlmCQNairUdbkSZEVjGvJSCnA/UA/Dq1Km20d9cRVh7FqxAaHyFAlADQD912qu8/AMuQYzzh+OXMTFW29nOO6Hmy+pL2WRsFiYFn0yvqeIF2K5jCUMhS0WOH0Uex3fHvxCaabLvCTbhAZ7Sen5ayufkNF7+u1rA/MaNtyPMinnDwjeaGS75iYVCMfjPlzLh6Ot+k88fckaKTOx55quIpy54462TY30RIsNY12+JKDa3RJ93yGrVoNRh1IypEUOMKmKDXsVWa3PoBSDg6cuKMlOwZHLoZbYeqGDGCiuq8bhfSx1opuJ/URT4mJM8ISb3W+BZQMA== X-MS-TrafficTypeDiagnostic: BL2PR03MB465: X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB465; 31:4b0r0/ogBO8uITDnpkdwQ3WgXB/EWF8u4ewBmwh95bpqYmjD7F2Nh/eojKX+9XfQz8k3G/ShqkYJTMv/q+jvd5STGycqJlatPrmGC1ZeKJoukiLhTIMyRpdqZFMthK75CEwigXDn0HmsAiz7QCKDWiHpv7jRRfYxRke1GNU2XnMYgmDKM7U9PJPWWJJJtKSEg3/roYnXEMOzerDJjBTiy+c1CBF1dYEblqv6XptWLNM=; 4:AOlkpnpBOY08n/N4MkpUm4Bt4nCv1TdhG/x0cppy2CE8V5rgV1P1QFPUp0bu2gOHsyn56fid2aBdAlJEHzFhGVGcMJyK9KwCsDtJgTXRIYDrZN2xdYYSGkf60O/rYuQIDOpMRv7GlrCAybz4uO6xU5kVUDPgZf8Qh7j3DEl8UGHtS6tZDGzZWjaKwynfYqDCZHdxbLnufoW02wkpi+NQKwRZi2LRpL/BiAbXZsjxeUHkjVh7aI1gRQwbYAGH0ZzzZuMGtywu2HNhp3Iy5LjPmeU9Og4Cu2DlOGTkww5/c0DyR8O4PBBn1PIr1/iJJGQI X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(3231101)(944501161)(6055026)(6096035)(20161123563025)(201703131430075)(201703131448075)(201703131433075)(201703151042153)(20161123559100)(20161123556025)(20161123561025)(20161123565025)(201708071742011); SRVR:BL2PR03MB465; BCL:0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amDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jan 2018 15:24:46.9411 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b2bb05ae-6c94-4368-6b56-08d567f59956 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB465 Subject: [dpdk-dev] [PATCH 2/3] net/dpaa2: fix the bpid offset 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" From: Hemant Agrawal Fixes: 774e9ea91992 ("net/dpaa2: add support for multi seg buffers") Cc: hemant.agrawal@nxp.com Fixes: d2ef05d5c13e ("net/dpaa2: optimize Rx/Tx path") Cc: hemant.agrawal@nxp.com Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_rxtx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.14.1 diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index 3d4566988..898cf3bd6 100644 --- a/drivers/net/dpaa2/dpaa2_rxtx.c +++ b/drivers/net/dpaa2/dpaa2_rxtx.c @@ -334,8 +334,8 @@ eth_mbuf_to_sg_fd(struct rte_mbuf *mbuf, DPAA2_SET_FD_ADDR(fd, DPAA2_MBUF_VADDR_TO_IOVA(temp)); DPAA2_SET_FD_LEN(fd, mbuf->pkt_len); + DPAA2_SET_ONLY_FD_BPID(fd, bpid); DPAA2_SET_FD_OFFSET(fd, temp->data_off); - DPAA2_SET_FD_BPID(fd, bpid); DPAA2_SET_FD_ASAL(fd, DPAA2_ASAL_VAL); DPAA2_FD_SET_FORMAT(fd, qbman_fd_sg); /*Set Scatter gather table and Scatter gather entries*/ @@ -776,7 +776,6 @@ dpaa2_dev_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) (*bufs)->seqn = DPAA2_INVALID_MBUF_SEQN; } - fd_arr[loop].simple.bpid_offset = 0; fd_arr[loop].simple.frc = 0; DPAA2_RESET_FD_CTRL((&fd_arr[loop])); DPAA2_SET_FD_FLC((&fd_arr[loop]), NULL);