|
@@ -123,6 +123,7 @@ int octeon_init_instr_queue(struct octeon_device *oct,
|
|
|
iq->do_auto_flush = 1;
|
|
|
iq->db_timeout = (u32)conf->db_timeout;
|
|
|
atomic_set(&iq->instr_pending, 0);
|
|
|
+ iq->pkts_processed = 0;
|
|
|
|
|
|
/* Initialize the spinlock for this instruction queue */
|
|
|
spin_lock_init(&iq->lock);
|
|
@@ -495,6 +496,7 @@ octeon_flush_iq(struct octeon_device *oct, struct octeon_instr_queue *iq,
|
|
|
lio_process_iq_request_list(oct, iq, 0);
|
|
|
|
|
|
if (inst_processed) {
|
|
|
+ iq->pkts_processed += inst_processed;
|
|
|
atomic_sub(inst_processed, &iq->instr_pending);
|
|
|
iq->stats.instr_processed += inst_processed;
|
|
|
}
|