numam-dpdk/examples
Konstantin Ananyev a135e050ad examples/ipsec-secgw: fix packet length
for packets smaller then 64B some NICs reports pkt_len=64B.
As ipsec-secgw (and librte_ipsec) relies on pkt_len value to determine
payload length, that causes problems for small packets.
To fix the issue, check that pkt_len matches values in IPv4/IPv6 header
and re-adjust pkt_len if necessary.

Fixes: 906257e965 ("examples/ipsec-secgw: support IPv6")
Fixes: d299106e8e ("examples/ipsec-secgw: add IPsec sample application")
Cc: stable@dpdk.org

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
2019-07-05 15:28:14 +02:00
..
bbdev_app examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
bond examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
bpf examples/bpf: move from test directory 2019-02-26 15:29:07 +01:00
cmdline examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
distributor examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
ethtool net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
eventdev_pipeline examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
exception_path examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
fips_validation cryptodev: add feature flags to disable 2019-07-05 15:03:25 +02:00
flow_classify examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
flow_filtering examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
helloworld examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
ip_fragmentation examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
ip_pipeline cryptodev: add feature flags to disable 2019-07-05 15:03:25 +02:00
ip_reassembly examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
ipsec-secgw examples/ipsec-secgw: fix packet length 2019-07-05 15:28:14 +02:00
ipv4_multicast examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
kni examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
l2fwd examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
l2fwd-cat examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
l2fwd-crypto cryptodev: add feature flags to disable 2019-07-05 15:03:25 +02:00
l2fwd-jobstats examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
l2fwd-keepalive examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
l3fwd examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
l3fwd-acl examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
l3fwd-power examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
l3fwd-vf examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
link_status_interrupt examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
load_balancer examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
multi_process examples/multi_process: fix FreeBSD build 2019-06-05 15:13:06 +02:00
netmap_compat replace snprintf with strlcpy without adding extra include 2019-04-04 22:45:54 +02:00
ntb examples/ntb: add example for NTB 2019-07-05 12:50:19 +02:00
packet_ordering examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
performance-thread net: replace IPv4/v6 constants with uppercase name 2019-06-03 16:54:54 +02:00
ptpclient examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
qos_meter examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
qos_sched examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
quota_watermark net: add rte prefix to ether functions 2019-05-24 13:34:45 +02:00
rxtx_callbacks examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
server_node_efd fix off-by-one errors in snprintf 2019-05-29 13:02:53 +02:00
service_cores examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
skeleton examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
tep_termination examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
timer examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
vdpa examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
vhost examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
vhost_crypto cryptodev: add feature flags to disable 2019-07-05 15:03:25 +02:00
vhost_scsi examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
vm_power_manager examples/power: remove double copy of FIFO path 2019-07-04 22:42:45 +02:00
vmdq examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
vmdq_dcb examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
Makefile examples/ntb: add example for NTB 2019-07-05 12:50:19 +02:00
meson.build examples/ntb: add example for NTB 2019-07-05 12:50:19 +02:00