rspro_server: Add more comments
Change-Id: Iafe8674161a117b70e97ffeac4e988ba9a45db93
This commit is contained in:
parent
ba781c065f
commit
1b07f7fbc9
|
@ -248,7 +248,7 @@ static void clnt_st_connected(struct osmo_fsm_inst *fi, uint32_t event, void *da
|
||||||
struct slot_mapping *map, *map2;
|
struct slot_mapping *map, *map2;
|
||||||
|
|
||||||
switch (event) {
|
switch (event) {
|
||||||
case CLNTC_E_CREATE_MAP_RES:
|
case CLNTC_E_CREATE_MAP_RES: /* Bankd acknowledges mapping was created */
|
||||||
rx = data;
|
rx = data;
|
||||||
slotmaps_wrlock(slotmaps);
|
slotmaps_wrlock(slotmaps);
|
||||||
/* FIXME: resolve map by pdu->tag */
|
/* FIXME: resolve map by pdu->tag */
|
||||||
|
@ -262,7 +262,7 @@ static void clnt_st_connected(struct osmo_fsm_inst *fi, uint32_t event, void *da
|
||||||
_slotmap_state_change(map, SLMAP_S_ACTIVE, &conn->bank.maps_active);
|
_slotmap_state_change(map, SLMAP_S_ACTIVE, &conn->bank.maps_active);
|
||||||
slotmaps_unlock(slotmaps);
|
slotmaps_unlock(slotmaps);
|
||||||
break;
|
break;
|
||||||
case CLNTC_E_REMOVE_MAP_RES:
|
case CLNTC_E_REMOVE_MAP_RES: /* Bankd acknowledges mapping was removed */
|
||||||
rx = data;
|
rx = data;
|
||||||
slotmaps_wrlock(slotmaps);
|
slotmaps_wrlock(slotmaps);
|
||||||
/* FIXME: resolve map by pdu->tag */
|
/* FIXME: resolve map by pdu->tag */
|
||||||
|
@ -277,7 +277,7 @@ static void clnt_st_connected(struct osmo_fsm_inst *fi, uint32_t event, void *da
|
||||||
/* slotmap_del() will remove it from both global and bank list */
|
/* slotmap_del() will remove it from both global and bank list */
|
||||||
slotmap_del(map->maps, map);
|
slotmap_del(map->maps, map);
|
||||||
break;
|
break;
|
||||||
case CLNTC_E_PUSH:
|
case CLNTC_E_PUSH: /* check if any create or delete requests are pending */
|
||||||
slotmaps_wrlock(slotmaps);
|
slotmaps_wrlock(slotmaps);
|
||||||
/* send any pending create requests */
|
/* send any pending create requests */
|
||||||
llist_for_each_entry_safe(map, map2, &conn->bank.maps_new, bank_list) {
|
llist_for_each_entry_safe(map, map2, &conn->bank.maps_new, bank_list) {
|
||||||
|
|
Loading…
Reference in New Issue