net: Add a qp_stats.rx.bad.no_mem counter

Add a new statistics counter for packets dropped due to allocation failure.

Signed-off-by: Vlad Zolotarov <vladz@cloudius-systems.com>
This commit is contained in:
Vlad Zolotarov
2015-04-20 11:32:46 +03:00
parent e9a59e5f8d
commit 35199f5353

View File

@@ -192,6 +192,12 @@ struct qp_stats {
++total;
}
void inc_no_mem() {
++no_mem;
++total;
}
uint64_t no_mem; // Packets dropped due to allocation failure
uint64_t total; // total number of erroneous packets
uint64_t csum; // packets with bad checksum
} bad;