distributor: enhance and fix tag matching
authorQinglai Xiao <jigsaw@gmail.com>
Mon, 10 Nov 2014 14:44:02 +0000 (16:44 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 13 Nov 2014 11:26:10 +0000 (12:26 +0100)
commitecb6c4559e1cd5b7cd0583cc01d2140a4c12e0c9
treede3be30854966696195d69fc290f6e501da824ad
parent9f2e99d171a13c2e9fd105f609b87aa0c502f497
distributor: enhance and fix tag matching

With introduction of in_flight_bitmask, the whole 32 bits of tag can be
used. Further more, this patch fixed the integer overflow when finding
the matched tags.
The maximum number workers is now defined as 64, which is length of
double-word. The link between number of workers and RTE_MAX_LCORE is
now removed. Compile time check is added to ensure the
RTE_DISTRIB_MAX_WORKERS is less than or equal to size of double-word.

Signed-off-by: Qinglai Xiao <jigsaw@gmail.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_distributor/rte_distributor.c
lib/librte_distributor/rte_distributor.h