port: fix reassembly and fragmentation
authorPiotr Azarewicz <piotrx.t.azarewicz@intel.com>
Wed, 28 Oct 2015 13:30:44 +0000 (14:30 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 25 Nov 2015 23:32:12 +0000 (00:32 +0100)
commitd2b55249bcb52f9251e4d2da379ac89058ecc54d
tree1481060ce5849f202766521d89ad3d649cf60fd8
parentd58f69c54172ed9c1b8510eaf4e4c5d97352bc6b
port: fix reassembly and fragmentation

Bug fixes for ring ports with IPv4/IPv6 reassembly support.
Previous implementation can't work properly due to incorrect choosing
process function.
Also, assuming that, when processing ip packet, ip header is know we can
set l3_len parameter here.

Fix usage RTE_MBUF_METADATA_* macros due to redefinition the macros.

Fixes: 50f54a84dfb7 ("port: add IPv6 reassembly port")
Fixes: ba92d511ddac ("port: move metadata offset reference at mbuf head")

Signed-off-by: Piotr Azarewicz <piotrx.t.azarewicz@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_port/rte_port_frag.c
lib/librte_port/rte_port_ras.c