slotmap: Add "DELETE_REQ" state

Change-Id: I953e72e304d6403b2e47f7546a36abfdf246e44b
This commit is contained in:
Harald Welte 2019-03-06 16:05:20 +01:00
parent f4e75043de
commit 2bf39e0fe0
2 changed files with 3 additions and 1 deletions

View File

@ -17,6 +17,7 @@ const struct value_string slot_map_state_name[] = {
{ SLMAP_S_NEW, "NEW" },
{ SLMAP_S_UNACKNOWLEDGED, "UNACKNOWLEDGED" },
{ SLMAP_S_ACTIVE, "ACTIVE" },
{ SLMAP_S_DELETE_REQ, "DELETE_REQ" },
{ SLMAP_S_DELETING, "DELETING" },
{ 0, NULL }
};

View File

@ -36,7 +36,8 @@ enum slot_mapping_state {
SLMAP_S_NEW, /* created; not yet sent to bankd */
SLMAP_S_UNACKNOWLEDGED, /* created + sent to bankd but not yet acknowledge by bankd */
SLMAP_S_ACTIVE, /* fully active map; acknowledged by bankd */
SLMAP_S_DELETING, /* we were asked to delete it; bankd hasn't confirmed yet */
SLMAP_S_DELETE_REQ, /* fully active map; REST has requested deletion */
SLMAP_S_DELETING, /* RSPRO has issued Remove to bankd, but bankd hasn't confirmed yet */
};
extern const struct value_string slot_map_state_name[];
static inline const char *slotmap_state_name(enum slot_mapping_state st)