Rx/Tx callbacks in debug mode
Hi,
As you may know, rte_eth_rx_burst() and rte_eth_tx_burst() have a debug-specific implementation enabled with RTE_LIBRTE_ETHDEV_DEBUG. I'm afraid these implementations have been forgotten when adding optional Rx/Tx callbacks. Or is it intended?
What do you think of removing these debug functions and insert extra checks with ifdef in an unique function?
Quoted 9 lines · Thomas Monjalon
Hi,
As you may know,
rte_eth_rx_burst()andrte_eth_tx_burst()have a debug-specific implementation enabled withRTE_LIBRTE_ETHDEV_DEBUG. I'm afraid these implementations have been forgotten when adding optional Rx/Tx callbacks. Or is it intended?What do you think of removing these debug functions and insert extra checks with ifdef in an unique function?
The omission was unintentional. I think removing duplicate functions and using a common version, if possible, is always a good idea, or else things like this keep happening! :-)
/Bruce