numam-dpdk/lib/ethdev
Ferruh Yigit 990912e676 ethdev: unify MTU checks
Both 'rte_eth_dev_configure()' & 'rte_eth_dev_set_mtu()' sets MTU but
have slightly different checks. Like one checks min MTU against
RTE_ETHER_MIN_MTU and other RTE_ETHER_MIN_LEN.

Checks moved into common function to unify the checks. Also this has
benefit to have common error logs.

Default 'dev_info->min_mtu' (the one set by ethdev if driver doesn't
provide one), changed to ('RTE_ETHER_MIN_LEN' - overhead). Previously it
was 'RTE_ETHER_MIN_MTU' which is min MTU for IPv4 packets. Since the
intention is to provide min MTU corresponding minimum frame size, new
default value suits better.

Suggested-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
2021-10-18 19:20:21 +02:00
..
ethdev_driver.h ethdev: hide internal structures 2021-10-13 22:14:59 +02:00
ethdev_pci.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ethdev_private.c ethdev: make fast-path functions to use new flat array 2021-10-13 22:14:58 +02:00
ethdev_private.h ethdev: copy fast-path API into separate structure 2021-10-13 22:14:58 +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 ethdev: fix representor port ID search by name 2021-10-12 16:54:20 +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: hide internal structures 2021-10-13 22:14:59 +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 ethdev: fix max Rx packet length 2021-10-18 19:20:20 +02:00
rte_ethdev.c ethdev: unify MTU checks 2021-10-18 19:20:21 +02:00
rte_ethdev.h ethdev: unify MTU checks 2021-10-18 19:20:21 +02:00
rte_flow_driver.h ethdev: query proxy port to manage transfer flows 2021-10-14 13:42:59 +02:00
rte_flow.c ethdev: query proxy port to manage transfer flows 2021-10-14 13:42:59 +02:00
rte_flow.h ethdev: add experimental comment for modify field action 2021-10-14 14:34:31 +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 API to get device configuration 2021-10-15 13:27:05 +02:00