mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
dpif-netdev: Add configure to enable autovalidator at build time.
This commit adds a new command to allow the user to enable autovalidatior by default at build time thus allowing for runnig unit test by default. $ ./configure --enable-mfex-default-autovalidator Signed-off-by: Kumar Amber <kumar.amber@intel.com> Co-authored-by: Harry van Haaren <harry.van.haaren@intel.com> Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com> Acked-by: Eelco Chaudron <echaudro@redhat.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Ian Stokes <ian.stokes@intel.com>
This commit is contained in:
@@ -60,7 +60,11 @@ void
|
||||
dpif_miniflow_extract_init(void)
|
||||
{
|
||||
atomic_uintptr_t *mfex_func = (void *)&default_mfex_func;
|
||||
#ifdef MFEX_AUTOVALIDATOR_DEFAULT
|
||||
int mfex_idx = MFEX_IMPL_AUTOVALIDATOR;
|
||||
#else
|
||||
int mfex_idx = MFEX_IMPL_SCALAR;
|
||||
#endif
|
||||
|
||||
/* Call probe on each impl, and cache the result. */
|
||||
for (int i = 0; i < MFEX_IMPL_MAX; i++) {
|
||||
|
Reference in New Issue
Block a user