net/ena: change memory type
authorRafal Kozik <rk@semihalf.com>
Thu, 7 Jun 2018 09:43:19 +0000 (11:43 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 14 Jun 2018 17:27:50 +0000 (19:27 +0200)
commit9f32c7e7e6ce58ab772913f54f8328c1c0186a17
tree4491978fb5bc395b505c7ca8465bd22d8e34da95
parent46916aa17d4b2007df8c0454f99ba0ca8b8cb93b
net/ena: change memory type

ENA_MEM_ALLOC_NODE not need to use contiguous physical memory.
Also using memset without checking if allocation succeed can cause
segmentation fault.

To avoid both issue use rte_zmalloc_socket.

Fixes: 3d3edc265fc8 ("net/ena: make coherent memory allocation NUMA-aware")
Cc: stable@dpdk.org
Signed-off-by: Rafal Kozik <rk@semihalf.com>
Acked-by: Michal Krawczyk <mk@semihalf.com>
drivers/net/ena/base/ena_plat_dpdk.h