numam-dpdk/lib/ethdev
Viacheslav Galaktionov 10eaf41d70 ethdev: keep count of representor ranges in API
In its current state, the API can overflow the user-passed buffer if a new
representor range appears between function calls.

In order to solve this problem, augment the representor info structure with
the numbers of allocated and initialized ranges. This way the users of this
structure can be sure they will not overrun the buffer.

Fixes: 85e1588ca7 ("ethdev: add API to get representor info")
Cc: stable@dpdk.org

Signed-off-by: Viacheslav Galaktionov <viacheslav.galaktionov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Xueming Li <xuemingl@nvidia.com>
2021-07-10 11:29:11 +02:00
..
ethdev_driver.h ethdev: add queue state in queried queue information 2021-04-19 18:25:35 +02:00
ethdev_pci.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ethdev_private.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ethdev_private.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ethdev_profile.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ethdev_profile.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ethdev_trace_points.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ethdev_vdev.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
meson.build lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_class_eth.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_dev_info.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_eth_ctrl.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_ethdev_core.h ethdev: add dev configured flag 2021-07-08 13:05:55 +02:00
rte_ethdev_trace_fp.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_ethdev_trace.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_ethdev.c ethdev: keep count of representor ranges in API 2021-07-10 11:29:11 +02:00
rte_ethdev.h ethdev: keep count of representor ranges in API 2021-07-10 11:29:11 +02:00
rte_flow_driver.h ethdev: introduce indirect flow action 2021-04-19 18:25:42 +02:00
rte_flow.c ethdev: fix integrity flow item 2021-05-04 17:37:22 +02:00
rte_flow.h ethdev: fix doc of flow action 2021-07-02 19:03:03 +02:00
rte_mtr_driver.h ethdev: add pre-defined meter policy API 2021-04-21 12:22:17 +02:00
rte_mtr.c ethdev: add pre-defined meter policy API 2021-04-21 12:22:17 +02:00
rte_mtr.h ethdev: add pre-defined meter policy API 2021-04-21 12:22:17 +02:00
rte_tm_driver.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_tm.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_tm.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
version.map ethdev: add pre-defined meter policy API 2021-04-21 12:22:17 +02:00