netdev-dpdk: Apply batch truncation API.
authorWilliam Tu <u9012063@gmail.com>
Mon, 25 Jul 2016 15:14:24 +0000 (08:14 -0700)
committerDaniele Di Proietto <diproiettod@vmware.com>
Mon, 25 Jul 2016 19:47:20 +0000 (12:47 -0700)
commit7d6d1a40dccf4996ecd517bca397bc53334f0085
tree5a4da3217402fb6784888aa5bbf5dd4f2438f51f
parent38c44378433b377bea6d4ff0fa4412a356cbfad3
netdev-dpdk: Apply batch truncation API.

Instead of looping into each packet and check whether to truncate, the
patch moves it out of the loop and uses batch API.  If truncation is
not set, checking 'trunc' in 'struct dp_packet_batch' at per-batch basis
can skip the per-packet checking overhead.

Signed-off-by: William Tu <u9012063@gmail.com>
Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
lib/netdev-dpdk.c