Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157987956
D56640.id176520.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D56640.id176520.diff
View Options
Index: sys/dev/ena/ena.h
===================================================================
--- sys/dev/ena/ena.h
+++ sys/dev/ena/ena.h
@@ -417,6 +417,8 @@
counter_u64_t rx_drops;
counter_u64_t tx_drops;
+
+ counter_u64_t rx_overruns;
};
/* Board specific private data structure */
Index: sys/dev/ena/ena.c
===================================================================
--- sys/dev/ena/ena.c
+++ sys/dev/ena/ena.c
@@ -3090,15 +3090,19 @@
sbintime_t stime;
uint64_t rx_drops;
uint64_t tx_drops;
+ uint64_t rx_overruns;
desc = (struct ena_admin_aenq_keep_alive_desc *)aenq_e;
rx_drops = ((uint64_t)desc->rx_drops_high << 32) | desc->rx_drops_low;
tx_drops = ((uint64_t)desc->tx_drops_high << 32) | desc->tx_drops_low;
+ rx_overruns = ((uint64_t)desc->rx_overruns_high << 32) | desc->rx_overruns_low;
counter_u64_zero(adapter->hw_stats.rx_drops);
counter_u64_add(adapter->hw_stats.rx_drops, rx_drops);
counter_u64_zero(adapter->hw_stats.tx_drops);
counter_u64_add(adapter->hw_stats.tx_drops, tx_drops);
+ counter_u64_zero(adapter->hw_stats.rx_overruns);
+ counter_u64_add(adapter->hw_stats.rx_overruns, rx_overruns);
stime = getsbinuptime();
atomic_store_rel_64(&adapter->keep_alive_timestamp, stime);
Index: sys/dev/ena/ena_sysctl.c
===================================================================
--- sys/dev/ena/ena_sysctl.c
+++ sys/dev/ena/ena_sysctl.c
@@ -419,6 +419,8 @@
&hw_stats->rx_drops, "Receive packet drops");
SYSCTL_ADD_COUNTER_U64(ctx, hw_list, OID_AUTO, "tx_drops", CTLFLAG_RD,
&hw_stats->tx_drops, "Transmit packet drops");
+ SYSCTL_ADD_COUNTER_U64(ctx, hw_list, OID_AUTO, "rx_overruns", CTLFLAG_RD,
+ &hw_stats->rx_overruns, "Receive overruns");
/* ENA Admin queue stats */
admin_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "admin_stats",
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 28, 5:12 AM (9 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33578078
Default Alt Text
D56640.id176520.diff (1 KB)
Attached To
Mode
D56640: ena: Report RX overrun errors
Attached
Detach File
Event Timeline
Log In to Comment