Skip to content

Commit c73611f

Browse files
committed
Possibly actual LFTs, expiry.
1 parent 9cefaeb commit c73611f

File tree

8 files changed

+309
-58
lines changed

8 files changed

+309
-58
lines changed

crates/opte-api/src/stat.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ pub struct FlowStat<FlowId> {
2222

2323
#[derive(Deserialize, Serialize, Debug, Clone, Copy)]
2424
pub struct PacketCounter {
25+
pub created_at: u64,
2526
pub pkts_in: u64,
2627
pub bytes_in: u64,
2728
pub pkts_out: u64,

lib/opte-test-utils/src/port_state.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ pub fn print_port(
8686
write_hr(&mut out)?;
8787
writeln!(&mut out, "{:#?}", port.stats_snap())?;
8888

89+
// ================================================================
90+
// Print the Better Stats
91+
// ================================================================
92+
writeln!(&mut out, "{}", port.dump_flow_stats().unwrap())?;
93+
8994
write_hrb(&mut out)?;
9095
writeln!(&mut out)?;
9196

0 commit comments

Comments
 (0)