[dpdk-dev] [PATCH] ethdev: additional parameter in RX callback

John McNamara john.mcnamara at intel.com
Thu Mar 12 17:54:27 CET 2015


This patch is a minor extension to the recent patchset for RX/TX callbacks
based on feedback from users implementing solutions based on it.

The patch adds a new parameter to the RX callback to pass in the number of
available RX packets in addition to the number of dequeued packets.
This provides the RX callback functions with additional information
that can be used to decide how packets from a burst are handled.

The TX callback doesn't require this additional parameter so the RX
and TX callbacks no longer have the same function parameters. As such
the single RX/TX callback has been refactored into two separate callbacks.

Since this is an API change we hope it can be included in 2.0.0 to avoid
changing the API in a subsequent release.    


John McNamara (1):
  ethdev: added additional packet count parameter to RX callbacks

 examples/rxtx_callbacks/main.c |    3 +-
 lib/librte_ether/rte_ethdev.c  |    8 ++--
 lib/librte_ether/rte_ethdev.h  |   74 ++++++++++++++++++++++++++--------------
 3 files changed, 54 insertions(+), 31 deletions(-)

-- 
1.7.4.1



More information about the dev mailing list