From 2bf39e0fe0188e87a246a754a55aae6723b291ce Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 6 Mar 2019 16:05:20 +0100 Subject: [PATCH] slotmap: Add "DELETE_REQ" state Change-Id: I953e72e304d6403b2e47f7546a36abfdf246e44b --- src/slotmap.c | 1 + src/slotmap.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slotmap.c b/src/slotmap.c index 12d7777..a8874fb 100644 --- a/src/slotmap.c +++ b/src/slotmap.c @@ -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 } }; diff --git a/src/slotmap.h b/src/slotmap.h index af08a81..5d3d891 100644 --- a/src/slotmap.h +++ b/src/slotmap.h @@ -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)