numam-dpdk/lib
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
..
acl
bbdev bbdev: add device info for data endianness 2021-10-18 20:11:16 +02:00
bitratestats bitrate: promote free function to stable 2021-10-01 15:31:47 +02:00
bpf
cfgfile
cmdline
compressdev
cryptodev cryptodev: fix multi-segment raw vector processing 2021-10-17 19:32:13 +02:00
distributor
dmadev dmadev: add flag for error handling support 2021-10-18 11:19:27 +02:00
eal mcslock: use WFE in lock for aarch64 2021-10-20 08:22:41 +02:00
efd efd: allow more CPU sockets in table creation 2021-10-01 16:33:20 +02:00
ethdev ethdev: unify MTU checks 2021-10-18 19:20:21 +02:00
eventdev ethdev: hide internal structures 2021-10-13 22:14:59 +02:00
fib sort symbol maps 2021-10-05 17:03:37 +02:00
flow_classify
graph
gro net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
gso
hash eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
ip_frag ip_frag: fix fragmenting IPv4 fragment 2021-10-14 08:52:34 +02:00
ipsec cryptodev: rename field in vector struct 2021-10-17 19:31:15 +02:00
jobstats
kni
kvargs kvargs: fix comments style 2021-09-30 17:38:13 +02:00
latencystats
lpm
mbuf mbuf: add IPsec ESP tunnel type 2021-10-17 14:07:03 +02:00
member
mempool mempool: accept user flags only 2021-10-20 10:03:55 +02:00
meter
metrics ethdev: hide internal structures 2021-10-13 22:14:59 +02:00
net net: fix aliasing in checksum computation 2021-10-18 18:15:58 +02:00
node
pci eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
pdump mempool: add namespace to flags 2021-10-20 10:00:16 +02:00
pipeline net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
port
power
rawdev
rcu
regexdev
reorder
rib sort symbol maps 2021-10-05 17:03:37 +02:00
ring ring: promote new sync modes and peek to stable 2021-10-05 10:09:15 +02:00
sched sched: get 64-bit greatest common divisor 2021-09-27 17:24:16 +02:00
security security: add reserved bit fields 2021-10-18 20:12:19 +02:00
stack stack: remove unneeded atomic header include 2021-10-19 17:15:10 +02:00
table eal: remove sys/queue.h from public headers 2021-10-01 13:09:43 +02:00
telemetry telemetry: fix socket path conflicts for in-memory mode 2021-10-14 20:31:10 +02:00
timer
vhost mempool: add namespace to flags 2021-10-20 10:00:16 +02:00
meson.build dmadev: introduce DMA device library 2021-10-17 20:49:57 +02:00