From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Content-Type: text/plain 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:nSyfnbq90wmwKaDJxvkV0ORXAzpKThZ1tvaXsGdRBSTAvp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Mp2iyqSemyxj4db16+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?= =?us-ascii?Q?9FN3Uk1QX6zogs74hnoMJD9AtrsAPEsG4bYIiIn8qXqoj7FzQsb1Lbbv4apA?= =?us-ascii?Q?ZBfHKK6g9eeedrf2H3LmgETu8O2b0brMiyb4qEBf8Wh1B7s5yqhmCSZJomog?= =?us-ascii?Q?H08K7fB865z5p+1WuTIwVrX6C6Kzn17UIaMtnlkXgqoeTTDHh5aZpKqyj5n6?= =?us-ascii?Q?p88xi7u0uKpFFg59/2GEKvYGuBaCrwaX5lnt7AId3eZtdzy+ImiF5qawKPrl?= =?us-ascii?Q?RhaEqZZnQTUR2mPO3B77oDo12XaL/D7/6+hVqHVyMA1WABxW87ILIhusgpHn?= =?us-ascii?Q?JKmRRM+apL7rM7LemL2WlInOQoIqLianDF2y7R1KPWOQVW+4LHjyK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UiiL2tHBcsZfScRKtRqPRS7qBq3hLcJ3AKpaZk2i4HTnRbt9OT75honnItL0v8No0adj6T4LRwTRwA41PlNNLiiJoxOqSsTVyOWY5NBllSgvDKYiicGCahvJjjW2KlCrje/MQAAKtTShn4h/7XJU1RcJ9hz5zJlJDsoKFHXurSb1jfKJ6f8lebpl4XgL+hY8=; 5:V17sjtXh2Y11Rf28ofH0NR8YduhMKgJIItw7FV+KzZdOX6n1qX+6148ly95wcpXvuGW1syX7EMLH4hb3kp5EmlQwFAb04E4ZWJFN5lfWCmXERfO1B8E1a9wbySbTYtHmjl9iQBSEDFdG3R43dVtvfIb40i6a3BJGXRG6qNfzAtc=; 24:cdICbhi2O7r5xlQ6bYcx69YNtt0kVSgE9tGMEb4eLd1Daoou+6xfGpZQ2JXTApI6jbBdKkwhSbzj/5PYbv6LjOV1bqgKqrnTLD1YaK/RF5s=; 7:4jRUahNpabPgJJ8/ETt4eutEfITFA8C70x12/wtddumZvqGMgQfNa0muIY7ccWegG1Mnw+fo381p2PP6YW2Gq5lzxUGyCTuW0s6q3bWLFuendJoK45sLF6skSziKdWeg/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: , X-List-Received-Date: Tue, 09 Jan 2018 13:24:50 -0000 Signed-off-by: Hemant Agrawal --- app/test-pmd/Makefile | 4 ++++ app/test-pmd/cmdline.c | 7 +++++++ 2 files changed, 11 insertions(+) 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: -- 2.7.4