aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOsama Abboud <osamaabb@amazon.com>2024-08-04 11:09:40 +0000
committerOsama Abboud <osamaabb@FreeBSD.org>2024-10-15 16:53:08 +0000
commita20a329b107fb0933ba6da150372a5c2457d2c8c (patch)
tree439190ecf5a48ed1ffe202717d30706a643c6602
parenta3b938b9999f917ade1e194e46c973cfa892d297 (diff)
ena: Add rx_overruns to keep alive desc and admin stats
This commit introduces two rx_overrun stats to both aenq_keep_alive_desc and ena_admin_basic_stats structs. The new statistics notify about RX drops that happen when RX ring doesn't have enough buffers available and count RX drops due to insufficient buffers provided by host respectively. Approved by: cperciva (mentor) MFC after: 2 weeks Sponsored by: Amazon, Inc.
-rw-r--r--ena_defs/ena_admin_defs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ena_defs/ena_admin_defs.h b/ena_defs/ena_admin_defs.h
index 80189e89f06a..302ab6c2efa1 100644
--- a/ena_defs/ena_admin_defs.h
+++ b/ena_defs/ena_admin_defs.h
@@ -472,6 +472,10 @@ struct ena_admin_basic_stats {
uint32_t tx_drops_low;
uint32_t tx_drops_high;
+
+ uint32_t rx_overruns_low;
+
+ uint32_t rx_overruns_high;
};
/* ENI Statistics Command. */
@@ -1269,6 +1273,10 @@ struct ena_admin_aenq_keep_alive_desc {
uint32_t tx_drops_low;
uint32_t tx_drops_high;
+
+ uint32_t rx_overruns_low;
+
+ uint32_t rx_overruns_high;
};
struct ena_admin_ena_mmio_req_read_less_resp {