eventdev: remove default queue overriding
authorHarry van Haaren <harry.van.haaren@intel.com>
Fri, 10 Mar 2017 15:19:15 +0000 (15:19 +0000)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Tue, 4 Apr 2017 17:19:51 +0000 (19:19 +0200)
commit361e73364578dc5295280ccb4068e6790848d0fa
tree49d7ef23eb440e6840b0c1ba19d958c3ace960d1
parentec455b1cabb1ffc60c186c97a8e5e7244288e391
eventdev: remove default queue overriding

PMDs that only do a specific type of scheduling cannot provide
CFG_ALL_TYPES, so the Eventdev infrastructure should not demand
that every PMD supports CFG_ALL_TYPES.

By not overriding the default configuration of the queue as
suggested by the PMD, the eventdev_common unit tests can pass
on all PMDs, regardless of their capabilities.

RTE_EVENT_QUEUE_CFG_DEFAULT is no longer used by the eventdev layer
it can be removed now. Applications should use CFG_ALL_TYPES
if they require enqueue of all types a queue, or specify which
type of queue they require.

The CFG_DEFAULT value is changed to CFG_ALL_TYPES in event/skeleton,
to not break the compile.

A capability flag is added that indicates if the underlying PMD
supports creating queues of ALL_TYPES.

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
drivers/event/skeleton/skeleton_eventdev.c
lib/librte_eventdev/rte_eventdev.c
lib/librte_eventdev/rte_eventdev.h