eventdev: limit port link operation to configured queues
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Mon, 6 Feb 2017 05:29:37 +0000 (10:59 +0530)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Tue, 4 Apr 2017 17:17:26 +0000 (19:17 +0200)
commitaf316ecf58dc4aa6bdc3665ed32854a4a3a3089a
treeef0c3a14afdd6e5fc52627c06f655fce0a15682b
parente3368ca99820e1ec1a91d489ce8cff28706ce059
eventdev: limit port link operation to configured queues

On port_setup, the link_map is updated only
for configured number of event queues.
Limit the port_links_get scan only to configured number
of event queues. Also, Limit the port link and unlink queue
validation to configured number of event queues.

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

Reported-by: Nipun Gupta <nipun.gupta@nxp.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Acked-by: Nipun Gupta <nipun.gupta@nxp.com>
lib/librte_eventdev/rte_eventdev.c