From patchwork Tue Jan 9 13:22:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 123949 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4020483qgn; Tue, 9 Jan 2018 05:26:17 -0800 (PST) X-Google-Smtp-Source: ACJfBotC8AKlpVQ+5dD9hO7vrfjo01hibmxN+i/tQGwEbi0FnduAmY3m6exCpiS1swjulSxgs75K X-Received: by 10.28.230.20 with SMTP id d20mr13165880wmh.138.1515504377745; Tue, 09 Jan 2018 05:26:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515504377; cv=none; d=google.com; s=arc-20160816; b=N66G/DC2AZ6qqPigskFHFz/sV5GFgmySfsct5ruOE1E/+eLO0rZTiyGcSKahKgknuE prSWGJQdJl0zINZ6a9z4+woukq63PqrPLrkUMvrkOYBAvFIywNVfpSdM8rIXy5D7yLaD i/TYvl+OqMQojP307HdxBQr3MUW1+7qrGihwWoMU8Hm/5guMbmzMO6fqXYj8cYHMVhgT zRsxZPFzphjiTEM7ckGQKdL9M5s2D768xnkCpaR+M02JunOS3kGjLys5Dr3NU5qWn2Mt JbRp+/NARSuwZ+2ZZ8yhwX1nRpfkL/Qr2hH4DGIHAHQ/nzuUtujmsEnimoKtzAi9qADs pnKA== 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=NC3oxeOWPFckJPjycoKvkYkYlUAz6xwU96uuulnB40Dxb2IY7Ti9+lr6h72RMetgbU 0H/rNlbz/fpDwQpGwo+eY1qFrFAEtU1IyAXSjF0j0foWBNu/juPvEOJjYnOMdAiaPLMg GIzV2CbaV7eATuGfr/CQzaU4oiB30RsSsECxlx8uNqY/bKaU24ccdYubQhnJSs90WdFE GeAjX3nYUNF6GEDHdP4MijJL/jdNtUU+Au32z41/wc602oo8GZSKWYoqkxTrIkE/pZo8 wzvrqHor8HvCGTVKuMHFjeCyyBFdZnVB0moRnvfSKrlJnjf4sQsvMxCNBH+/QIsrL5i7 H+pQ== 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 o1si5459569wre.195.2018.01.09.05.26.17; Tue, 09 Jan 2018 05:26:17 -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 C65341B218; Tue, 9 Jan 2018 14:24:41 +0100 (CET) Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0055.outbound.protection.outlook.com [104.47.37.55]) by dpdk.org (Postfix) with ESMTP id BE2F31B20F for ; Tue, 9 Jan 2018 14:24:38 +0100 (CET) Received: from MWHPR03CA0010.namprd03.prod.outlook.com (10.175.133.148) by BN6PR03MB2690.namprd03.prod.outlook.com (10.173.144.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.366.8; Tue, 9 Jan 2018 13:24:37 +0000 Received: from BY2FFO11FD011.protection.gbl (2a01:111:f400:7c0c::165) by MWHPR03CA0010.outlook.office365.com (2603:10b6:300:117::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.386.5 via Frontend Transport; Tue, 9 Jan 2018 13:24:36 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; NXP1.onmicrosoft.com; dkim=none (message not signed) header.d=none;NXP1.onmicrosoft.com; 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 BY2FFO11FD011.mail.protection.outlook.com (10.1.14.129) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Tue, 9 Jan 2018 13:24:03 +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 w09DOAVr017638; Tue, 9 Jan 2018 06:24:31 -0700 From: Hemant Agrawal To: CC: , , Nipun Gupta Date: Tue, 9 Jan 2018 18:52:57 +0530 Message-ID: <1515504186-13587-10-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515504186-13587-1-git-send-email-hemant.agrawal@nxp.com> References: <1513166759-13466-1-git-send-email-hemant.agrawal@nxp.com> <1515504186-13587-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131599778455481232; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(396003)(39380400002)(376002)(39860400002)(346002)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(51234002)(68736007)(6666003)(106466001)(105606002)(53936002)(6916009)(2950100002)(50466002)(36756003)(498600001)(2351001)(50226002)(356003)(77096006)(85426001)(2906002)(47776003)(305945005)(76176011)(97736004)(5660300001)(51416003)(8936002)(8656006)(81156014)(104016004)(4326008)(48376002)(8676002)(81166006)(86362001)(16586007)(54906003)(316002)(296002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2690; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD011; 1:ZH82suIPzDujvHn/uHuCq4UBYn9SaUXPEHe2Hz/3nQex+BjRu/ScSMAxkyWyNuMTaMEwS/DbzyKUJpTM9WDNeRU5wA4ChTmWLle7vLuXTzNTZobFupIetCkT8hnyfAfe MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a4e069ac-7d16-42b4-eb90-08d5576441d2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:BN6PR03MB2690; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2690; 3:A0TqSibvG3m+epectSwdORzHJ2sEiMQOqWVA6R52ahNswjjI2gEO7zLq7ycSOWPXSJd4MAi8TrSY3U7pPAQPX35F3DWYPDMCmC1Frc0HQccZsVAfttxTNsNWdgZ+j/yibzDZUUjkiqg3hJcOdFZWFGCNaIW7uGmYWm0kHGH6Jfq0/zi4Bf//NLXlwVJaOk2B8CWiH5lTQIFbMaNPQuZ1P+J6Lz+c9SedQyT4Jv8ZrDc1oTZ0beZp7Q6DRmowbk1+63NSxZcA6pg3TdZDSp++AA8vxBLbZMMTLlHRnYmVmHHrq383lCr8TFi3yBOw1K/EgxmZ92ED6FPkqyB3Y5jq6zkZkLf5XZ1QUwGI6Ub+/Bk=; 25:QpK9RloG3GPAoXFDBeZ0b2YYNYDG3JvUfYmL0ioBzUOjSISlZaaMbIF0W53XVhTgJP/mW6kYhgZPxM7UgWLOdGsYW0hcNWatJVaFqALWPf8n57R2eb38UHgeCpGfFcGF2yC1cw3MDpOrNMamZHvLekA+/4sY6zAYU54SBX7XPQveyoa8QAm1+TqQ/BerN4lAYrsy+Gg1iAP+dgfXeRxUXC07/fX/Tdi4CmDRr+4rvC+IIdEJpZj6xvGqpRiTZtkCoApEUSHwWPrrjjB8IUUuHAxpCk+YpdxOeeAWVM+YX+nnDGACNR+sw0l54LeV7ZC/NzZTAS04uiIjTKdtH9Ix3A== X-MS-TrafficTypeDiagnostic: BN6PR03MB2690: X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2690; 31:6cQjM27ck9ZT2Qd353s5XmthV8m8axeEckxeUpKor28QH+Dr/CNXeTXzIDdi26vlPr+309hnw7RI3bEg2YOGvHqIg/35EhH7MOnzCABEXA0T0mOpm5lDHKMBoUrfa2CuYUmPzdfg85nxWQM0gl162hLqovE+DkEcFDOAOdSBLDCTaX7XqYQMLnJotiBEFUXDGx40VjAPJMgJixMbrg3igXZBm+OSppgPiKQkqLWKW3w=; 4:mKdgAfwuPMKeK3HwXA5VaKjX+o/v5tV1/FDbQdLTfX+WrWn9ss2TGtNYkJAiGCGeEdsHR1V+7s1E0jlRhcYGDpulUb6E6JUz7eBuEAUS0m+gIGyZmCk5ymqNreTXafhAmD3Pa2BVHXQmC3bSTFsOF/EcbPXARtl9k4SMpaOVPvlYjSVhyYo2VUmaG6P7FB2a315ZQjaq40JmNr92nECdtciq0OOjaj9jYovi//Nr+RGOW2KnMuW+wORYeP99hn4xSH8ize6/IRqMMeYg72XJPaSdYPddZ4Gf0G08VTaPMo59FgGSuPiGDrk8CPpJM6eu X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(3231023)(944510075)(944921075)(946801075)(946901075)(10201501046)(6055026)(6096035)(20161123556025)(20161123565025)(20161123561025)(20161123559100)(201703131430075)(201703131520075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123563025)(201708071742011); SRVR:BN6PR03MB2690; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:BN6PR03MB2690; X-Forefront-PRVS: 0547116B72 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2690; 23:w2EprHNHhvceQI0D8gL9GxCJ1doeC+y0P0w5ospDY?= +AfWUC+IfraYLKXImVkHxz6vxStuwEJgbA272NzJ7rKK+kDymdNH2ZuwDr6UwE30WYfHMkaZPxCcAIHR/uZ5mG9gyiN60mVuHXt059x8y8Thm5QOxnhH7ZAxWz8zQI8r4YNI04HjySbv/5OypDLA8efzKKfZtbMpc6twSDVB0fJk0cnNmr3URuiZTSrVDQPlhCyvQK8lq0CetV0Q9OzX9CBPO6HK2PxEYLtX5+ZZxh8ZsGJ+kvljcQc+D+K/ra1GdHXfcEk0E8mhUUfld/uecwbxxcarxhGkeTYQ1K96n5Hx4Q3iWY5ds+i0MLFJD/JWnPT03zf8IpHwUzJulGQs0BG18reVrImZWGY1UAN8yCJHHVza5nbBuUab15ccXHjT2f2WYP6LKI1NeO3GARdQQ9O02F5BCFE71VrzuXzStDgWpQoq5kireL8om2RDP93a74Br8eSFSOGBqv0N2HKFjLlNXSAFFW1Lo9sSEby07L67wNG0anW71DKSqvk8kJNOz+pYQYOVHvFisJbaK6Na+UjicQsqIH4V9RV9WhyBlp8m8cJ0mWUV+PI5ohDjrB6z1YIVrsYD6o1JV69V8be3M+v6D2sDIO1sOqk8AXvjjkUVpJY+tzWBMBs4+J0c54zjFWz6fIvrm1NAeXnbPiRV7Ex5JNsqna4XwdrrS5RKl/QTxW/R2NDNLbO4mPYDNDJKsYBjnLEQni6haL0KOBdJUfJLQMGjao9Hi8459ROsRZvCBnvkaEqiJwXDVKm3cYhsQLo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6+bMugOAdrmsvLRWkiwWxad70DoqyKTl6vGKatIeGlfsIMPfKS1uv+WjnBfoPuJRLBu76vojuhOkxD9Zzw0q4K9E9Fhm0hRhLm/eBet9sb5KO7CGMCXICunh6hietyPcAKiSxAiGek6PipUgVmVdG+JYMkTfZQoF1W/TOCyLzphtw8C2Lo/ci7J SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2018 13:24:03.5825 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a4e069ac-7d16-42b4-eb90-08d5576441d2 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: BN6PR03MB2690 Subject: [dpdk-dev] [PATCH v2 09/18] 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Nipun Gupta change the TX budget to 7 to sync best with the hw. Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- drivers/net/dpaa/dpaa_ethdev.h | 2 +- drivers/net/dpaa/dpaa_rxtx.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) -- 2.7.4 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)) {