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

2020-06-24 Thread Ferruh Yigit
On 6/23/2020 5:58 PM, Andrew Rybchenko wrote: > On 6/23/20 7:41 PM, 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. >

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

2020-06-23 Thread Andrew Rybchenko
On 6/23/20 7:41 PM, 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 matche

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

2020-06-23 Thread Ferruh Yigit
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 th