test/eventdev: fix reconfigure values
Minimum value of nb_event_ports and/or nb_event_queues
should be one before reconfiguring the event device.
Fixes: f8f9d233ea
("test/eventdev: add unit tests")
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
This commit is contained in:
parent
836a9ddc3f
commit
ec455b1cab
@ -244,8 +244,8 @@ test_eventdev_configure(void)
|
||||
|
||||
/* re-configure */
|
||||
devconf_set_default_sane_values(&dev_conf, &info);
|
||||
dev_conf.nb_event_ports = info.max_event_ports/2;
|
||||
dev_conf.nb_event_queues = info.max_event_queues/2;
|
||||
dev_conf.nb_event_ports = RTE_MAX(info.max_event_ports/2, 1);
|
||||
dev_conf.nb_event_queues = RTE_MAX(info.max_event_queues/2, 1);
|
||||
ret = rte_event_dev_configure(TEST_DEV_ID, &dev_conf);
|
||||
TEST_ASSERT_SUCCESS(ret, "Failed to re configure eventdev");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user