PEL: Fix the max packets that can be received for Odyssey OCMB
There is no limit for the number of "ffdc" data packets that
can be received for Odyssey OCMB, a modified parser to loop
through the complete data received in the ffdc file.
Now check the max ffdc packet count only for p10 proc ffdc.
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
Change-Id: I971490afd77d9558d52dbf3422b76239e73079b2
diff --git a/extensions/openpower-pels/sbe_ffdc_handler.cpp b/extensions/openpower-pels/sbe_ffdc_handler.cpp
index 8d420bf..fc97651 100644
--- a/extensions/openpower-pels/sbe_ffdc_handler.cpp
+++ b/extensions/openpower-pels/sbe_ffdc_handler.cpp
@@ -182,6 +182,7 @@
log<level::ERR>("FFDC packet size is zero skipping");
return;
}
+ pktCount++;
}
else if (magicBytes == pozFfdcMagicCode)
{
@@ -232,7 +233,6 @@
// Update Buffer offset in Bytes
ffdcBufOffset += lenWords * sizeof(uint32_t);
- ++pktCount;
}
if (pktCount == sbeMaxFfdcPackets)
{