SatCat5
satcat5::cfg::TrafficStats Struct Reference

Detailed Description

Data structure for reading per-port traffic statistics.

Frequency offset (Tx-Rx) is a reported in subns per second. (i.e., 2^16 LSB = one nanosecond per second = 1 part per billion.)

See also
cfg::NetworkStats.

Definition at line 19 of file cfgbus_stats.h.

#include <cfgbus_stats.h>

Public Member Functions

 TrafficStats (const TrafficStats &t)=default
 
TrafficStatsoperator= (const TrafficStats &t)=default
 
u32 errct_total () const
 Total errors across all types.
 

Public Attributes

u32 bcast_bytes
 Broadcast bytes received from device.
 
u32 bcast_frames
 Broadcast frames received from device.
 
u32 rcvd_bytes
 Total bytes received from device.
 
u32 rcvd_frames
 Total frames received from device.
 
u32 sent_bytes
 Total bytes sent from switch to device.
 
u32 sent_frames
 Total frames sent from switch to device.
 
s32 delta_freq
 Net frequency offset (see above)
 
u16 rate_mbps
 Link rate in Mbps.
 
u8 errct_mac
 MAC/PHY errors.
 
u8 errct_ovr_tx
 Tx-FIFO overflow (common)
 
u8 errct_ovr_rx
 Rx-FIFO overflow (rare)
 
u8 errct_pkt
 Packet errors (bad checksum, length, etc.)
 
u8 errct_ptp_rx
 RX PTP packets with bad tstamps.
 
u8 errct_ptp_tx
 TX PTP packets with bad tstamps.
 
u8 status
 Port status (Varies by port)
 

The documentation for this struct was generated from the following files: