eventdev: fix links map initialization for SW PMD
authorGage Eads <gage.eads@intel.com>
Mon, 3 Apr 2017 12:35:50 +0000 (18:05 +0530)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Tue, 4 Apr 2017 17:17:33 +0000 (19:17 +0200)
commitd6c40e22cd65f2c7bd5a9d8a086dc37cf8d85cba
tree697e8990b7605852b0286175fac707c3dcb538c2
parentc16321995049fbb6a7cab1f9870e212a2756a77d
eventdev: fix links map initialization for SW PMD

This patch initializes the links_map array entries to
EVENT_QUEUE_SERVICE_PRIORITY_INVALID, as expected by
rte_event_port_links_get(). This is necessary for the sw eventdev PMD,
which does not initialize links_map when rte_event_port_setup() calls
rte_event_port_unlink().

Fixes: 4f0804bbdfb9 ("eventdev: implement the northbound APIs")

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