Go to file
Cunming Liang b94580d688 malloc: avoid unknown socket id
Add check for rte_socket_id(), avoid get unexpected return like (-1).
By using rte_malloc_socket(), socket id is assigned by socket_arg.
If socket_arg set to SOCKET_ID_ANY, it expects to use the socket id to which the current cores belongs.
As the thread may affinity on a cpuset, the cores in the cpuset may belongs to different NUMA nodes.
The value of _socket_id probably be SOCKET_ID_ANY(-1), the case is not expected in origin malloc_get_numa_socket().

Signed-off-by: Cunming Liang <cunming.liang@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2015-02-24 20:22:34 +01:00
app app/test: add unit tests for --lcores option 2015-02-24 20:22:08 +01:00
config ethdev: support optional Rx and Tx callbacks 2015-02-24 00:38:27 +01:00
doc doc: describe ACL memory size build parameter 2015-02-24 04:05:27 +01:00
examples examples/packet_ordering: move creation of reorder buffer 2015-02-24 03:04:10 +01:00
lib malloc: avoid unknown socket id 2015-02-24 20:22:34 +01:00
mk mk: fix build with Debian/Ubuntu-specific gcc version 2015-02-24 12:11:16 +01:00
pkg version: 1.8.0 2014-12-20 00:38:39 +01:00
scripts scripts: find areas without maintainer 2015-02-09 15:15:04 +01:00
tools tools: enable binding device to uio_pci_generic 2015-02-20 23:34:44 +01:00
.gitignore init DPDK repository 2013-03-07 10:57:42 +01:00
GNUmakefile remove trailing whitespaces 2014-06-11 00:29:34 +02:00
LICENSE.GPL doc: GPL/LGPL licenses 2013-07-25 14:43:06 +02:00
LICENSE.LGPL doc: fix file format (dos to unix) 2013-09-06 11:43:07 +02:00
MAINTAINERS maintainers: claim VFIO and IVSHMEM 2015-02-24 12:23:18 +01:00
Makefile remove trailing whitespaces 2014-06-11 00:29:34 +02:00