i40e: fix base driver allocation when not using first numa node
authorDavid Marchand <david.marchand@6wind.com>
Thu, 3 Sep 2015 13:23:30 +0000 (15:23 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 9 Sep 2015 13:17:41 +0000 (15:17 +0200)
commit17e01e3141aa520042eb1fa705b3472757350bab
tree9757ab3c290fab9c987243e7897280fffcb2b55c
parent45e73f4208ee98f57d21322a9777d1c7479dbc80
i40e: fix base driver allocation when not using first numa node

Seen by code review.

If dpdk is run with memory only available on a non-0 socket, then i40e pmd
refuses to initialize ports as this pmd requires some memory on socket 0.
Fix this by setting socket to SOCKET_ID_ANY, so that allocations happen on
the caller socket.

Signed-off-by: David Marchand <david.marchand@6wind.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
drivers/net/i40e/i40e_ethdev.c