aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2021-12-06 16:46:40 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2022-01-04 16:58:48 +0100
commitf5f31d34d1f4c21cc5cd2342930c7cf481651a1f (patch)
treea89c29caaf2913e8289185f04dd0d453aa8435b6
parent2650b57400305d8ab9982084c0c02190cd468167 (diff)
ipaccess.c: register RSL/OML related osmo_fds for monitoringHEADmaster
The osmo_fds used for ipaccess based E1 traffic should be registered for monitoring to get tcp_stats for all RSL/OML links. Change-Id: I42ca4e9257eee2857784dd4f5b17a83220e2be9e depends: libosmocore I64b288174ae3dd22d50a701ce7cbf9e623246479 Related: SYS#5701
-rw-r--r--src/input/ipaccess.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c
index 04b4474..dbb8b2e 100644
--- a/src/input/ipaccess.c
+++ b/src/input/ipaccess.c
@@ -50,6 +50,7 @@
#include <osmocom/abis/ipa.h>
#include <osmocom/core/backtrace.h>
#include <osmocom/gsm/ipa.h>
+#include <osmocom/core/stats_tcp.h>
/* global parameters of IPA input driver */
struct ipa_pars g_e1inp_ipaccess_pars;
@@ -341,6 +342,7 @@ static int ipaccess_rcvmsg(struct e1inp_line *line, struct msgb *msg,
"could not register FD\n");
goto err;
}
+ osmo_stats_tcp_osmo_fd_register(newbfd, "ipa-rsl");
e1i_ts = ipaccess_line_ts(newbfd, new_line);
ipaccess_bsc_keepalive_fsm_alloc(e1i_ts, newbfd, "rsl_bsc_to_bts");
@@ -671,6 +673,7 @@ static int ipaccess_bsc_oml_cb(struct ipa_server_link *link, int fd)
LOGP(DLINP, LOGL_ERROR, "could not register FD\n");
goto err_line;
}
+ osmo_stats_tcp_osmo_fd_register(bfd, "ipa-oml");
update_fd_settings(line, bfd->fd);
@@ -724,6 +727,8 @@ static int ipaccess_bsc_rsl_cb(struct ipa_server_link *link, int fd)
LOGP(DLINP, LOGL_ERROR, "could not register FD\n");
goto err_line;
}
+ osmo_stats_tcp_osmo_fd_register(bfd, "ipa-rsl");
+
/* Request ID. FIXME: request LOCATION, HW/SW VErsion, Unit Name, Serno */
ret = ipa_ccm_send_id_req(bfd->fd);
if (ret < 0) {