Message ID | 1513166759-13466-11-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5384338qgn; Wed, 13 Dec 2017 04:08:55 -0800 (PST) X-Google-Smtp-Source: ACJfBotYNm2QDhnzTnNiMkh6VHX/BIupLRY9zH7GSiUCRmG1U8YCps1XcJpmLVBuzNCKQGIZ22V4 X-Received: by 10.28.165.130 with SMTP id o124mr1985678wme.88.1513166935182; Wed, 13 Dec 2017 04:08:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513166935; cv=none; d=google.com; s=arc-20160816; b=z62OHBhvzoq6ktCVGvt8PhX6cfbJlfGwo2WRHXWPpblcbzjU5zLluJMLjOInoi3zy9 G0OyLKILyAubTBk5IAWXCp/L/tCaMsO8PXpsRRA4F0Mhv2AI3FkSkrOVmH9JzWFf+Cls H0bRQdbnCunU4V46TFlbyIdSQqBkBGbY1idyOPfKFCL/kJtQOkNW7sEekAJe0MBnGWus z97SWGZpxPblPIYp3d3QhGyMNxMxdVhwa+OQOU8KSIvOsUNbTa45dJi/bhzqXnDQzA4g wOjXFiolP8h3/s17i6oU5bHTYQ0gV/w5f1rNC5AzJXFIjA+PfgAEoUhE7th8h4AYsg5k oo3Q== 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=IXfWK6SgKk1R0jjb43JqOWUsal3uFVKcqJi2ecKQ42o=; b=VB3CQlx09Fa/ev8QWpcZN9ofI0vlgZeo/8dYy14UPoFZN5XAq4YwXCTRNd9ZH0275x 58idbAuqhgV38ZzZvV3nCMNvgOZw5NInlUVJlY1rbW8jhUfysq6mT+OgJB5oMtqkkbqH fz5X5cZ7lqC4rVIxjFvjAGOeUkA6pEJJ61/nPePX1sbYJapAAYHQNIwI9bsaKFHhKBgU 5oQflf0GKQxCDboyh0fyB3QU+82BR785zGmT0egrahHMHqd+r55pK8UKSAZGmyVCmB5D HYyC1SExdiJ42Pcz8YdP3YFr9CjPuhz0bjihAx11MQYoIy2Ils9vkoguqcmgGr3YDDX5 w50w== 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 h131si1300641wmf.196.2017.12.13.04.08.54; Wed, 13 Dec 2017 04:08:55 -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 6D54D1B1B5; Wed, 13 Dec 2017 13:07:20 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0051.outbound.protection.outlook.com [104.47.36.51]) by dpdk.org (Postfix) with ESMTP id 15E141B195 for <dev@dpdk.org>; Wed, 13 Dec 2017 13:07:17 +0100 (CET) Received: from MWHPR03CA0047.namprd03.prod.outlook.com (10.174.173.164) by CY1PR03MB2362.namprd03.prod.outlook.com (10.166.207.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Wed, 13 Dec 2017 12:07:15 +0000 Received: from BN1AFFO11FD016.protection.gbl (2a01:111:f400:7c10::120) by MWHPR03CA0047.outlook.office365.com (2603:10b6:301:3b::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.302.9 via Frontend Transport; Wed, 13 Dec 2017 12:07:15 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.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 BN1AFFO11FD016.mail.protection.outlook.com (10.58.52.76) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.282.5 via Frontend Transport; Wed, 13 Dec 2017 12:07:08 +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 vBDC6t9U008652; Wed, 13 Dec 2017 05:07:13 -0700 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: <dev@dpdk.org> CC: <ferruh.yigit@intel.com>, Nipun Gupta <nipun.gupta@nxp.com> Date: Wed, 13 Dec 2017 17:35:51 +0530 Message-ID: <1513166759-13466-11-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513166759-13466-1-git-send-email-hemant.agrawal@nxp.com> References: <1513166759-13466-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131576404283269314; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(7966004)(336005)(346002)(376002)(39380400002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(51234002)(47776003)(106466001)(575784001)(104016004)(2351001)(105606002)(86362001)(8936002)(5660300001)(8676002)(50226002)(68736007)(81156014)(356003)(81166006)(305945005)(54906003)(50466002)(85426001)(48376002)(36756003)(2950100002)(498600001)(316002)(4326008)(6916009)(16586007)(6666003)(77096006)(53936002)(97736004)(51416003)(76176011)(2906002)(8656006); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2362; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD016; 1:0P9TDr/kS0ltvW1euIuj4fh3n80ZDrwtVeboK6D/FRIGRHEQqjlOanmW+q/jnRlhOLVmwvTDp+8iheTffmQWQGn7o03ztt0sXy+VhF7SJVuP0SHxPueEsQVhBDeQPM8K MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1419a9f5-7267-45ba-a0c2-08d542220897 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:CY1PR03MB2362; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2362; 3:KcnX9n118nrFtHZbKXr5V2s4rfIHdBWRJ7d197FKqZDXYSC3rlKISrw6EzHQ174w7Py/n4UXrieF3VqNJwiuoyuV+V8TjMTXONL97KD+EaWXSGaavsJOUj4IB6D+iXvsj48US8IMBJ+bbkkGKRXmyzOC22L0bqm5ltBCKgNtUjXM0xRdvoIsRC23X+9CpS7w7rDHlQHzil3g2x6/T5iVsZrBcptaubxeaRdG7w/gkZ847A2w3xYKlKMev98gvVlcOv1zsJpvmwcNJN3vINcj1Y6rncm2z7xUB/7XcQFSl5Okyd9I2lSwwRA5WiPee+3GCPxFHEDdlxVqpzapZ3q3NkOgHev2v1caPPrPHWgbSe0=; 25:Z7AXRsWcT+X0PROTrhlFI7mupux9XZG0dTN0iFZP2jVFHiw/m5/oNUQ8GIip/68FBCDhzeYYlclzMiucL6tSSH8u0m4L5l5zGO7Md3KQbkNHX1ujAY2jqG3bCmZXvSSnA8sZimWXvBenCBtYhQ5vMnKRFowzrl3WNwpk53TZJd02jaYxqZLzB6NRTQ7rn5gf8lvT8qyRSLsqlDhevoz6GnEUbDnWKMf1iT6fkFwBw2sjWX1HYybL33s5Dseny9m8fK2IsN4tuhzCyd3WfImyfN3exm8PskRtQH59zsGrtiD9ywEXy3kRmpN6LNc69QtikUuiaBtmpI6bBlPfJLSilVFo2FOvzGMg6RGvcSwbfDY= X-MS-TrafficTypeDiagnostic: CY1PR03MB2362: X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2362; 31:cCwjZu54HNh6KEbERU2PZGDNXLUScb8fmUqf2KZPYrAleGcROZW2EWNiD/EWMURwB6EXQRaXxwsR4fAqUbIYFjPQ5KMGmG8ZzjsTx607hSEd1YJtISWD2PaFhJQbFsaKGzuigNGfCTbm0CFpCHOc0U1FMpiOm/dyfoVAAbw8NpQU8iLlujtE4OCWGud1YS6e4uiHgQY4dXk4dzp08C7pXv/JdrdMn6sJ4C2cfP1Ui24=; 4:F4sLayz1rZA3KXUOjqLVDRuNA+nLrhdx0emw1U1urZM50lzB5aWL9INDNawIPlV0U7ZfLk4Lg0KU+b4niifjKRHyL7tfKmN+frS1RlGs+y3hTXmOI0qofC9UrGJMQmrNANWWTJSJ2uUW2B7J8bN12LBc/G0fWVrP6/WSlM8Po+4AK62HrsyWKLqM1u6hbacwCMpnolIOMKrxb6wYWPLdAQu8IP6VTJaXN3yhOfL5cDeM7ORjckw42Nk8O+DkpsHouojEN4tf+o9B6NvICWXDJNnJMjZPYltL0Ube6PkQsu0q/GgrDStXFpk3A5DJ7PU7 X-Microsoft-Antispam-PRVS: <CY1PR03MB2362D130BF8D29F07139F89C89350@CY1PR03MB2362.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(3231023)(3002001)(93006095)(93001095)(10201501046)(6055026)(6096035)(20161123556025)(20161123561025)(20161123559100)(20161123565025)(20161123563025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(201708071742011); SRVR:CY1PR03MB2362; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:CY1PR03MB2362; X-Forefront-PRVS: 052017CAF1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2362; 23:WG/pFBQPLu+i7k/TXmXAxUWgj4NINzEpZslk0ZQhS?= g7reVVIWS1VIYdpJuqhRWQ2THM5ZMPrMTI4rYLOY4ccWsWxtvWBz3Io1t3rRs7kpweWCJtCPLwi6s4Kk4yRms98vBKglzHGaCXsNTzyrN68AjcY9Hdrx++FSsE5Qg9zzMSKy/q//8jhX6LU5jH6jDaBB+/44Jp3c+y9h/Waq+WrfKfDPpqD1rKQ4kg2m8hwYDzci/3Im8uFa4n7XGN70BPF4YPAaGnf3vJSAzVYkHa1Vl/3x9ggwPgZT/CS4+KKCXrNdqxDB+Vt2B8z86zVJBhGURLRf0fD6smouknQFCU183Tvad/y5yh9nDeANZIjSSEryXHcAp/RbOVtx4AD8EE7ERMxBLlP14J3x5kRkEYWBZKRGFx/bzWuoWlLN1d5y3WMDJO8WTmggdurKhnPaxJiZluSbRiVrk1trnPhaOoDvT4Rgz+H5Pn5DdyNDHzOi704E5YZHIAPhDYFow/+0933JFCgbj1i0/tmc56m2jeqMfWrTY3N6wH4TpXHrkh+fvmP9ZdE5yixGM4SDrMM4KkeUPN65sGAYKfUBerpbpjSP0HUNfc19UwOKvDrwky5t0lZjMuN71cZsrbxhhgJgKbG6pgOIbJZGnocDIqXaVuUXwmH7QRWgogejVXNVgtypaGdMgQzdAPHksljxGnpFEE57YHhRlN0VE8wU96JBwwnrq01wHi1Un+4xwHLUUP0nXsEF5Vxc0xOG18bU7pb9uh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vjbMDFGoo6E54nd615tnXvUvGoGdhr/rrRr+aqdRXup3GGy0vSxBcQowCbTe6aK0Hm1hQ2d33/EM85ITryIGrMnV3ttgDSOKeqw1Tlxm9QLD9Z4hqYo8XI9VrTlbdxfPdIQIfDYyBb1zkWD5q3ZcrpWlYZmC7saRbSzyj0KanrJtbFxBfWdfD1ZXI/etsN02NdsK24VLakHZB0Kz4KrlGtWtDI+U81El+PU5C10PlHC52yWNJdZawa8AkpB2J SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2017 12:07:08.1553 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1419a9f5-7267-45ba-a0c2-08d542220897 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: CY1PR03MB2362 Subject: [dpdk-dev] [PATCH 10/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 <dev.dpdk.org> List-Unsubscribe: <http://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: <http://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 b26e411..95d745e 100644 --- a/drivers/net/dpaa/dpaa_ethdev.h +++ b/drivers/net/dpaa/dpaa_ethdev.h @@ -67,7 +67,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 c0cfec9..1b0ca9a 100644 --- a/drivers/net/dpaa/dpaa_rxtx.c +++ b/drivers/net/dpaa/dpaa_rxtx.c @@ -695,7 +695,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; @@ -709,7 +709,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)) {