int CCoreEthIF::send_node(CGenNode * node) {
+#ifdef OPT_REPEAT_MBUF
+
if ( unlikely( node->get_cache_mbuf() !=NULL ) ) {
pkt_dir_t dir;
rte_mbuf_t * m=node->get_cache_mbuf();
send_pkt(lp_port,m,lp_stats);
return (0);
}
-
+#endif
CFlowPktInfo * lp=node->m_pkt_info;
rte_mbuf_t * m=lp->generate_new_mbuf(node);
lp->do_generate_new_mbuf_rxcheck(m, node, single_port);
lp_stats->m_template.inc_template( node->get_template_id( ));
}else{
+
+#ifdef OPT_REPEAT_MBUF
// cache only if it is not sample as this is more complex mbuf struct
if ( unlikely( node->can_cache_mbuf() ) ) {
if ( !CGlobalInfo::m_options.preview.isMbufCacheDisabled() ){
}
}
}
+#endif
+
}
/*printf("send packet -- \n");