Re: [dpdk-dev] [PATCH] net/qede: fix alloc from socket 0

2018-02-24 Thread Patil, Harish
-Original Message- From: Pascal Mazon Date: Friday, February 23, 2018 at 4:53 AM To: "dev@dpdk.org" , "Mody, Rasesh" , Harish Patil , "Shaikh, Shahed" Cc: "pascal.ma...@6wind.com" , "sta...@dpdk.org" Subject: [PATCH] net/qede: fix alloc from socket 0 >In case osal_dma_alloc_coherent() i

[dpdk-dev] [PATCH] net/qede: fix alloc from socket 0

2018-02-23 Thread Pascal Mazon
In case osal_dma_alloc_coherent() is 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 ca