ethdev: insert Rx callback as head of list
authorReshma Pattan <reshma.pattan@intel.com>
Wed, 15 Jun 2016 14:06:19 +0000 (15:06 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 16 Jun 2016 21:38:00 +0000 (23:38 +0200)
commitc8231c63ddcb29aa1aa77351339b05eb1f3db4b3
tree39b34a9e78590aab050b4b0d42f2a4cbb2b34a1e
parent525335f4ce34a4a5c0d897d4e9d192a43817f17c
ethdev: insert Rx callback as head of list

Added new public api rte_eth_add_first_rx_callback to add given
callback as head of the list.

The librte_pdump library should display Rx packets of the
NIC even before they are being processed by other callbacks
of the application (because other callbacks of the application
may change the packet data as part of the processing).
So packet capturing framework should register a callback at the
head of the Rx callback list so that callback always gets called
first before any other callbacks of the applications. Hence this API
is introduced.

Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h
lib/librte_ether/rte_ether_version.map