eventdev: ease single-link queue config requirements
authorGage Eads <gage.eads@intel.com>
Wed, 9 Aug 2017 19:58:04 +0000 (14:58 -0500)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Tue, 10 Oct 2017 16:30:24 +0000 (18:30 +0200)
commit381acec2b1bd838c4a494b82c692db35573554da
tree68cbef84e4b9d12f78f01f2bc4739f603e6617cd
parent3494ed045e2736221806a954242c14467b86011b
eventdev: ease single-link queue config requirements

Events sent through single-link queues are naturally in-order and
atomic, without reordering or atomic scheduling. Logically the
nb_atomic_flows and nb_atomic_order_sequences arguments don't apply to a
single link queue, but applications must set these (depending on the queue
config type) to bypass the is_valid_{ordered, atomic}_queue_conf() checks
in the eventdev layer.

This commit updates those is_valid_* functions to ignore queues with the
SINGLE_LINK flag, to simplify their configuration.

Signed-off-by: Gage Eads <gage.eads@intel.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
examples/eventdev_pipeline_sw_pmd/main.c
lib/librte_eventdev/rte_eventdev.c
test/test/test_eventdev_sw.c