net/ena: fix assigning NUMA node to IO queue
authorMichal Krawczyk <mk@semihalf.com>
Tue, 4 Jun 2019 10:59:36 +0000 (12:59 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 13 Jun 2019 14:54:30 +0000 (23:54 +0900)
commit4217cb0b7d2c5385f06f531af7f14b860927aba7
tree9d8b58d5d5a4c44df1de36ffd92a8546cbd4f2a2
parent33f9630fc23dd550c0b2bca85f6c2b1aecc4a4ff
net/ena: fix assigning NUMA node to IO queue

Previous solution was using memzones in invalid way in hope to assign
IO queue to the appropriate NUMA zone.

The right way is to use socket_id from the rx/tx queue setup function
and then pass it to the IO queue.

Fixes: 3d3edc265fc8 ("net/ena: make coherent memory allocation NUMA-aware")
Cc: stable@dpdk.org
Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
drivers/net/ena/ena_ethdev.c
drivers/net/ena/ena_ethdev.h