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
This commit is contained in:
Neels Hofmeyr 2023-02-23 01:11:50 +01:00
parent 95d5273967
commit 60a52e4121
4 changed files with 4 additions and 4 deletions

View File

@ -79,6 +79,6 @@ context_map_alloc_by_hnb(struct hnb_context *hnb, uint32_t rua_ctx_id,
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);

View File

@ -150,7 +150,7 @@ context_map_by_cn(struct hnbgw_cnlink *cn, uint32_t scu_conn_id)
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");

View File

@ -402,7 +402,7 @@ void hnb_context_release_ue_state(struct hnb_context *ctx)
* 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);
}

View File

@ -313,7 +313,7 @@ static int rua_to_scu(struct hnb_context *hnb,
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;
}