diff options
author | Oliver Smith <osmith@sysmocom.de> | 2020-04-17 09:27:54 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2022-05-04 20:32:55 +0200 |
commit | 1260631d6cc57b38117012a0a244f1b42e272d32 (patch) | |
tree | 1c9e8ec8465b37d71c9a9983379f61b03c365ca2 | |
parent | pcu_sock: comment out {dl,ul}_tbf_ext related warnings (diff) | |
download | OsmoBTS-osmith/abis-loadtest-202205.tar.xz OsmoBTS-osmith/abis-loadtest-202205.zip |
src/common/rsl.c: log CRCX ACK lchan Tx completeosmith/abis-loadtest-202205
We are trying to figure out if a network interface is blocking. Add
another log message after the Tx is complete, so we see how long it
takes.
Change-Id: Iccea9acb7f1b8e4337f0d0808da4548301e4f30a
-rw-r--r-- | src/common/rsl.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/common/rsl.c b/src/common/rsl.c index 0a519aff..79a9333f 100644 --- a/src/common/rsl.c +++ b/src/common/rsl.c @@ -2561,6 +2561,7 @@ static int rsl_tx_ipac_XXcx_ack(struct gsm_lchan *lchan, int inc_pt2, uint8_t chan_nr = gsm_lchan2chan_nr_rsl(lchan); const char *name; struct in_addr ia; + int rc; if (orig_msgt == RSL_MT_IPAC_CRCX) name = "CRCX"; @@ -2600,7 +2601,17 @@ static int rsl_tx_ipac_XXcx_ack(struct gsm_lchan *lchan, int inc_pt2, rsl_ipa_push_hdr(msg, orig_msgt + 1, chan_nr); msg->trx = lchan->ts->trx; - return abis_bts_rsl_sendmsg(msg); + rc = abis_bts_rsl_sendmsg(msg); + + /* extra log message to debug how long the Tx takes - is the interface blocking? */ + ia.s_addr = htonl(lchan->abis_ip.bound_ip); + LOGPLCHAN(lchan, DRSL, LOGL_INFO, "RSL Tx IPAC_%s_ACK (local %s:%u, ", + name, inet_ntoa(ia), lchan->abis_ip.bound_port); + ia.s_addr = htonl(lchan->abis_ip.connect_ip); + LOGPC(DRSL, LOGL_INFO, "remote %s:%u) [TX COMPLETE, RC=%i]\n", + inet_ntoa(ia), lchan->abis_ip.connect_port, rc); + + return rc; } static int rsl_tx_ipac_dlcx_ack(struct gsm_lchan *lchan, int inc_conn_id) |