ipaccess.c: register RSL/OML related osmo_fds for monitoring

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
This commit is contained in:
Philipp Maier 2021-12-06 16:46:40 +01:00
parent 2650b57400
commit f5f31d34d1
1 changed files with 5 additions and 0 deletions

View File

@ -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) {