ethdev: check queue stats mapping input arguments
authorKiran Kumar <kkokkilagadda@caviumnetworks.com>
Wed, 11 Jul 2018 08:41:59 +0000 (14:11 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 13 Jul 2018 22:09:55 +0000 (00:09 +0200)
commitde9c75a5485832104d2a0c246544ba3a511802b4
tree0813899d58f9a98112aa26dfe11ce21d42b061c7
parentbeff6d8e8e2e50dc341a23c4b947ed09487f4b31
ethdev: check queue stats mapping input arguments

With current implementation, we are not checking for queue_id range
and stat_idx range in stats mapping function. This patch will add
check for queue_id and stat_idx range.

Fixes: 5de201df892 ("ethdev: add stats per queue")

Signed-off-by: Kiran Kumar <kkokkilagadda@caviumnetworks.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
lib/librte_ethdev/rte_ethdev.c