diff --git a/net/net.hh b/net/net.hh index a7c20f0274..a66bbf85f5 100644 --- a/net/net.hh +++ b/net/net.hh @@ -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;