[dpdk-dev] [PATCH v2] ethdev: verify reserved HW ring

Ferruh Yigit ferruh.yigit at intel.com
Wed Jul 8 20:14:50 CEST 2020


On 6/24/2020 10:35 AM, Ferruh Yigit wrote:
> Function 'rte_eth_dma_zone_reserve()' returns an existing memzone based
> on name match, but other requested attributes are discarded.
> This may cause driver using a memzone with wrong size or alignment.
> 
> Verify size, alignment and socket_id for matched memzone, and do not use
> memzone if any one of the attributes are not justified.
> 
> It is possible to free the existing memzone and allocate again with the
> requested attributes but it is better caller do the explicit free.
> 
> Reported-by: Renata Saiakhova <renata.saiakhova at ekinops.com>
> Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
> Reviewed-by: Andrew Rybchenko <arybchenko at solarflare.com>

Applied to dpdk-next-net/master, thanks.


More information about the dev mailing list