[dpdk-dev] [PATCH] mempool: fix corruption due to invalid handler
Thomas Monjalon
thomas.monjalon at 6wind.com
Fri Sep 16 16:19:38 CEST 2016
CC stable at dpdk.org
2016-09-08 10:29, Weiliang Luo:
> When using rte_mempool_create(), the mempool handler is selected
> depending on the flags given by the user:
> - multi-consumer / multi-producer
> - multi-consumer / single-producer
> - single-consumer / multi-producer
> - single-consumer / single-producer
>
> The flags were not properly tested, resulting in the selection of sc/sp
> handler if sc/mp or mc/sp was asked. This can lead to corruption or
> crashes because the get/put operations are not atomic.
>
> Fixes: 449c49b93a6b ("mempool: support handler operations")
>
> Signed-off-by: Weiliang Luo <droidluo at gmail.com>
> Acked-by: Olivier Matz <olivier.matz at 6wind.com>
Applied, thanks
More information about the dev
mailing list