aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2022-04-20 09:46:16 +0200
committerHarald Welte <laforge@osmocom.org>2022-04-20 15:50:33 +0200
commit52f86b69ed97cd9f746b97d59968bfd018a85d41 (patch)
treea8258b6481feefed94a9b99fa704b77431f53575 /src
parent3f342ee28c697f3d2fe6ef1df518d3efb08b8a33 (diff)
e1oip: Rename e1oip:overflow to e1oip:e1o_overflow
This indicates that this is counting an E1-originated overflow of the OCTOI transmit FIFO, which should never happen unless your system is too slow to periodically schedule the related timers in the code. Change-Id: I0af6a2847c8356b011bcff5cc4f5d909c574ea21
Diffstat (limited to 'src')
-rw-r--r--src/octoi/e1oip.c4
-rw-r--r--src/octoi/e1oip.h2
-rw-r--r--src/octoi/octoi.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/octoi/e1oip.c b/src/octoi/e1oip.c
index 38a22b5..b767ba7 100644
--- a/src/octoi/e1oip.c
+++ b/src/octoi/e1oip.c
@@ -45,8 +45,8 @@
static const struct rate_ctr_desc iline_ctr_description[] = {
[LINE_CTR_E1oIP_UNDERRUN] = { "e1oip:underrun", "Frames underrun / slipped in IP->E1 direction"},
- [LINE_CTR_E1oIP_SUBSTITUTED] = { "e1oip:substituted", "Frames substituted in IP->E1 direction"},
- [LINE_CTR_E1oIP_OVERFLOW] = { "e1oip:overflow", "Frames overflowed in IP->E1 direction"},
+ [LINE_CTR_E1oIP_SUBSTITUTED] = { "e1oip:substituted", "Frames substituted in E1->IP direction"},
+ [LINE_CTR_E1oIP_E1O_OVERFLOW] = { "e1oip:e1o_overflow", "Frames overflowed in IP->E1 direction"},
[LINE_CTR_E1oIP_RX_OUT_OF_ORDER] = { "e1oip:rx:pkt_out_of_order", "Packets out-of-order in IP->E1 direction"},
[LINE_CTR_E1oIP_RX_OUT_OF_WIN] = { "e1oip:rx:pkt_out_of_win", "Packets out-of-rx-window in IP->E1 direction"},
};
diff --git a/src/octoi/e1oip.h b/src/octoi/e1oip.h
index c992622..65ae473 100644
--- a/src/octoi/e1oip.h
+++ b/src/octoi/e1oip.h
@@ -16,7 +16,7 @@
enum e1oip_line_ctr {
LINE_CTR_E1oIP_UNDERRUN,
LINE_CTR_E1oIP_SUBSTITUTED,
- LINE_CTR_E1oIP_OVERFLOW,
+ LINE_CTR_E1oIP_E1O_OVERFLOW,
LINE_CTR_E1oIP_RX_OUT_OF_ORDER,
LINE_CTR_E1oIP_RX_OUT_OF_WIN,
};
diff --git a/src/octoi/octoi.c b/src/octoi/octoi.c
index 5f4c2f9..8d82092 100644
--- a/src/octoi/octoi.c
+++ b/src/octoi/octoi.c
@@ -101,7 +101,7 @@ void octoi_peer_e1o_in(struct octoi_peer *peer, const uint8_t *buf, int ftr)
rc = frame_fifo_in_multi(&iline->e1o.fifo, buf, ftr);
if (rc < ftr)
- iline_ctr_add(iline, LINE_CTR_E1oIP_OVERFLOW, ftr - rc);
+ iline_ctr_add(iline, LINE_CTR_E1oIP_E1O_OVERFLOW, ftr - rc);
iline_stat_set(iline, LINE_STAT_E1oIP_E1O_FIFO, frame_fifo_frames(&iline->e1o.fifo));
}