From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0046.outbound.protection.outlook.com [104.47.37.46]) by dpdk.org (Postfix) with ESMTP id 7B08F9957 for ; Fri, 25 Aug 2017 12:50:30 +0200 (CEST) Received: from BLUPR0301CA0017.namprd03.prod.outlook.com (10.162.113.155) by CY4PR03MB3318.namprd03.prod.outlook.com (10.171.246.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.18; Fri, 25 Aug 2017 10:50:29 +0000 Received: from BN1AFFO11FD048.protection.gbl (2a01:111:f400:7c10::141) by BLUPR0301CA0017.outlook.office365.com (2a01:111:e400:5259::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.18 via Frontend Transport; Fri, 25 Aug 2017 10:50:28 +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 BN1AFFO11FD048.mail.protection.outlook.com (10.58.53.63) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1341.15 via Frontend Transport; Fri, 25 Aug 2017 10:50:28 +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 v7PAnw6I032070; Fri, 25 Aug 2017 03:50:25 -0700 From: Hemant Agrawal To: CC: , Date: Fri, 25 Aug 2017 16:19:30 +0530 Message-ID: <1503658183-4078-15-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503658183-4078-1-git-send-email-hemant.agrawal@nxp.com> References: <1503658183-4078-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131481318282044729; (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)(39860400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(48376002)(110136004)(50986999)(498600001)(5660300001)(189998001)(85426001)(8656003)(2950100002)(47776003)(6916009)(6666003)(77096006)(54906002)(53936002)(104016004)(50466002)(97736004)(86362001)(2906002)(105606002)(33646002)(4326008)(76176999)(8676002)(81166006)(356003)(8936002)(50226002)(2351001)(36756003)(5003940100001)(305945005)(68736007)(81156014)(106466001)(626005); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB3318; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD048; 1:N2ybKhuT4X/W5OM6o8tKxz9f1FKPOk+jOZcm0ectrUpnQsloDZawFvjTn6HDr1R1hX/AnDZmi3wNH+/us0Otov0GmO7yEtE/x+r/NEaTelvD/JckbllupB0g6Xk0EmEr MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b7788a65-9535-4c41-c3da-08d4eba71941 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:CY4PR03MB3318; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB3318; 3:Chu6/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GhvLQGwkhbgavoNhXpX1XdfqYy9/vMRHSEwaNsVQLvtyGT6QdrnKhyvknAUCma06Th7TyWoAvOODkpT9+6HbSNv1op2DFmNkTQ3LWq+1gNm8vXhbd55j8Sx5GhHcNI+ql573nc+UpU9SlEp/nf7ToFmZCtOgj6vfBIaFmyipmL9fueUfz//3QHgZWRFC8ptPPZANbwWWKL9ZScjVPjSTMI5HRTERHKO5nIngr5Y= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(13016025)(5005006)(8121501046)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6096035)(20161123559100)(20161123556025)(20161123565025)(20161123561025)(20161123563025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR03MB3318; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR03MB3318; X-Forefront-PRVS: 041032FF37 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR03MB3318; 23:9dTNT6qdUwOCyr+7M/bPGsVtUX2i48bcoZE8GoTl7?= =?us-ascii?Q?We9+nTnP6d7GepdNkjXdqlDEr9XcXR0IQGYEAOl/gGF654E7O+Ff3nfDjj3O?= =?us-ascii?Q?avsfixccWVWhCvoS7h8xIDAb2gS3kTxhG0u6z/SnvAa6aRLLvt+VnDndwhL8?= =?us-ascii?Q?GNTglOmh6voGGjFdFh2CcJx9LSXu8fxxarcOjI+UNwaPotFoSrmKJYlRkMH4?= =?us-ascii?Q?aOxvACVKUHIk2koXCIrW8h+rod39BFQPMoQgjrBpqMuaagSCv6cfSxh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pnV00oWb?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB3318; 6:SZJGZfVaHpglzRKOEHtryfbG7b2twDI3MFfKVwk+ujUFvBK03zkfewrOHyNdQ4ALtLVttRCoNt0JKSlNhHt0H/qPh03PaarWnpPEht75L3JYHRLrR382666P5ol/tjgAEL5iGsk0HMntHKRdhA/uwgxf9kAIxsG3BYRd9pznQEd9wpgXKZN3Lh8x3EeR20BYwiUdY4A4JEibDq3PGFuVueqjxRfyBApQHq7f2sIRrEaIDMPWTb2D/VZENh6Ekip1HugYBsnrfRXzZ1zssEAUucMRtWnyIuijQHJQTjVZJS63yGOZFIIWqK6r6yhU7OgnrLBd9jTtnIspi+nJWWLbVw==; 5:QToMkDxscVUVOnU21iU8mjzWloL1VN+a2EzHKopLqqk1PJPR0DqSKE5xXHNkkrPY7jgn3aQpBV5p17g0i/3s9Yzo3JRKipnSUIt4MUtz2+iaQPNcwyXFNzzHwr75h5ic3AgHhfVpaYnxBZ/E8TEpvg==; 24:lJ6ie5kXeWxgSCz2i4hzlbVb8c9rRn1zTLan3GRDPvMnCF3TEpozAUC9U0KavjrqaYWArfdi0Jf3jUGopZKYnzAa+nF8+vgfqbLfoI6DkDE=; 7:oL5f/LX5lL9MBLmQsiRhWjjCuK7HCUTIwnqzQgF+MUJXEKIC4Fq9exzLhhlHVpxPo6vsRhIisEEALqgwr56TKiCqpI/jZusGtGUhTlHbeTRxuOdRGj3UpxIuf1cXPc66VZ6A+1uoaDjPTsWf04omkWQBUF+XJE8zZjEzCnbdJquv010UXp2on92YBaN+ZzCF7wZDzsgTgh5XjBNe6F7MkMljyzOUUECrY9c1PBYK3CI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2017 10:50:28.0016 (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: CY4PR03MB3318 Subject: [dpdk-dev] [PATCH 14/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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2017 10:50:31 -0000 Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 1 + drivers/net/dpaa2/dpaa2_ethdev.h | 1 + 2 files changed, 2 insertions(+) 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 -- 2.7.4