ip_frag: fix bit-fields in ipv6 fragment extension
authorPiotr Azarewicz <piotrx.t.azarewicz@intel.com>
Thu, 10 Sep 2015 07:09:17 +0000 (09:09 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 8 Oct 2015 11:15:17 +0000 (13:15 +0200)
commit4f8e575f8912c41506826946a8ac396be757060e
treede8af124dda3f0d28e7f4c256b3ae9313d6b4e12
parent97661df7d2d29f63280d436d7202a3fa8131895b
ip_frag: fix bit-fields in ipv6 fragment extension

Previous implementation won't work on every environment. The order of
allocation of bit-fields within a unit (high-order to low-order or
low-order to high-order) is implementation-defined.
Solution: used bytes instead of bit fields.

Signed-off-by: Piotr Azarewicz <piotrx.t.azarewicz@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_ip_frag/rte_ip_frag.h
lib/librte_ip_frag/rte_ipv6_fragmentation.c
lib/librte_ip_frag/rte_ipv6_reassembly.c
lib/librte_port/rte_port_ras.c