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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user