Message ID | 1505559161-29222-12-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | Accepted |
Commit | d47f0292b8cb8c48c205587d07c567d696c49340 |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp1615716qgf; Sat, 16 Sep 2017 03:55:21 -0700 (PDT) X-Google-Smtp-Source: ADKCNb6MXTj5IZeuGD0kbJiNyxzbfnQIR9u1TCSJW0cKtjkfrlNEJhb78cKGYt5UCdAXmpjGn1ve X-Received: by 10.223.176.84 with SMTP id g20mr22269813wra.117.1505559321059; Sat, 16 Sep 2017 03:55:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505559321; cv=none; d=google.com; s=arc-20160816; b=aDw8vNKvNm4P/S2UYUPwm2Xs3F6Y1+mCkrYOLtfR7c6rHybzqTUixcFptx5tSmNBbO 9I4uYkWvg5IDwbV/dmxqpoIfN25xMQDV2XE87KkBrmtG2ec8ta9BYta3mdxSivYBaoIf 9OQ38rUoY+i/JJ5l4977EUSboGn2h/rxIqcHGVTmDWDU79Q3zD77E6PQeaLN3ObNRFho xiA/RiObK9ZS8+2chS7czjIM68kT9ktvssXwHvDhjdt5EGRahJY48cacThQ3sPeZ0pP/ ldz93JPaaf2XvOAmrHpbeUNDRkK7+8BYL64VDq3G9E6twC1vhu/Uf9VrQ2U90n3te+Vu hyRw== 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=jsg1zjxoMjBsMxWqo3N3g9209JIMgBrXSbbB4MLqQP8=; b=fsBX54FpQiA4ywww3h3FTCgeZTUtM8jQaZUbkj+QdvWS796lXbX3ptDdEpPPsYc23U M35IC6V43WOfhP9npSit6Bl26Ird2BykA+FMK20VTbuoUiwJXAvVQuXL6Zb6hXbXqXG7 s1I6maglqEDXhAuUvkm+wgKmS9CX7HKuaukJgtrTyqBLjRz10rJ0FRiJXcidEST5K/WQ lqXc0TL0Ap+tSMvviVjOl7i5xTAryVtmZLAs3jhEnO02sCd3Mgxb+wFhuWxxlME6uoVf n4Z6CjKQOuEeDKsPBh9r6XdL1Q4LBlWI9JQFsl7uL1mqWg6BvwGhTuKIM2HLnSD5Qrvj 7C6A== 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 61si2399996wrr.253.2017.09.16.03.55.20; Sat, 16 Sep 2017 03:55:21 -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 921CB1B1C4; Sat, 16 Sep 2017 12:53:37 +0200 (CEST) Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0069.outbound.protection.outlook.com [104.47.37.69]) by dpdk.org (Postfix) with ESMTP id 56CA01B1B3 for <dev@dpdk.org>; Sat, 16 Sep 2017 12:53:31 +0200 (CEST) Received: from BN3PR03CA0060.namprd03.prod.outlook.com (10.167.1.148) by BN6PR03MB2691.namprd03.prod.outlook.com (10.173.144.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11; Sat, 16 Sep 2017 10:53:29 +0000 Received: from BN1BFFO11FD019.protection.gbl (2a01:111:f400:7c10::1:167) by BN3PR03CA0060.outlook.office365.com (2a01:111:e400:7a4d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10 via Frontend Transport; Sat, 16 Sep 2017 10:53:29 +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 BN1BFFO11FD019.mail.protection.outlook.com (10.58.144.82) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.13.11 via Frontend Transport; Sat, 16 Sep 2017 10:53:29 +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 v8GAr6uw028328; Sat, 16 Sep 2017 03:53:27 -0700 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: <dev@dpdk.org> CC: <ferruh.yigit@intel.com>, <shreyansh.jain@nxp.com> Date: Sat, 16 Sep 2017 16:22:25 +0530 Message-ID: <1505559161-29222-12-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1505559161-29222-1-git-send-email-hemant.agrawal@nxp.com> References: <1504860327-18451-1-git-send-email-hemant.agrawal@nxp.com> <1505559161-29222-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131500328093487786; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(346002)(376002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(36756003)(110136004)(8676002)(47776003)(86362001)(4326008)(16586007)(53936002)(97736004)(68736007)(104016004)(6916009)(77096006)(2950100002)(189998001)(85426001)(8656003)(498600001)(106466001)(105606002)(76176999)(81156014)(2906002)(5003940100001)(2351001)(54906002)(33646002)(8936002)(356003)(50986999)(48376002)(50466002)(305945005)(81166006)(5660300001)(50226002)(316002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2691; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD019; 1:BTZ+ksieF0qFwQ0eoJJRXOiqpn0Y6/kFy4uWs3HOPDmEz9BGxwBJVV7AtyLdmIkHFs9UV9tjUEKeD6qFmq1btQ0ZNjv61cJTIx+1M7LXDOOeW9AqjkRFxuZ++YafFKCz MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: baab8911-d72d-48cc-b14b-08d4fcf12a50 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BN6PR03MB2691; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2691; 3:MpsenVLuy0xHDLzBzclZ7V1UEwsQ+mM3x6fMw4u0tGfQgUqsVJppYJyNrniQP4WLCrSlMBBsnuZ8xusPQD2CF4AL+fMnD5ksPIboOWnr5dSsBSJHstcALaPpL1hSoZATUHZSsTpe7z5i21uXCGn1lLib2rVg5d9NwXVcXnZbeKgpw3uvpWVdn2s6lAtKb+iVNzURq5ijKgMGkOwMa3vT0Vfxa6qWKZrW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Ru3mO3EFCEDPof5dd9tSI= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: <BN6PR03MB26911479870130267DBC6B04896D0@BN6PR03MB2691.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6096035)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123563025)(20161123561025)(20161123559100)(20161123556025)(20161123565025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR03MB2691; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR03MB2691; X-Forefront-PRVS: 0432A04947 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2691; 23:zSEhwEDlSsMBjYK05oRQiyiAhAQrA5ZJG/sH3hD1k?= ++Y7mwSaNLIWnXyFy8FnskOr3C5fV3W3zgaQha3Al3u4BJhPVMVhE59eQzkbuBjYSZYba6zm3ojrrvwVejtrS1wvKLk8MuMyinIPYcaLCcrxy+EcMz5/DtNcyqI+ovd0AJ3QRUOBzIdcxEec8zI5SVMH3yY3Xd39PNMFeXybKcEnZumAd5w6n+wadPI06kTUhglIbSWjNsgrWdz73H8crwiMBOYgIJj4Un2tfbz6am6xQYl15HmvEHUL+YUyNsgoFgrlgw1uAkKuFMcVS7YnQjK2knCUhZweDxbam6/6xH7dacnK31Nxt4t4br9u90zkmfU7nP2amjl04Iv57JeLUFD2PoZFlZgdrhIiSihefSTb7Yizq5TaKFeWQIzRt1qdHUoziUfjlpioitjo18gpQd7vIHZCriwNkF3oZ7ns9V/L1iGXodKIkpAUkm3p8XKoHPYzWmgQWpIR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c/SV1JNPORsXUYeWVoYN6h8mt1eF+/vh3lR2sMgPxmiJvSdMOytSF2LpOWq3RUCrfP4Xxs9YXfzbHaJ1O0uJED3kHgjCLGsmYb5zxVY9I2zjpFDVOla87RoY/F4gM4T4b/rVM1+tfBK5pRSccH9wfbF7Mc=; 24:KL6MqLqjgKhTC7soHlK5k83iR5pIVPppU0MFPQ5kTT6RpWq6as07NfTBcVL+XNB2cHxriWFVWVhGyMAnRQ6UvSu2BvwoDAMy2i0IeHzaw2s=; 7:aQHU9fbmiITKiYFwTT+l/vea9fayDNKEa7oVaBY4sWVm/I2hdn0PEfpE/Oq0OhAnV+H4E6Fq2R+tSs/ilVYFaCfuoHnITxDwC+Yjp37WIl/g13ZIPXT+cNpBf1NGpJOo64i8KsG1lDw1IYVAB0JhislmcxZmRMbZQ5P/+zdcY648FcEL7nUDhHw620Rg24SLcCUaUKoC1zWXRiEPq4eVOnBJg+9DyO6KAwthG0Dxhmw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2017 10:53:29.1615 (UTC) 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: BN6PR03MB2691 Subject: [dpdk-dev] [PATCH v3 11/27] net/dpaa2: add support for congestion overhead 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 |
NXP DPAA2 PMD updates
|
expand
|
diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 945dcc7..d7950a5 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -419,6 +419,7 @@ dpaa2_dev_rx_queue_setup(struct rte_eth_dev *dev, /*enabling per rx queue congestion control */ taildrop.threshold = CONG_THRESHOLD_RX_Q; taildrop.units = DPNI_CONGESTION_UNIT_BYTES; + taildrop.oal = CONG_RX_OAL; PMD_INIT_LOG(DEBUG, "Enabling Early Drop on queue = %d", rx_queue_id); ret = dpni_set_taildrop(dpni, CMD_PRI_LOW, priv->token, diff --git a/drivers/net/dpaa2/dpaa2_ethdev.h b/drivers/net/dpaa2/dpaa2_ethdev.h index 07e1da6..6ee1a9f 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.h +++ b/drivers/net/dpaa2/dpaa2_ethdev.h @@ -61,6 +61,7 @@ * currently considering 32 KB packets */ #define CONG_THRESHOLD_RX_Q (64 * 1024) +#define CONG_RX_OAL 128 /* Size of the input SMMU mapped memory required by MC */ #define DIST_PARAM_IOVA_SIZE 256
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> --- drivers/net/dpaa2/dpaa2_ethdev.c | 1 + drivers/net/dpaa2/dpaa2_ethdev.h | 1 + 2 files changed, 2 insertions(+) -- 2.7.4