Skip to content

Commit

Permalink
add metrics for null pdus
Browse files Browse the repository at this point in the history
  • Loading branch information
marenz2569 committed Sep 10, 2024
1 parent 2543aa9 commit dfc60d1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/l2/upper_mac_metrics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ class UpperMacMetrics {
case MacPacketType::kMacResource:
if (packet.is_downlink_fragment()) {
c_plane_signalling_packet_metrics_.increment("MacResource fragments");
} else if (packet.is_null_pdu()) {
c_plane_signalling_packet_metrics_.increment("MacResource null pdu");
} else {
c_plane_signalling_packet_metrics_.increment("MacResource");
}
Expand All @@ -203,6 +205,8 @@ class UpperMacMetrics {
case MacPacketType::kMacAccess:
if (packet.is_uplink_fragment()) {
c_plane_signalling_packet_metrics_.increment("MacAccess fragments");
} else if (packet.is_null_pdu()) {
c_plane_signalling_packet_metrics_.increment("MacAccess null pdu");
} else {
c_plane_signalling_packet_metrics_.increment("MacAccess");
}
Expand All @@ -213,6 +217,8 @@ class UpperMacMetrics {
case MacPacketType::kMacData:
if (packet.is_uplink_fragment()) {
c_plane_signalling_packet_metrics_.increment("MacData fragments");
} else if (packet.is_null_pdu()) {
c_plane_signalling_packet_metrics_.increment("MacData null pdu");
} else {
c_plane_signalling_packet_metrics_.increment("MacData");
}
Expand Down

0 comments on commit dfc60d1

Please sign in to comment.