distributor: fix check of workers number
authorHarman Kalra <hkalra@marvell.com>
Fri, 5 Jul 2019 10:05:12 +0000 (10:05 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 17 Jul 2019 20:35:19 +0000 (22:35 +0200)
commitacc6e5503e058553d668bc8f21038275aa3fa2e2
tree2c737cd82a27f2cdb768ddab78e2eb82eaa45fe5
parentc275ded129cc553309c544b0574826ab23eb2153
distributor: fix check of workers number

No of workers should never exceed RTE_MAX_LCORE.
RTE_DIST_ALG_SINGLE also require no of workers check.

Fixes: 775003ad2f96 ("distributor: add new burst-capable library")
Cc: stable@dpdk.org
Signed-off-by: Harman Kalra <hkalra@marvell.com>
Acked-by: David Hunt <david.hunt@intel.com>
lib/librte_distributor/rte_distributor.c