Explicitly set the ptd->n_packets to 0 if no packet is received in
memif_device_input_inline(). Otherwise ptd->n_packets just keeps
last time rx packets number, then this stale number is added to
memif_input_node->vectors_since_last_overflow in every dispatch_node()
call for memif_input_node.
Type: fix
Signed-off-by: Liangxing Wang <liangxing.wang@arm.com>
Change-Id: Ide98a481c925262f9a609535a314f784cab424d8
+ {
+ ptd->n_packets = 0;
+ goto refill;
+ }
n_desc = memif_parse_desc (ptd, mif, mq, cur_slot, n_slots);
n_desc = memif_parse_desc (ptd, mif, mq, cur_slot, n_slots);