enic: fix allocation when not using first numa node
authorDavid Marchand <david.marchand@6wind.com>
Fri, 11 Sep 2015 08:02:30 +0000 (10:02 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 20 Oct 2015 19:30:48 +0000 (21:30 +0200)
commit7a0b8b7cab6ac63d52ebc6fdc252c7fa5a70330d
tree72b065a3eda87c382827a24dceb4495f8b3c71f6
parent0ec33be4c8577c01b3d6e0fcba805a06d6ab4811
enic: fix allocation when not using first numa node

Seen by code review.

If dpdk is run with memory only available on socket != 0, then enic 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: Sujith Sankar <ssujith@cisco.com>
drivers/net/enic/enic_main.c