net/enic: refactor Tx mbuf recycling
authorJohn Daley <johndale@cisco.com>
Fri, 3 Jun 2016 00:22:52 +0000 (17:22 -0700)
committerBruce Richardson <bruce.richardson@intel.com>
Wed, 15 Jun 2016 15:13:56 +0000 (17:13 +0200)
commit36935afbc53cc66d13720c9b145a45f51daadf5d
tree3bb3bcc6793706c6a537431c6a1282f483c67b7c
parentfc2c8c0668fd79bc21088da0729dac9f10bdfd0a
net/enic: refactor Tx mbuf recycling

Mbufs were returned to the pool one at a time. Use rte_mempool_put_bulk
instead. There were multiple function calls for each buffer returned.
Refactor this code into just 2 functions.

Signed-off-by: John Daley <johndale@cisco.com>
drivers/net/enic/base/vnic_wq.h
drivers/net/enic/enic_rxtx.c