Go to file
Mohammad Abdul Awal b4572daa2c ethdev: fix string length in name comparison
The current code compares two strings upto the length of 1st string
(searched name). If the 1st string is prefix of 2nd string (existing name),
the string comparison returns the port_id of earliest prefix matches.
This patch fixes the bug by using strcmp instead of strncmp.

Fixes: 9c5b8d8b9f ("ethdev: clean port id retrieval when attaching")
Cc: stable@dpdk.org

Signed-off-by: Mohammad Abdul Awal <mohammad.abdul.awal@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.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 ethdev: fix string length in name comparison 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