[VOL-5291] On demand statistics for ONU and OLT
Change-Id: I4850bb0f0d2235122cb0c1bcf835b3672bb34436
Signed-off-by: Akash Reddy Kankanala <akash.kankanala@radisys.com>
diff --git a/protos/voltha_protos/common.proto b/protos/voltha_protos/common.proto
index d44611f..d2fe18b 100755
--- a/protos/voltha_protos/common.proto
+++ b/protos/voltha_protos/common.proto
@@ -121,3 +121,69 @@
string additional_info = 2;
}
+message PortStatistics {
+ fixed32 intf_id = 1;
+ fixed64 rx_bytes = 2;
+ fixed64 rx_packets = 3;
+ fixed64 rx_ucast_packets = 4;
+ fixed64 rx_mcast_packets = 5;
+ fixed64 rx_bcast_packets = 6;
+ fixed64 rx_error_packets = 7;
+ fixed64 rx_frames = 17;
+ fixed64 rx_frames_64 = 18;
+ fixed64 rx_frames_65_127 = 19;
+ fixed64 rx_frames_128_255 = 20;
+ fixed64 rx_frames_256_511 = 21;
+ fixed64 rx_frames_512_1023 = 22;
+ fixed64 rx_frames_1024_1518 = 23;
+ fixed64 rx_frames_1519_2047 = 24;
+ fixed64 rx_frames_2048_4095 = 25;
+ fixed64 rx_frames_4096_9216 = 26;
+ fixed64 rx_frames_9217_16383 = 27;
+ fixed64 rx_crc_errors = 14;
+ fixed64 rxUndersizePackets = 39;
+ fixed64 rxOversizePackets = 40;
+ fixed64 rxGem = 43;
+ fixed64 rxGemDropped = 44;
+ fixed64 rxGemIdle = 45;
+ fixed64 rxGemCorrected = 46;
+ fixed64 rxGemIllegal = 47;
+ fixed64 rxFragmentError = 48;
+ fixed64 rxPacketsDropped = 49;
+ fixed64 rxCpuOmciPacketsDropped = 50;
+ fixed64 rxCpu = 51;
+ fixed64 rxOmci = 52;
+ fixed64 rxOmciPacketsCrcError = 53;
+ fixed64 rxFcsErrorPackets = 62;
+
+ fixed64 tx_bytes = 8;
+ fixed64 tx_packets = 9;
+ fixed64 tx_ucast_packets = 10;
+ fixed64 tx_mcast_packets = 11;
+ fixed64 tx_bcast_packets = 12;
+ fixed64 tx_error_packets = 13;
+ fixed64 tx_frames = 28;
+ fixed64 tx_frames_64 = 29;
+ fixed64 tx_frames_65_127 = 30;
+ fixed64 tx_frames_128_255 = 31;
+ fixed64 tx_frames_256_511 = 32;
+ fixed64 tx_frames_512_1023 = 33;
+ fixed64 tx_frames_1024_1518 = 34;
+ fixed64 tx_frames_1519_2047 = 35;
+ fixed64 tx_frames_2048_4095 = 36;
+ fixed64 tx_frames_4096_9216 = 37;
+ fixed64 tx_frames_9217_16383 = 38;
+ fixed64 txUndersizePackets = 41;
+ fixed64 txOversizePackets = 42;
+ fixed64 txGem = 54;
+ fixed64 txCpu = 55;
+ fixed64 txOmci = 56;
+ fixed64 txDroppedIllegalLength = 57;
+ fixed64 txDroppedTpidMiss = 58;
+ fixed64 txDroppedVidMiss = 59;
+ fixed64 txDroppedTotal = 60;
+
+ fixed64 bip_errors = 15;
+ fixed64 bip_units = 61;
+ fixed32 timestamp = 16;
+}
\ No newline at end of file