From patchwork Tue Jan 9 13:23:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 123954 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4021721qgn; Tue, 9 Jan 2018 05:27:30 -0800 (PST) X-Google-Smtp-Source: ACJfBot/9vYoEq82KGBT8Z984uc19vW+bkxSlqI1h7+YES0rUSmNLLbdtAhB7SKsnfCELXNh9ad9 X-Received: by 10.223.139.75 with SMTP id v11mr12863638wra.244.1515504450881; Tue, 09 Jan 2018 05:27:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515504450; cv=none; d=google.com; s=arc-20160816; b=oO0vpnb1U8OiZ8MevCRVCH2YW/cTULkT5MfwRDIQKHOGjcVjncddtz1aLVilnIIami hMPFa7FO+hC3yF6QDM2a8B1eUyAPYsJHwIXJFL+eB7vIhIoMFNKBl81D70S/BKVIAFX2 f56KljBHtMjOHwGbAB4XEq8twOMe5mzooSEnYyDgWi+ya6gOTomz9ca6EakZ/ZpNPLEG HtEfVdlmiYU1FpCJQXvGoSWypeLyL5KSIjDAZe/UTKX0q6MSq9X6w3Pd65N0yMOaNTYF LbhkK1EJkk7eLjcuBce7HJ4Lt4l8brquq+YtOfQRMuZfrbVbAqwwH6W4n2NKI8Jq6n7L 8xkw== 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=ZhSkn8FFpRbGiwC/ZJtz5Ov7UCXIw/UsCzZmabqkaa4=; b=A7ZHnouMsTj6XZ3Mf8w29suSoz9uHe9uQN+wuFYqPIdbRUXJz/RrhMtSQzqsrevyvP sl8C+MJbvLdC1OijPBJw8YCys5lPrt/tdWwXNXa20zU2Q0v6sDkU4hpT0TmXHpgznLtJ vrtvFiTKA2TuDRXVjnhVGC2Y3VnlEue8CBGATOwRnluRhmc7jmVm6VCJBRTcQlm7DVQ5 9yMPI9xYjiNL7e8rXdJ+OP+ss/N7EvmwxBQKuUlpz8lHGV2yTgeEzMeDs4vmfwcmd5pM O88Zlp4Btc0SrvyZ63M4EOVUi/cZcO2Pn+IsyY4WLL6VrxsxcBU9YlYkTfAZxfCT/gMu P0Ag== 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 q9si11094845wrd.327.2018.01.09.05.27.30; Tue, 09 Jan 2018 05:27:30 -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 445F71B23A; Tue, 9 Jan 2018 14:24:52 +0100 (CET) Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0088.outbound.protection.outlook.com [104.47.38.88]) by dpdk.org (Postfix) with ESMTP id 364A71B231 for ; Tue, 9 Jan 2018 14:24:49 +0100 (CET) Received: from BLUPR0301CA0016.namprd03.prod.outlook.com (10.162.113.154) by BN6PR03MB2689.namprd03.prod.outlook.com (10.173.144.8) 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:48 +0000 Received: from BY2FFO11FD034.protection.gbl (2a01:111:f400:7c0c::180) by BLUPR0301CA0016.outlook.office365.com (2a01:111:e400:5259::26) 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:48 +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 BY2FFO11FD034.mail.protection.outlook.com (10.1.14.219) 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:17 +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 w09DOAVx017638; Tue, 9 Jan 2018 06:24:44 -0700 From: Hemant Agrawal To: CC: , Date: Tue, 9 Jan 2018 18:53:03 +0530 Message-ID: <1515504186-13587-16-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: 131599778573943967; (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)(346002)(39860400002)(396003)(376002)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(77096006)(81166006)(16586007)(2906002)(97736004)(48376002)(51416003)(296002)(356003)(54906003)(316002)(305945005)(8676002)(81156014)(85426001)(50466002)(8656006)(86362001)(6666003)(5660300001)(4326008)(68736007)(6916009)(2351001)(104016004)(47776003)(36756003)(106466001)(50226002)(53936002)(105606002)(2950100002)(76176011)(8936002)(498600001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2689; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD034; 1:Ay8VSK3aQoT8e8CYOSWyA+ij+R1LHtAixgxsoYaOtrq2TXmwCv0Hkj7q3RTRa4Ky2/erbAp27u2EhoHXjoFrv16j6fZTLcbgJzIgk71/pzyHyMvW5KaKl5reD2N64bGO MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5826cfd2-ee40-44f5-849f-08d5576448e2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:BN6PR03MB2689; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2689; 3:nSyfnbq90wmwKaDJxvkV0ORXAzpKThZ1tvaXsGdRBSTAvpWgh1N3J+UcoZzxCQFBIzrR+XyFMOvh+XMKk4NVlrPrdfHPYyhpxsQvwFlMPFM1wKneLmpNs4BiqlOYwJqC74YIShaSEDIkMHDL8XKXcuopejEHTlD2pZCJze1tqY/bPBVAzJkg3sxOxQFAGWOY4cBaCWxi+x2OA4OhcE6HqTA0D5NyL04iShyG0opPtJt7vH/84TKC212COMSZTz0WwmydUgowbWxN8Q6Nd+nOl2WGzbngwdZZCfPOfLJLlL+Zow4xoVqPowGTqTnzf+KmqQjYVczCWKvWja+hdKEdBM4cRkTzAa9/AnjLI0U+RRI=; 25:Wcb3DZ445dnR774x0VNBBNm5t7GuPdSCvjBGXX2xuz9udAUOnuxFTeil9p9WqD4/JxIuUeeXQWRm4/aJ+w++5h6MPhH4ojXXMjIJrs4F2iiuPHxV/HQ/QN3eItk17gQ5Qmmc1roHM3Eo65+jI4ga/rqcqPT27Qs/Mbl552a7NpUOy1CxWoO4q9gxiOBAVosWyKPlzybX7WYeda4lYbtnACpwqr0istECXTyW+v8kV2CXDGWLoF8zmiebtyCljmAV/iyD2G0BfvzEvlSgk+x2foIwYWOOaoAvwwfWVZhbCHfvJeNFf42p/MCfBWrflTveLhzL95pSnEd86XZpmQE69w== X-MS-TrafficTypeDiagnostic: BN6PR03MB2689: X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2689; 31:wHoA2pf1B9qvVw2snEB5aKqnJVybEbggiyuwV6V20mMjlUF+qFatFlgxhluuxxMhHvtqUNTARh4e9SmBeXmMPWd2iOYafffcQ5hDL2kx6URXPj1UzLVP8mOSEMRG4/cP0hOb0MJKwc4VStY9ZWnmeD2YBvEDPVnHOUs5WioAyh4+qSLJvibD7Y5VsWNHFeMwS7uCXON8DdAS9ckgvuOI8tYckThZ00f79lCYMchyPpg=; 4:RN9xmzKypevivk4q4DuN6sKEN/FdMDRoESQ3KoopLISnQ770v9F7mGPmYs3YIB9ZR11YjiI57WKof3RuUTtWZv0ssl7ZR4g7Hxm710uxqgDIV+akjvMp2iyqSemyxj4db16+izbiEuGT+XkW5/lbJp1IGTHzBu2QXAIDJ8+owE5gt57rFhGuYkTp9+anm5KYj6nfQkOJqpVouBG6LLMT7Ym7hyjgxCclwZmz94yCa6buKZax2Pj8x7XkkgsjDvmAQdSlIHNkZn63q/nXS5iGHJFOyz9rM+HR4dPHQYuRRb/IYGhZhfvNIPin6YuOVqfT X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231023)(944510075)(944921075)(946801075)(946901075)(6055026)(6096035)(20161123561025)(201703131430075)(201703131520075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123565025)(20161123563025)(20161123559100)(20161123556025)(201708071742011); SRVR:BN6PR03MB2689; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:BN6PR03MB2689; X-Forefront-PRVS: 0547116B72 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2689; 23:sSSWSbLspV+n0Rn9JI+zjT/RZ33pw3foRQSv6EBhF?= 9FN3Uk1QX6zogs74hnoMJD9AtrsAPEsG4bYIiIn8qXqoj7FzQsb1Lbbv4apAZBfHKK6g9eeedrf2H3LmgETu8O2b0brMiyb4qEBf8Wh1B7s5yqhmCSZJomogH08K7fB865z5p+1WuTIwVrX6C6Kzn17UIaMtnlkXgqoeTTDHh5aZpKqyj5n6p88xi7u0uKpFFg59/2GEKvYGuBaCrwaX5lnt7AId3eZtdzy+ImiF5qawKPrlRhaEqZZnQTUR2mPO3B77oDo12XaL/D7/6+hVqHVyMA1WABxW87ILIhusgpHnJKmRRM+apL7rM7LemL2WlInOQoIqLianDF2y7R1KPWOQVW+4LHjyKHHt0XEww2UFj54T2ibgOxdUcdW+341hrYXKX/ijd6t8/4JIXmPkVgNjmBE5yDq1CpXirG8WNzw87bE5nU75Kwn2IRJnmW24XNwJvnGXl4t4JJDkIpaaOxHuqGoBl8d62X8uVebBnb2MwDLWATcYPINRP3cHP/FzohXeQm+nw/+Ae4Q4M68RF4m87jCN8HR4cMyOVVZqf6IYUt4AGtZDSSY1Z7VrCLSgO66c7YtwhM6AMmwO+pjd91zF65yYcv1xdGdTirT8QOpeobzrTuWpG6DDB2Y1Xvl/tMGUARvLPlfQR/ejT1ZEmCpcFDdNvm6t0MBEGwb48XkbwNrfh7u5fW2Mwh/4t5BVdDHILE8+dNHT9I7pt3xPpiSSLuFyxlkxVwZ4Bng00BHHNMCeuCDs2472wzVTaj8OPa3Jruo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skSziKdWeg/CwSKQkkVwMS/H1PHjk4GkyCMWERdqpqk81cqmA2K2Eog2KD0MlCCnGjLGlWsftccbfPJHnJlFQLfMhDWqKagy6JaaveMYAIdToIdRCpb/N/3OHGGStsJC8Cu5MAW0yA SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2018 13:24:17.2071 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5826cfd2-ee40-44f5-849f-08d5576448e2 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: BN6PR03MB2689 Subject: [dpdk-dev] [PATCH v2 15/18] app/testpmd: add support for loopback config for dpaa 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" Signed-off-by: Hemant Agrawal --- app/test-pmd/Makefile | 4 ++++ app/test-pmd/cmdline.c | 7 +++++++ 2 files changed, 11 insertions(+) -- 2.7.4 diff --git a/app/test-pmd/Makefile b/app/test-pmd/Makefile index 82b3481..34125e5 100644 --- a/app/test-pmd/Makefile +++ b/app/test-pmd/Makefile @@ -43,6 +43,10 @@ ifeq ($(CONFIG_RTE_LIBRTE_PMD_BOND),y) LDLIBS += -lrte_pmd_bond endif +ifeq ($(CONFIG_RTE_LIBRTE_DPAA_PMD),y) +LDLIBS += -lrte_pmd_dpaa +endif + ifeq ($(CONFIG_RTE_LIBRTE_IXGBE_PMD),y) LDLIBS += -lrte_pmd_ixgbe endif diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index f71d963..32096aa 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -89,6 +89,9 @@ #include #include #endif +#ifdef RTE_LIBRTE_DPAA_PMD +#include +#endif #ifdef RTE_LIBRTE_IXGBE_PMD #include #endif @@ -12620,6 +12623,10 @@ cmd_set_tx_loopback_parsed( if (ret == -ENOTSUP) ret = rte_pmd_bnxt_set_tx_loopback(res->port_id, is_on); #endif +#ifdef RTE_LIBRTE_DPAA_PMD + if (ret == -ENOTSUP) + ret = rte_pmd_dpaa_set_tx_loopback(res->port_id, is_on); +#endif switch (ret) { case 0: