numam-dpdk/lib/librte_ethdev
Andrew Rybchenko b671987985 ethdev: avoid getting uninitialized info for bad port
rte_eth_dev_info_get() returns void and caller does know if the function
does its job or not. Changing of the return value to int would be
API/ABI breakage which requires deprecation process and cannot be
backported to stable branches. For now, make sure that device info is
initialized even in the case of invalid port ID.

Fixes: a30268e9a2 ("ethdev: reset whole dev info structure before filling")
Cc: stable@dpdk.org

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
2019-07-23 20:28:17 +02:00
..
ethdev_private.c ethdev: move representor parsing functions 2018-10-26 22:14:06 +02:00
ethdev_private.h ethdev: move representor parsing functions 2018-10-26 22:14:06 +02:00
ethdev_profile.c ethdev: change vtune profiling approach 2018-08-28 15:27:39 +02:00
ethdev_profile.h ethdev: change vtune profiling approach 2018-08-28 15:27:39 +02:00
Makefile ethdev: use new ethernet parsing function 2019-07-08 21:26:52 +02:00
meson.build ethdev: use new ethernet parsing function 2019-07-08 21:26:52 +02:00
rte_class_eth.c ethdev: use new ethernet parsing function 2019-07-08 21:26:52 +02:00
rte_dev_info.h ethdev: rename folder to library name 2018-04-27 18:01:00 +01:00
rte_eth_ctrl.h net: move TCP flags from ethdev header 2019-07-03 12:57:30 +02:00
rte_ethdev_core.h ethdev: add API to read device clock 2019-06-06 20:21:20 +09:00
rte_ethdev_driver.h enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
rte_ethdev_pci.h ethdev: avoid error on PCI unplug of closed port 2019-07-05 01:52:01 +02:00
rte_ethdev_vdev.h ethdev: rename folder to library name 2018-04-27 18:01:00 +01:00
rte_ethdev_version.map ethdev: add API to read device clock 2019-06-06 20:21:20 +09:00
rte_ethdev.c ethdev: avoid getting uninitialized info for bad port 2019-07-23 20:28:17 +02:00
rte_ethdev.h ethdev: support dynamic configuration of QinQ strip 2019-07-05 01:52:01 +02:00
rte_flow_driver.h enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
rte_flow.c ethdev: add GRE key field to flow API 2019-07-08 21:26:52 +02:00
rte_flow.h ethdev: add GRE key field to flow API 2019-07-08 21:26:52 +02:00
rte_mtr_driver.h meter: replace color definitions 2019-04-11 14:27:32 +02:00
rte_mtr.c remove experimental tags from all symbol definitions 2019-06-29 19:04:43 +02:00
rte_mtr.h enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
rte_tm_driver.h ethdev: rename folder to library name 2018-04-27 18:01:00 +01:00
rte_tm.c ethdev: rename folder to library name 2018-04-27 18:01:00 +01:00
rte_tm.h doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00