ethdev: fix check of threshold for Tx freeing
authorZoltan Kiss <zoltan.kiss@linaro.org>
Tue, 23 Jun 2015 18:43:12 +0000 (19:43 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 7 Jul 2015 14:31:48 +0000 (16:31 +0200)
commit72514b5d55431c4798ad25bcf6c67bc62b0a5800
tree3ce99d4ef7a4a449adbc738a1282d43cbcc0cfab
parentb35d0d80f0a809939549ddde99c1a76b7e38bff3
ethdev: fix check of threshold for Tx freeing

The parameter tx_free_thresh is not consistent between the drivers:
some use it as rte_eth_tx_burst() requires, some release buffers when
the number of free descriptors drop below this value.
Let's use it as most fast-path code does, which is the latter, and update
comments throughout the code to reflect that.

Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
drivers/net/e1000/em_rxtx.c
drivers/net/fm10k/fm10k.h
drivers/net/fm10k/fm10k_ethdev.c
drivers/net/fm10k/fm10k_rxtx.c
drivers/net/i40e/i40e_rxtx.c
drivers/net/i40e/i40e_rxtx.h
drivers/net/ixgbe/ixgbe_rxtx.c
drivers/net/ixgbe/ixgbe_rxtx.h
drivers/net/virtio/virtio_rxtx.c
lib/librte_ether/rte_ethdev.h