Change in osmo-bts[master]: trx_if: delete retrans timer when flushing the Tx queue

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Thu Sep 23 10:00:24 UTC 2021


pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/25518 )

Change subject: trx_if: delete retrans timer when flushing the Tx queue
......................................................................

trx_if: delete retrans timer when flushing the Tx queue

Change-Id: Ic31dc5629ed950f3b4b8feb9917d11779696f6eb
---
M src/osmo-bts-trx/trx_if.c
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, but someone else must approve
  fixeria: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c
index 533f7c8..c4b00fd 100644
--- a/src/osmo-bts-trx/trx_if.c
+++ b/src/osmo-bts-trx/trx_if.c
@@ -1203,6 +1203,10 @@
 	}
 	talloc_free(l1h->last_acked);
 	l1h->last_acked = NULL;
+
+	/* Tx queue is now empty, so there's no point in keeping the retrans timer armed: */
+	if (osmo_timer_pending(&l1h->trx_ctrl_timer))
+		osmo_timer_del(&l1h->trx_ctrl_timer);
 }
 
 /*! close the TRX for given handle (data + control socket) */

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/25518
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ic31dc5629ed950f3b4b8feb9917d11779696f6eb
Gerrit-Change-Number: 25518
Gerrit-PatchSet: 4
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210923/52751b19/attachment.htm>


More information about the gerrit-log mailing list