summaryrefslogtreecommitdiffstats
path: root/extensions/openpower-pels/host_notifier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/openpower-pels/host_notifier.cpp')
-rw-r--r--extensions/openpower-pels/host_notifier.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/extensions/openpower-pels/host_notifier.cpp b/extensions/openpower-pels/host_notifier.cpp
index f2d951f..b4e92a8 100644
--- a/extensions/openpower-pels/host_notifier.cpp
+++ b/extensions/openpower-pels/host_notifier.cpp
@@ -345,4 +345,16 @@ void HostNotifier::stopCommand()
}
}
+void HostNotifier::ackPEL(uint32_t id)
+{
+ _repo.setPELHostTransState(id, TransmissionState::acked);
+
+ // No longer just 'sent', so remove it from the sent list.
+ auto sent = std::find(_sentPELs.begin(), _sentPELs.end(), id);
+ if (sent != _sentPELs.end())
+ {
+ _sentPELs.erase(sent);
+ }
+}
+
} // namespace openpower::pels
OpenPOWER on IntegriCloud