dpdk: Move file-prefix flag processing into linux only block
Type: improvement Change-Id: I01a228618db72f8db4e439c6ad636defe79a695a Signed-off-by: Tom Jones <thj@freebsd.org>
This commit is contained in:
@ -1122,6 +1122,7 @@ dpdk_config (vlib_main_t * vm, unformat_input_t * input)
|
|||||||
#ifdef __linux
|
#ifdef __linux
|
||||||
vlib_thread_main_t *tm = vlib_get_thread_main ();
|
vlib_thread_main_t *tm = vlib_get_thread_main ();
|
||||||
uword default_hugepage_sz, x;
|
uword default_hugepage_sz, x;
|
||||||
|
u8 file_prefix = 0;
|
||||||
#endif /* __linux__ */
|
#endif /* __linux__ */
|
||||||
u8 *s, *tmp = 0;
|
u8 *s, *tmp = 0;
|
||||||
int ret, i;
|
int ret, i;
|
||||||
@ -1129,7 +1130,6 @@ dpdk_config (vlib_main_t * vm, unformat_input_t * input)
|
|||||||
int eal_no_hugetlb = 0;
|
int eal_no_hugetlb = 0;
|
||||||
u8 no_pci = 0;
|
u8 no_pci = 0;
|
||||||
u8 no_vmbus = 0;
|
u8 no_vmbus = 0;
|
||||||
u8 file_prefix = 0;
|
|
||||||
u8 *socket_mem = 0;
|
u8 *socket_mem = 0;
|
||||||
u32 vendor, device, domain, bus, func;
|
u32 vendor, device, domain, bus, func;
|
||||||
void *fmt_func;
|
void *fmt_func;
|
||||||
@ -1289,6 +1289,7 @@ dpdk_config (vlib_main_t * vm, unformat_input_t * input)
|
|||||||
}
|
}
|
||||||
foreach_eal_double_hyphen_predicate_arg
|
foreach_eal_double_hyphen_predicate_arg
|
||||||
#undef _
|
#undef _
|
||||||
|
#ifdef __linux__
|
||||||
#define _(a) \
|
#define _(a) \
|
||||||
else if (unformat(input, #a " %s", &s)) \
|
else if (unformat(input, #a " %s", &s)) \
|
||||||
{ \
|
{ \
|
||||||
@ -1304,6 +1305,7 @@ dpdk_config (vlib_main_t * vm, unformat_input_t * input)
|
|||||||
}
|
}
|
||||||
foreach_eal_double_hyphen_arg
|
foreach_eal_double_hyphen_arg
|
||||||
#undef _
|
#undef _
|
||||||
|
#endif /* __linux__ */
|
||||||
#define _(a,b) \
|
#define _(a,b) \
|
||||||
else if (unformat(input, #a " %s", &s)) \
|
else if (unformat(input, #a " %s", &s)) \
|
||||||
{ \
|
{ \
|
||||||
|
Reference in New Issue
Block a user