app/testpmd: allocate txonly packets per bulk
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Tue, 2 Apr 2019 09:53:36 +0000 (09:53 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 5 Apr 2019 17:28:22 +0000 (19:28 +0200)
commit32941b5d52e4ef69b6fcf55765f4f1e8948494ab
treef58bb0600cba4473ae9442a06b3a70b1ea6dfdce
parent01b645dcff7f5f0c39031ef5c2de14ff0ae1d7cd
app/testpmd: allocate txonly packets per bulk

Use mempool bulk get ops to alloc burst of packets and process them.
If bulk get fails fallback to rte_mbuf_raw_alloc.

Tested-by: Yingya Han <yingyax.han@intel.com>
Suggested-by: Andrew Rybchenko <arybchenko@solarflare.com>
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/txonly.c