ethdev: support optional Rx and Tx callbacks
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 23 Feb 2015 18:30:09 +0000 (18:30 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 23 Feb 2015 23:38:27 +0000 (00:38 +0100)
commit4dc294158cac46b6b69b60ff4216503777c5eb57
treeb6fb0dfc13d8ff2af590aa7132d1a0d4b54a4891
parent1a9a0b9b020ab5d93f4c3ceb617d7f5008aa94a2
ethdev: support optional Rx and Tx callbacks

Add optional support for inline processing of packets inside the RX
or TX call. For an RX callback, what happens is that we get a set of
packets from the NIC and then pass them to a callback function, if
configured, to allow additional processing to be done on them, e.g.
filling in more mbuf fields, before passing back to the application.
On TX, the packets are similarly post-processed before being handed
to the NIC for transmission.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Signed-off-by: John McNamara <john.mcnamara@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
config/common_bsdapp
config/common_linuxapp
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h
lib/librte_ether/rte_ether_version.map