Skip to content

Commit

Permalink
app/testpmd: fix build without drivers
Browse files Browse the repository at this point in the history
[ upstream commit 1a2eaef ]

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: 4cfe399 ("net/bnxt: support to set VF rxmode")

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
  • Loading branch information
tmonjalo authored and bluca committed Feb 28, 2022
1 parent 2d1c255 commit 3fc564b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/test-pmd/cmdline.c
Expand Up @@ -8739,6 +8739,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)
Expand Down

0 comments on commit 3fc564b

Please sign in to comment.