Change in osmo-msc[master]: ran_peer: Move rx_reset_ack logic into its own func

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Wed May 15 10:25:04 UTC 2019


Pau Espin Pedrol has submitted this change and it was merged. ( https://gerrit.osmocom.org/14037 )

Change subject: ran_peer: Move rx_reset_ack logic into its own func
......................................................................

ran_peer: Move rx_reset_ack logic into its own func

Later on we want to do extra steps upon receiving a Rx Reset Ack
(checking for Osmux support from peer). Let's move handling of this
message into its own function to have handling implementation in one
place.

Change-Id: I516c4baf6071d26f6c530726d93677bed968efd1
---
M src/libmsc/ran_peer.c
1 file changed, 6 insertions(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Vadim Yanitskiy: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/src/libmsc/ran_peer.c b/src/libmsc/ran_peer.c
index 40e26a2..35f2842 100644
--- a/src/libmsc/ran_peer.c
+++ b/src/libmsc/ran_peer.c
@@ -152,6 +152,11 @@
 	ran_peer_state_chg(rp, RAN_PEER_ST_READY);
 }
 
+static void ran_peer_rx_reset_ack(struct ran_peer *rp)
+{
+	ran_peer_state_chg(rp, RAN_PEER_ST_READY);
+}
+
 void ran_peer_reset(struct ran_peer *rp)
 {
 	struct msgb *reset;
@@ -269,7 +274,7 @@
 	switch (event) {
 
 	case RAN_PEER_EV_RX_RESET_ACK:
-		ran_peer_state_chg(rp, RAN_PEER_ST_READY);
+		ran_peer_rx_reset_ack(rp);
 		return;
 
 	case RAN_PEER_EV_MSG_UP_CO:

-- 
To view, visit https://gerrit.osmocom.org/14037
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I516c4baf6071d26f6c530726d93677bed968efd1
Gerrit-Change-Number: 14037
Gerrit-PatchSet: 2
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190515/cc3312ae/attachment.html>


More information about the gerrit-log mailing list