Skip to contentSkip to conversation

Rx/Tx callbacks in debug mode

DISCUSSION Thomas Monjalon 2 participants 2 messages Mar 23, 2015

lore
Share & tools
lore
#0 lore raw

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?

#1 lore raw
Quoted 9 lines · Thomas Monjalon

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?

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