ip_frag: disable ip fragmentation if mbuf refcnt is disabled
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 22 Oct 2014 11:17:01 +0000 (12:17 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 29 Oct 2014 23:51:10 +0000 (00:51 +0100)
commitc0cddf03f10f633639d9ad9582cfbd171be0ed75
treee14cd70de94607314915b810759399193da999cc
parent33e79bed3edc2bcf59909f89ec39d2530b6913fe
ip_frag: disable ip fragmentation if mbuf refcnt is disabled

rte_ipv4_fragment_packet() and rte_ipv6_fragment packet()
call rte_pktmbuf_attach() to attach the segment of the original
packet to the segment of the new fragmented one. Such function
is not declared if RTE_MBUF_REFCNT is disabled, as it needs to
call rte_mbuf_refcnt_update, not declared either.

Therefore, the ipv4/v6 fragmentation libraries are disabled
in that situation.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
lib/librte_ip_frag/Makefile
lib/librte_ip_frag/rte_ip_frag.h