diff options
author | Oliver Smith <osmith@sysmocom.de> | 2020-04-17 09:27:54 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2023-01-04 14:55:45 +0100 |
commit | c0c3ee64044bb653aa9256e46ed812d90aff105e (patch) | |
tree | 2b9e3e4bc0d96c73e72d703abc4763c9dc8900f2 | |
parent | 0336b6e8e5a85bb2e4939d9b690e438a474954dd (diff) |
src/common/rsl.c: log CRCX ACK lchan Tx completeosmith/abis-loadtest-202403osmith/abis-loadtest-202301
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 91af6cbf..26c6a5bd 100644 --- a/src/common/rsl.c +++ b/src/common/rsl.c @@ -2546,6 +2546,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"; @@ -2590,7 +2591,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) |