netdev-dpdk: Keep calling rte_eth_tx_burst() until it returns 0
authorDaniele Di Proietto <ddiproietto@vmware.com>
Tue, 12 Aug 2014 17:43:36 +0000 (10:43 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Wed, 13 Aug 2014 00:38:48 +0000 (17:38 -0700)
commit1304f1f8a769bdfb4273b8bfaf2812e21042a68b
tree03a9cd59de590ff8ef264cb7dd94959985beab94
parentd731058395cbdff5b335bca1c9c7e6c1a221104e
netdev-dpdk: Keep calling rte_eth_tx_burst() until it returns 0

rte_eth_tx_burst() _should_ transmit every packet that it is passed unless the
queue is full. Nontheless some implementation of rte_eth_tx_burst (e.g.
ixgbe_xmit_pkts_vec()) does not transmit more than a fixed number (32) of
packets at a time.

With this commit we assume that there's an error only if rte_eth_tx_burst
returns 0.

Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
lib/netdev-dpdk.c