From: Hemant Agrawal Date: Wed, 10 Jan 2018 10:46:38 +0000 (+0530) Subject: app/testpmd: support loopback config for DPAA X-Git-Tag: spdx-start~382 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=83c82e15e1c02185d85e0db1908bc81c853254ce;p=dpdk.git app/testpmd: support loopback config for DPAA Signed-off-by: Hemant Agrawal --- diff --git a/app/test-pmd/Makefile b/app/test-pmd/Makefile index 82b3481c04..34125e5612 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 3b3fe15d74..653dda352d 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 @@ -12822,6 +12825,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: