[PATCH 5.15 368/846] bnxt_en: Refactor coredump functions