From: Thomas Monjalon Date: Fri, 25 Feb 2022 15:26:53 +0000 (+0100) Subject: app/testpmd: fix build without drivers X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1a2eaefa47ba1e0e199cfe8a4653a5023425bce5;p=dpdk.git app/testpmd: fix build without drivers When ixgbe and bnxt are disabled, compilation was failing: app/test-pmd/cmdline.c:9396:11: error: variable 'vf_rxmode' set but not used Fixes: 4cfe399f6550 ("net/bnxt: support to set VF rxmode") Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon Acked-by: Bruce Richardson Acked-by: Ajit Khaparde --- diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index b4ba8da2b0..7ab0575e64 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -9409,6 +9409,7 @@ cmd_set_vf_rxmode_parsed(void *parsed_result, } RTE_SET_USED(is_on); + RTE_SET_USED(vf_rxmode); #ifdef RTE_NET_IXGBE if (ret == -ENOTSUP)