ethdev: add packet count parameter to Rx callback
authorJohn McNamara <john.mcnamara@intel.com>
Thu, 12 Mar 2015 16:54:28 +0000 (16:54 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 30 Mar 2015 19:51:48 +0000 (21:51 +0200)
commit467465d86df1c493345ff21487e97d787d63cce6
tree7be4e5e9ca0fd7957488441afa44adf32549c3f3
parent444b872a76915a8fd3fbcba9311720f2246e696f
ethdev: add packet count parameter to Rx callback

Added a 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.

Signed-off-by: John McNamara <john.mcnamara@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
examples/rxtx_callbacks/main.c
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h