aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2020-04-17 09:27:54 +0200
committerOliver Smith <osmith@sysmocom.de>2020-04-17 09:27:54 +0200
commit2dd567e73ebf549faa0b74eb1c2c1ae86b7f7937 (patch)
treecfe8b9f6f8c4b87ca5a5786ecfa6bdc8a62db37b /src/common
parentcb4340b8a443811a7bfa281a32937663b51c8d62 (diff)
src/common/rsl.c: log CRCX ACK lchan Tx completeosmith/abis-loadtest
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
Diffstat (limited to 'src/common')
-rw-r--r--src/common/rsl.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/common/rsl.c b/src/common/rsl.c
index 41dd2434..c9d1fb47 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -1848,6 +1848,7 @@ static int rsl_tx_ipac_XXcx_ack(struct gsm_lchan *lchan, int inc_pt2,
uint8_t chan_nr = gsm_lchan2chan_nr(lchan);
const char *name;
struct in_addr ia;
+ int rc;
if (orig_msgt == RSL_MT_IPAC_CRCX)
name = "CRCX";
@@ -1887,7 +1888,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)