kni: fix Rx loop limit
authorJay Rolette <rolette@infiniteio.com>
Wed, 3 Jun 2015 19:18:57 +0000 (14:18 -0500)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 16 Jun 2015 15:17:21 +0000 (17:17 +0200)
commitc1c016a3fce721a45a31fedcc65da89a70a19268
tree1a2f8748a3284e96fc26d3cb38adec0befb9dec5
parenta1f8789546ce5011de77361cbff3d3383464ffd7
kni: fix Rx loop limit

Loop processing packets dequeued from rx_q was using the number of
packets requested, not how many it actually received.

Variable rename to make code a little more clear

Signed-off-by: Jay Rolette <rolette@infiniteio.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
lib/librte_eal/linuxapp/kni/kni_net.c