neels has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-hnbgw/+/31459 )


Change subject: cosmetic: rename context_map_deactivate
......................................................................

cosmetic: rename context_map_deactivate

Rename context_map_deactivate() to context_map_hnb_released().

This function is called only when the HNB is released / lost.

Change-Id: I6dcb26c94558fff28faf8f823e490967a9baf2ec
---
M include/osmocom/hnbgw/context_map.h
M src/osmo-hnbgw/context_map.c
M src/osmo-hnbgw/hnbgw.c
M src/osmo-hnbgw/hnbgw_rua.c
4 files changed, 17 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-hnbgw refs/changes/59/31459/1

diff --git a/include/osmocom/hnbgw/context_map.h 
b/include/osmocom/hnbgw/context_map.h
index 3a145b6..97e1b09 100644
--- a/include/osmocom/hnbgw/context_map.h
+++ b/include/osmocom/hnbgw/context_map.h
@@ -79,6 +79,6 @@
 struct hnbgw_context_map *
 context_map_by_cn(struct hnbgw_cnlink *cn, uint32_t scu_conn_id);

-void context_map_deactivate(struct hnbgw_context_map *map);
+void context_map_hnb_released(struct hnbgw_context_map *map);

 int context_map_init(struct hnb_gw *gw);
diff --git a/src/osmo-hnbgw/context_map.c b/src/osmo-hnbgw/context_map.c
index 96365fb..9816918 100644
--- a/src/osmo-hnbgw/context_map.c
+++ b/src/osmo-hnbgw/context_map.c
@@ -150,7 +150,7 @@
        return NULL;
 }

-void context_map_deactivate(struct hnbgw_context_map *map)
+void context_map_hnb_released(struct hnbgw_context_map *map)
 {
        LOG_MAP(map, DMAIN, LOGL_INFO, "Deactivating\n");

diff --git a/src/osmo-hnbgw/hnbgw.c b/src/osmo-hnbgw/hnbgw.c
index da6df43..322dabe 100644
--- a/src/osmo-hnbgw/hnbgw.c
+++ b/src/osmo-hnbgw/hnbgw.c
@@ -402,7 +402,7 @@
                 * map garbage collector works fine? */
                llist_del(&map->hnb_list);
                llist_del(&map->cn_list);
-               context_map_deactivate(map);
+               context_map_hnb_released(map);
        }
        ue_context_free_by_hnb(ctx->gw, ctx);
 }
diff --git a/src/osmo-hnbgw/hnbgw_rua.c b/src/osmo-hnbgw/hnbgw_rua.c
index 5581148..3af0ad6 100644
--- a/src/osmo-hnbgw/hnbgw_rua.c
+++ b/src/osmo-hnbgw/hnbgw_rua.c
@@ -313,7 +313,7 @@
        rc = osmo_sccp_user_sap_down(cn->sccp_user, &prim->oph);

        if (map && release_context_map)
-               context_map_deactivate(map);
+               context_map_hnb_released(map);

        return rc;
 }

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

Gerrit-Project: osmo-hnbgw
Gerrit-Branch: master
Gerrit-Change-Id: I6dcb26c94558fff28faf8f823e490967a9baf2ec
Gerrit-Change-Number: 31459
Gerrit-PatchSet: 1
Gerrit-Owner: neels <[email protected]>
Gerrit-MessageType: newchange

Reply via email to