Go to file
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
app app/procinfo: fix strncpy usage in args parsing 2018-03-28 00:35:37 +02:00
buildtools buildtools: output build failure reason to stderr 2018-02-08 22:25:37 +01:00
config build: add meson cross-compilation config for dpaaX 2018-03-15 18:01:01 +01:00
devtools compat: relicense some files 2018-02-06 23:13:47 +01:00
doc doc: fix NFP NIC guide grammar 2018-03-30 14:08:43 +02:00
drivers net/qede: fix alloc from socket 0 2018-03-30 14:08:43 +02:00
examples examples/exception_path: limit core count to 64 2018-03-28 00:35:37 +02:00
kernel kni: fix build on RHEL 7.5 2018-03-28 00:15:08 +02:00
lib flow_classify: remove void pointer cast 2018-03-30 14:08:43 +02:00
license license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00
mk mk: fix kernel modules build dependency 2018-03-30 13:01:17 +02:00
pkg version: 18.02.0 2018-02-14 19:11:02 +01:00
test meter: add configuration profile 2018-02-19 22:28:05 +01:00
usertools usertools: support AVP device 2018-03-28 00:49:53 +02:00
.gitattributes improve git diff 2016-11-13 15:25:12 +01:00
.gitignore devtools: add tags and cscope index generation 2017-04-30 12:57:04 +02:00
GNUmakefile move kernel modules directories 2018-03-21 23:04:21 +01:00
MAINTAINERS move kernel modules directories 2018-03-21 23:04:21 +01:00
Makefile license: use SPDX tag in root makefile 2018-01-04 22:41:38 +01:00
meson_options.txt test: build app with meson as dpdk-test 2018-01-30 21:58:59 +01:00
meson.build move kernel modules directories 2018-03-21 23:04:21 +01:00
README license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org