numam-dpdk/lib
Andrew Rybchenko bf3785fbd8 net: check first segment length on SW VLAN insertion
SW VLAN insertion relies on Ethernet addresses location in contiguous
memory (do not split across mbuf segments). There is no any formal
requirements on data location and mbuf structure which guarantee it.
So, check it explicitly to avoid corrupted packets if the condition
is violated. Typically software VLAN insertion is done on Tx prepare
stage and application will get indication that the packet is invalid
and cannot be transmitted.

Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2020-09-18 18:55:10 +02:00
..
librte_acl build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_bbdev build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_bitratestats build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_bpf bpf: promote library as stable 2020-09-16 18:52:55 +02:00
librte_cfgfile build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_cmdline build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_compressdev build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_cryptodev build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_distributor build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_eal service: retrieve lcore active state 2020-09-21 16:37:11 +02:00
librte_efd build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_ethdev ethdev: support TM for shaper config in packet mode 2020-09-18 18:55:10 +02:00
librte_eventdev build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_fib build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_flow_classify build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_graph build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_gro build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_gso build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_hash build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_ip_frag build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_ipsec build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_jobstats build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_kni mem: remove physical address aliases 2020-09-19 00:25:35 +02:00
librte_kvargs build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_latencystats build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_lpm build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_mbuf mbuf: remove physical address alias 2020-09-19 00:25:37 +02:00
librte_member build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_mempool mempool: remove physical address aliases 2020-09-19 00:25:37 +02:00
librte_meter build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_metrics build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_net net: check first segment length on SW VLAN insertion 2020-09-18 18:55:10 +02:00
librte_node build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_pci pci: move resource mapping to the PCI bus 2020-09-21 10:12:10 +02:00
librte_pdump build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_pipeline build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_port build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_power build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_rawdev rawdev: mark start and stop functions optional 2020-09-11 11:51:16 +02:00
librte_rcu build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_regexdev build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_reorder build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_rib build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_ring config: remove default configs used with make 2020-09-08 00:11:30 +02:00
librte_sched build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_security build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_stack build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_table build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_telemetry telemetry: build stubs on Windows 2020-09-11 01:55:35 +02:00
librte_timer build: remove makefiles 2020-09-08 00:09:50 +02:00
librte_vhost build: remove makefiles 2020-09-08 00:09:50 +02:00
meson.build ethdev: build on Windows 2020-09-11 01:55:39 +02:00