Skip to contentSkip to conversation

cmdline.c: error: ‘cmd_set_vf_rxmode’ undeclared here (not in a function)

PATCH In review Jan Viktorin 2 participants 4 messages Jun 15, 2017

lore
Share & tools
lore
#0 lore raw

Hi, my testing build for ARMv7 has failed during the last night with the following output:

...
AR librte_pmd_octeontx_ssovf.a
SYMLINK-FILE include/rte_pmd_octeontx_ssovf.h
INSTALL-LIB librte_pmd_octeontx_ssovf.a
== Build app
== Build app/test-pmd
CC testpmd.o
CC parameters.o
CC cmdline.o
/var/lib/jenkins/jobs/dpdk-armv7/workspace/app/test-pmd/cmdline.c:13813:27: error: ‘cmd_set_vf_rxmode’ undeclared here (not in a function)
(cmdline_parse_inst_t *)&cmd_set_vf_rxmode,

                           ^

make[3]: *** [cmdline.o] Error 1 make[2]: *** [test-pmd] Error 2 make[1]: *** [app] Error 2
make: *** [all] Error 2

I've bisected the source of the problem to the following commit:

commit 4cfe399f65507f30ddc5df63854638f83f385cce (refs/bisect/bad)

Author: Ajit Khaparde <[email protected]>
Date:   Thu Jun 1 12:07:22 2017 -0500

net/bnxt: support to set VF rxmode

This patch adds support to configure the VF L2 Rx settings. The per VF setting is maintained in bnxt_child_vf_info.l2_rx_mask

 app/test-pmd/cmdline.c                    | 15 ++++++++++++---
 drivers/net/bnxt/bnxt_hwrm.c              | 24 +++++++++++++++++++++---
 drivers/net/bnxt/bnxt_hwrm.h              |  2 ++
 drivers/net/bnxt/bnxt_rxq.c               | 13 ++++++++++---
 drivers/net/bnxt/bnxt_vnic.h              |  5 +++++
 drivers/net/bnxt/rte_pmd_bnxt.c           | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/net/bnxt/rte_pmd_bnxt.h           | 19 +++++++++++++++++++
 drivers/net/bnxt/rte_pmd_bnxt_version.map |  1 +
 8 files changed, 124 insertions(+), 9 deletions(-)

Regards
Jan

Signature · 4 lines
   Jan Viktorin                  E-mail: [email protected]
   System Architect              Web:    www.RehiveTech.com
   RehiveTech
   Brno, Czech Republic
#1 lore raw

15/06/2017 09:26, Jan Viktorin:

Quoted 6 lines

Hi, my testing build for ARMv7 has failed during the last night with the following output:

/var/lib/jenkins/jobs/dpdk-armv7/workspace/app/test-pmd/cmdline.c:13813:27: error: ‘cmd_set_vf_rxmode’ undeclared here (not in a function)
(cmdline_parse_inst_t *)&cmd_set_vf_rxmode,

                           ^

I'm working on it and another error due to ixgbe bypass. Thanks for reporting.

#2 lore raw

PATCH 1/1 app/testpmd: fix build without ixgbe

In reply to Jan Viktorin

cmd_set_vf_rxmode_parsed() was defined only in the build context of RTE_LIBRTE_IXGBE_PMD:
app/test-pmd/cmdline.c:13817:27: error: ‘cmd_set_vf_rxmode’ undeclared here

Fixes 4cfe399f6550 ("net/bnxt: support to set VF rxmode")
---
 app/test-pmd/cmdline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
app/test-pmd/cmdline.c +1 -1
index 7f5373a7e..105c71f39 100644
@@ -6803,6 +6803,7 @@ cmdline_parse_inst_t cmd_set_vf_traffic = {
 		NULL,
 	},
 };
+#endif /* RTE_LIBRTE_IXGBE_PMD */
 
 /* *** CONFIGURE VF RECEIVE MODE *** */
 struct cmd_set_vf_rxmode {
@@ -6894,7 +6895,6 @@ cmdline_parse_inst_t cmd_set_vf_rxmode = {
 		NULL,
 	},
 };
-#endif
 
 /* *** ADD MAC ADDRESS FILTER FOR A VF OF A PORT *** */
 struct cmd_vf_mac_addr_result {
Signature · 1 line
2.13.1
#3 lore raw

Re: [PATCH] app/testpmd: fix build without ixgbe

15/06/2017 12:17, Thomas Monjalon:

Quoted 8 lines

cmd_set_vf_rxmode_parsed() was defined only in the build context of RTE_LIBRTE_IXGBE_PMD:
app/test-pmd/cmdline.c:13817:27: error: ‘cmd_set_vf_rxmode’ undeclared here

Fixes 4cfe399f6550 ("net/bnxt: support to set VF rxmode")

Applied quickly