numam-dpdk/drivers/net/qede
Pascal Mazon 368b11185c net/qede: fix alloc from socket 0
In case osal_dma_alloc_coherent() or osal_dma_alloc_coherent_aligned() are
called from a management thread, core_id turn out to be LCORE_ID_ANY, and
the resulting socket for alloc will be socket 0.

This is not desirable when using a NIC from socket 1 which might very
likely be configured to use memory from that socket only.
In that case, allocation will fail.

To address this, use master lcore instead when called from mgmt thread.
The associated socket should have memory available.

Fixes: ec94dbc573 ("qede: add base driver")
Cc: stable@dpdk.org

Signed-off-by: Pascal Mazon <pascal.mazon@6wind.com>
Acked-by: Harish Patil <harish.patil@cavium.com>
Acked-by: Harish Patil <harish.patil@cavium.com>
2018-03-30 14:08:43 +02:00
..
base net/qede: fix alloc from socket 0 2018-03-30 14:08:43 +02:00
LICENSE.qede_pmd qede: add base driver 2016-05-06 15:51:22 +02:00
Makefile net/qede: fix icc build 2017-11-08 01:26:04 +01:00
qede_ethdev.c net/qede: fix tunnel parameters init 2018-02-08 18:42:14 +01:00
qede_ethdev.h net/qede: fix VF port creation sequence 2018-02-05 19:56:04 +01:00
qede_fdir.c memzone: rename address from physical to IOVA 2017-11-06 22:25:44 +01:00
qede_if.h ethdev: increase port id range 2017-10-06 18:23:25 +02:00
qede_logs.h net/qede: remove debug config option 2018-01-29 10:48:16 +01:00
qede_main.c net/qede: fix device link structure 2017-11-08 00:49:59 +01:00
qede_rxtx.c net/qede: fix few log messages 2018-02-05 19:56:04 +01:00
qede_rxtx.h net/qede: fix MTU set and max Rx length 2018-01-29 10:48:16 +01:00
rte_pmd_qede_version.map qede: add core driver 2016-05-06 15:51:22 +02:00