Message ID | 1515581201-29784-11-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5161168qgn; Wed, 10 Jan 2018 03:36:11 -0800 (PST) X-Google-Smtp-Source: ACJfBosfLka+BZcFzTXQ77RlcigQXSrIkCEodbpFP8Ax5zIHrKyabIwWigW0mh+yc7D1r9fuXgfx X-Received: by 10.28.122.15 with SMTP id v15mr13394469wmc.38.1515584171380; Wed, 10 Jan 2018 03:36:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515584171; cv=none; d=google.com; s=arc-20160816; b=N4tUN5nnQvOpFENM9CZb4sSEtT2ipCh84e9U7HaoIKIF2+g3POLj20coseO/sPZBJN DgpDWgsjhVGPtgX/T9aII8zUjNm9eyQaoB5bWxsB/4rHlKwHse89hAnczFeaHZN0mGA3 E6BzodC50sCUBB43mPuYouQ3nj37HV7U1FigDnJPN4DLgRFUmLewhyH2CkH09/oCXxiH vAvSqFppBEXTsZSI4Sc7ljcDZRuIVJBgBVufasgPHF4loCowZXrmeGLzzTuD7/Z1DEis d+qdZVXaEr8yjXIh97XZ7+fsIHl51YTUyipTOuEhUG3VSSEhXapAFvd8kNrMwSNB8TVx IczQ== 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=i1vd4XyO+THlZ1ac8wo6oQx0zlxpG/s5VSVi+8DGxhE=; b=o3BFeQKgYG/ZiEM8mhDCzEexF/NpV/FXz+S+bNtC4HL0wnLqZR7w1KrU9J+UpU0PUj DWsVstCklaqPp0FNJKE8TmXN0vpdV8Mz6OuiXbB+pJElrgtmS1VaczxtzI1R2TF6H5hp 3bPiTC4GFitE3lZ5lKcWglekkB/95CTLUsn06BQbeEEYu1+umERROvbeMmr1WBmnKora WTh9vRKrF1Qd/rZsO4sXNKHneWIzy3I8pqoFCWhA3mmLtePsqgsgiJoxhxsQNIl1NyPJ KgBc03dBUVjr2LJixRz7JgKFCDw0EmcWQpG29MTMA4G89Kk5b2ETq7YwUh6aKBg/xk6r aSxg== 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: <dev-bounces@dpdk.org> Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id f56si5762753wra.498.2018.01.10.03.36.10; Wed, 10 Jan 2018 03:36:11 -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 CF71E1B01F; Wed, 10 Jan 2018 12:36:09 +0100 (CET) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0060.outbound.protection.outlook.com [104.47.32.60]) by dpdk.org (Postfix) with ESMTP id 73DA51B1C6 for <dev@dpdk.org>; Wed, 10 Jan 2018 11:48:16 +0100 (CET) Received: from BN3PR03CA0095.namprd03.prod.outlook.com (10.174.66.13) by CO2PR03MB2357.namprd03.prod.outlook.com (10.166.93.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Wed, 10 Jan 2018 10:48:15 +0000 Received: from BN1AFFO11FD031.protection.gbl (2a01:111:f400:7c10::130) by BN3PR03CA0095.outlook.office365.com (2603:10b6:400:4::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.407.7 via Frontend Transport; Wed, 10 Jan 2018 10:48:14 +0000 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 BN1AFFO11FD031.mail.protection.outlook.com (10.58.52.185) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Wed, 10 Jan 2018 10:47:41 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w0AAljSS007124; Wed, 10 Jan 2018 03:48:09 -0700 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: <dev@dpdk.org> CC: <ferruh.yigit@intel.com>, <shreyansh.jain@nxp.com>, Nipun Gupta <nipun.gupta@nxp.com> Date: Wed, 10 Jan 2018 16:16:32 +0530 Message-ID: <1515581201-29784-11-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515581201-29784-1-git-send-email-hemant.agrawal@nxp.com> References: <1515504186-13587-1-git-send-email-hemant.agrawal@nxp.com> <1515581201-29784-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131600548629860262; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39380400002)(39860400002)(396003)(376002)(346002)(2980300002)(1110001)(1109001)(339900001)(51234002)(199004)(189003)(77096006)(6916009)(6666003)(51416003)(76176011)(8936002)(5660300001)(2950100002)(8676002)(81166006)(50466002)(81156014)(498600001)(48376002)(50226002)(47776003)(53936002)(8656006)(4326008)(68736007)(2906002)(2351001)(296002)(305945005)(105606002)(36756003)(54906003)(316002)(356003)(16586007)(97736004)(86362001)(106466001)(104016004)(6346003); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR03MB2357; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD031; 1:kGT/Mpf9lidoGWqRtqTBpT1dI+z8GD1vNhKjeduBjP2RFJkvmY5rAd/QquJlrmrLSgyInoCLTJ0BgabjZKBetikHF3D0IElAUUL2kb8ghLFsGcgDpoH9OMNJYN4tJJpd MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 52b55e61-a490-4b52-4fa6-08d5581793cb X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020049)(5600026)(4604075)(2017052603307); SRVR:CO2PR03MB2357; X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2357; 3:mb71zwRjayba4Y48MMh0MVgUB65e2dR9h4DkxTm2jZFIflgcLvMW5adQQqitcUPFaCC0ehKDnMgZOZ1rcgo111usxg6pktOCuYlY0Is7CpJwOsU2M7X9M2c5jz1ZEqB+Sc0oJ/hf4wg0zneSHJDhzwnZ4qYkwu7rYnINuOVtmH2NaTBNfYMvUy6anmF2ocM4ymqjQ20yudF9RM9DqiOS4ohlRDrr4EiXd/WLGt13mWAotjdZT+LpYs9EYOeMwvzwaHXlDHvtGwYeURuJgzwXucNhYtS1U6Kx5yCUAZxzqMfwFBLsrx3XvncS2XwJ90vYGKouZHnAj6gfJ2ijoHdil6hDoJ5sBR6qrH5sBy3UbmE=; 25:30IZhn1HwckeC1TLd6Zjy+pUDeoQGrV6q8+zO/n9hHbSju8LoOqVypQEoed2Br2AXjzDtYOExBa0SRpot39+K53U/feguM/Z2BnC3wir2HfhDx5I3/QVc6b7SzEXPC97Y/nfyf6RPRc2+IT+j/q8mlGKk5ep84Pc6N4gaCInYn5wl8uBUi8tS3pbeq4sIxKQTYxkgbBCIlDQNibra4+gvsEiYrx2lYC05QYgX9XpaBAL7BugJ/bRnA3qaISElrkN455QNXPoFuhYLObl4tegLyx9Tj+Xw0u60j1ub+QPSfxARdDEQBq361P08+twlI4yhJm199BL3tk8DE1/ST6Wcw== X-MS-TrafficTypeDiagnostic: CO2PR03MB2357: X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2357; 31:APTjI85w+IeIR9/Y1qzU3ByZ7t/DmzngPl2rlh40DM2xb+8+FX11iV6TOdzqbej6o+8j/E4xxjZ6LtxhA9dxt5TvMJl9PSLK/0UbrbSxP3EAKvgWRaKLdTbiuq6gTXDNj4XAV0iWveBRHKpIcxuHTQTGhupgbWUszqk6Na2drb4gSyb7rfBQd7nRqHaAElZUDlSVaFkLE1yP6mnVuVEcUypQXPklHVoaLe3okhrnsGg=; 4:W8JCCGBIDsGxxRRhrcsqdBwbVu9S+q81YCnlLCORLAna6FBaqwg4O+j7x88g/dewmIEG5KvDZzoxEP0c7EMqCFlrmiCuXQc6yFvRMu6heOYyHFcbhKMJnsD253IRbhinLexgplLFa327Iue+5ofLewpmvAZuOQA/cQWXj/GsQ2KJIceAMbmejgzStuoVndYtLHZez1ygmZFV43VtfE2861RalEoiVb/sDffpNfeTBNqONjijWpdrCgFcjOKmDmxNonm9W6PZS89w1/a7+sTx9w2b3spMVi8SxZIkp8LXrhLUD7J+8e7ek6W2/IygKYJm X-Microsoft-Antispam-PRVS: <CO2PR03MB235739AED6F9BDBC6E27062C89110@CO2PR03MB2357.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(3231023)(944501119)(10201501046)(6055026)(6096035)(20161123559100)(201703131430075)(201703131520075)(201703131448075)(201703131433075)(201703151042153)(20161123563025)(20161123565025)(20161123556025)(20161123561025)(201708071742011); SRVR:CO2PR03MB2357; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:CO2PR03MB2357; X-Forefront-PRVS: 0548586081 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR03MB2357; 23:0qNq2IdwqUBzUjdHLfreC8NoMv3fxOb5LH2Ab5HSZ?= mlqQdMWR72EGRwL7faFiuxEHs12trTTcyS8QrtqfBhUQ0hrrv/EyN0fZlu5C1hoNXOkveWa0JWlA2A0VtpG5o8WX0rYolfZxY6P77SxW/0buis0hQpiwxj2infHQtkb9iQSwdwxNwk4Nnegs1yS6yHrOwOySICp2w9zJnmUtI5D0a2SKaX+F066qkhtzIIjJvUwwADnpn1IYB0vAsakXTIkCjGHkGnTYhaS3ndYEkEOYNVG4RtNdI4dxr0DAckKeQD9avM2yjTRdqrHRaW+fFVLZdp6hTEu0q90QhDxoTfCyS+0jc2ikMLouhyOUIQs5btC9itAkVLCTdFUGIl2rBuH+hcKHadGTQ46JndytDjKL0bIBmrCcDWRxzpZkWaacI26i6FVTCXMuRMm4sdygpgBnDGD3jdMfDY1KhkgZioy8bwtS1qYRDLrXgHYYXid+BsO5leeGJkhq86e6Hv0wlPgLZQ51RhjWNOBzTTyJWuknkKgYxX4jLuF7w+XTY4wFy19/DP6Th8G8SEnwER3X6PkYIw0Bo6fhmbmz5hs3UjJaUWt5Ap0aCsfr+jxoMFLfFQv5yQnHfxeNdXKsMnIo9iqnADZYFnyUb1wbdwCc/CW+yPYFA5KLA05Ui3jPQOSSyRMKMMwA+/MV5az8jYHVkhrMD0z5Ve35NXtLpXr1LNo/k1nnDld02t9Ybdcp2nHydM5lcqlnlV0BydmkMmMMyONidkPzawtKlgoasfkfiFmNNAIVHd+ICr8MFVuVdJoukz5RF56gs4SrWK+F1EFol1vAKzjXK22lLmPaE06xelytu0xfWQJ7+/Z8zHoxPyYuHnkG765b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1xf9aqQhigleDNFxAfqXFuKt2f4dWnEZC667jggqMmpA0bQ9t5/WtedT2aNY46b0Id4GZrrZTVqKxfNhMx5K7EhmzJ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2018 10:47:41.0516 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 52b55e61-a490-4b52-4fa6-08d5581793cb 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: CO2PR03MB2357 Subject: [dpdk-dev] [PATCH v3 10/19] net/dpaa: change Tx HW budget to 7 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://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
DPAA PMD improvements
|
expand
|
diff --git a/drivers/net/dpaa/dpaa_ethdev.h b/drivers/net/dpaa/dpaa_ethdev.h index f00a77a..1b36567 100644 --- a/drivers/net/dpaa/dpaa_ethdev.h +++ b/drivers/net/dpaa/dpaa_ethdev.h @@ -41,7 +41,7 @@ #define DPAA_MAX_MAC_FILTER (MEMAC_NUM_OF_PADDRS + 1) /*Maximum number of slots available in TX ring*/ -#define MAX_TX_RING_SLOTS 8 +#define DPAA_TX_BURST_SIZE 7 #ifndef VLAN_TAG_SIZE #define VLAN_TAG_SIZE 4 /** < Vlan Header Length */ diff --git a/drivers/net/dpaa/dpaa_rxtx.c b/drivers/net/dpaa/dpaa_rxtx.c index 630d7a5..565ca50 100644 --- a/drivers/net/dpaa/dpaa_rxtx.c +++ b/drivers/net/dpaa/dpaa_rxtx.c @@ -669,7 +669,7 @@ dpaa_eth_queue_tx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs) struct rte_mbuf *mbuf, *mi = NULL; struct rte_mempool *mp; struct dpaa_bp_info *bp_info; - struct qm_fd fd_arr[MAX_TX_RING_SLOTS]; + struct qm_fd fd_arr[DPAA_TX_BURST_SIZE]; uint32_t frames_to_send, loop, i = 0; uint16_t state; int ret; @@ -683,7 +683,8 @@ dpaa_eth_queue_tx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs) DPAA_DP_LOG(DEBUG, "Transmitting %d buffers on queue: %p", nb_bufs, q); while (nb_bufs) { - frames_to_send = (nb_bufs >> 3) ? MAX_TX_RING_SLOTS : nb_bufs; + frames_to_send = (nb_bufs > DPAA_TX_BURST_SIZE) ? + DPAA_TX_BURST_SIZE : nb_bufs; for (loop = 0; loop < frames_to_send; loop++, i++) { mbuf = bufs[i]; if (RTE_MBUF_DIRECT(mbuf)) {