examples/l3fwd: fix unaligned memory access on x86
authorHariprasad Govindharajan <hariprasad.govindharajan@intel.com>
Tue, 30 Jul 2019 13:26:38 +0000 (14:26 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 30 Jul 2019 20:05:00 +0000 (22:05 +0200)
commitd7f936190e8d8ad3f2c447c3e59d754501c44884
treeef74b4961e2e7e897fa3954810b9bc88307328eb
parent1868b17b570298e6fca900f047b9b8c3e7cf7373
examples/l3fwd: fix unaligned memory access on x86

Fix unaligned memory access when reading IPv6 header which
leads to segmentation fault by changing aligned memory read
to unaligned memory read.

Bugzilla ID: 279
Fixes: 64d3955de1de ("examples/l3fwd: fix ARM build")
Cc: stable@dpdk.org
Signed-off-by: Hariprasad Govindharajan <hariprasad.govindharajan@intel.com>
Reviewed-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
Reviewed-by: David Christensen <drc@linux.vnet.ibm.com>
Reviewed-by: Herakliusz Lipiec <herakliusz.lipiec@intel.com>
Tested-by: Herakliusz Lipiec <herakliusz.lipiec@intel.com>
examples/l3fwd/l3fwd_em.c