[PATCH v3 3/5] ethdev: mark mbufs in burst functions
Thomas Monjalon
thomas at monjalon.net
Mon Oct 13 17:32:20 CEST 2025
02/10/2025 09:44, Morten Brørup:
> > +#if RTE_MBUF_HISTORY_DEBUG
> > + uint16_t requested_pkts = nb_pkts;
> > + rte_mbuf_history_mark_bulk(tx_pkts, nb_pkts,
> > RTE_MBUF_HISTORY_OP_TX);
> > +#endif
>
> I think the compiler is clever enough to optimize away this if rte_mbuf_history_mark_bulk() does nothing. So you can omit the "#if RTE_MBUF_HISTORY_DEBUG". Also below.
OK let's do that.
More information about the dev
mailing list