path: root/openbsc/include/openbsc/abis_nm.h
diff options
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-11-15 20:50:42 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-12-21 13:53:41 +0100
commit6f615551a402ea87843077e3d79d16251d53f078 (patch)
treeab0f8c242ccfb5d46ed54597529244fb0a81d3c1 /openbsc/include/openbsc/abis_nm.h
parent39e6ba09c2ef18b6b6cc19ca5a7982325f7c356c (diff)
abis_nm: Band aid on OML initialisation by queuing messages
Instead of sending many messages we will queue the OML messages and wait for the ACK/NACK before sending the next message from the queue. We tag the msgb to remember if we need to wait for an ack or not. We keep the order of all messages, on ACKs and similiar occassions we will drown the queue until we reach a message that needs to be acked and then wait for that ack again. Possible breakage can appear when we send an OML (e.g. BS11 specific message) msg which does not need to be acked through the abis_nm_sendmsg call. The fix will be to use the _direct version of this method. Re-Enable as it might have fixed something... who knows. Conflicts: openbsc/include/openbsc/abis_nm.h openbsc/include/openbsc/gsm_data.h openbsc/src/abis_nm.c openbsc/src/gsm_data.c
Diffstat (limited to 'openbsc/include/openbsc/abis_nm.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/abis_nm.h b/openbsc/include/openbsc/abis_nm.h
index 5c9cbd0d..76e5f6e8 100644
--- a/openbsc/include/openbsc/abis_nm.h
+++ b/openbsc/include/openbsc/abis_nm.h
@@ -175,4 +175,7 @@ int nm_is_running(struct gsm_nm_state *s);
int abis_nm_vty_init(void);
+void abis_nm_clear_queue(struct gsm_bts *bts);
#endif /* _NM_H */