ethdev: call Rx and Tx callbacks in the order they were added
authorJohn McNamara <john.mcnamara@intel.com>
Fri, 10 Jul 2015 13:08:13 +0000 (14:08 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 12 Jul 2015 21:36:18 +0000 (23:36 +0200)
commit073208ebab6ffac4b0eb9e57c48bbc1d8ee9d6af
tree563b89abe2fab3f4ff66fe1c86ab052f5e47a88c
parent980995f8cc56d560dba0c6229e50bec430c092d7
ethdev: call Rx and Tx callbacks in the order they were added

Change the order that user supplied RX and TX callbacks are called
to the order that they were added (fifo).

The previous calling order was the reverse of this (lifo) and was
counter intuitive for users.

Suggested-by: Robert Sanford <rsanford@akamai.com>
Signed-off-by: John McNamara <john.mcnamara@intel.com>
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h