numam-dpdk/lib/librte_ethdev
Yunjian Wang 4bb02a6f5b ethdev: fix data type for port id
The ethdev port id is 16 bits now. This patch fixes the data type
of the variable for 'pid', which changing from uint32_t to uint16_t.

RTE_MAX_ETHPORTS is the maximum number of ports, which customized by
the user. To avoid 16-bit unsigned integer overflow, the valid value
of RTE_MAX_ETHPORTS should be set from 0 to UINT16_MAX, and it is
safer to cut one more port from space.

So we use RTE_BUILD_BUG_ON() to ensure that RTE_MAX_ETHPORTS is less
to UINT16_MAX.

Fixes: 5b7ba31148 ("ethdev: add port ownership")
Cc: stable@dpdk.org

Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2020-11-04 14:48:45 +01:00
..
ethdev_private.c ethdev: move representor parsing functions 2018-10-26 22:14:06 +02:00
ethdev_private.h rename private header files 2019-10-27 22:03:06 +01:00
ethdev_profile.c ethdev: change vtune profiling approach 2018-08-28 15:27:39 +02:00
ethdev_profile.h ethdev: fix build when vtune profiling is on 2020-04-21 13:57:06 +02:00
ethdev_trace_points.c trace: simplify trace point registration 2020-07-05 21:34:21 +02:00
meson.build build: standardize component names and defines 2020-10-19 22:15:34 +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: add definitions for EEPROM standards 2019-10-23 16:43:08 +02:00
rte_eth_ctrl.h ethdev: move L2 tunnel config structure to ixgbe driver 2020-11-03 23:35:06 +01:00
rte_ethdev_core.h ethdev: make flow API thread safe 2020-10-16 00:44:58 +02:00
rte_ethdev_driver.h ethdev: remove L2 tunnel offload control API 2020-11-03 23:35:06 +01:00
rte_ethdev_pci.h ethdev: reset device and interrupt pointers on release 2020-09-30 19:19:13 +02:00
rte_ethdev_trace_fp.h ethdev: add tracepoints 2020-04-23 15:40:06 +02:00
rte_ethdev_trace.h ethdev: change stop operation callback to return int 2020-10-16 22:26:41 +02:00
rte_ethdev_vdev.h ethdev: remove redundant license text 2020-09-18 18:55:08 +02:00
rte_ethdev.c ethdev: fix data type for port id 2020-11-04 14:48:45 +01:00
rte_ethdev.h ethdev: document Rx packet number requirement for vector Rx 2020-11-03 23:35:06 +01:00
rte_flow_driver.h ethdev: rename tunnel flow offload callbacks 2020-10-19 23:28:22 +02:00
rte_flow.c app/testpmd: fix RSS key for flow API RSS rule 2020-11-03 23:24:26 +01:00
rte_flow.h ethdev: introduce transfer attribute to shared action conf 2020-11-03 23:35:07 +01:00
rte_mtr_driver.h ethdev: make device operations struct private 2020-09-18 18:55:08 +02:00
rte_mtr.c remove experimental tags from all symbol definitions 2019-06-29 19:04:43 +02:00
rte_mtr.h ethdev: replace license text with SPDX tag 2019-07-29 15:07:48 +02:00
rte_tm_driver.h ethdev: make device operations struct private 2020-09-18 18:55:08 +02:00
rte_tm.c ethdev: rename folder to library name 2018-04-27 18:01:00 +01:00
rte_tm.h ethdev: support TM for shaper config in packet mode 2020-09-18 18:55:10 +02:00
version.map ethdev: remove L2 tunnel offload control API 2020-11-03 23:35:06 +01:00