]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
octeontx2-af: Display names for CPT and UP messages
authorSubbaraya Sundeep <sbhatta@marvell.com>
Tue, 13 May 2025 11:40:06 +0000 (17:10 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 15 May 2025 11:25:16 +0000 (13:25 +0200)
Mailbox UP messages and CPT messages names are not being
displayed with their names in trace log files. Add those
messages too in otx2_mbox_id2name.

Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Link: https://patch.msgid.link/1747136408-30685-3-git-send-email-sbhatta@marvell.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/marvell/octeontx2/af/mbox.c

index 5547d20310df3f4678d1b5d08ccc74ad9f240e17..5c457e46977e777b04f2e8d084dd0c1abe5244b8 100644 (file)
@@ -444,6 +444,14 @@ const char *otx2_mbox_id2name(u16 id)
 #define M(_name, _id, _1, _2, _3) case _id: return # _name;
        MBOX_MESSAGES
 #undef M
+
+#define M(_name, _id, _1, _2, _3) case _id: return # _name;
+       MBOX_UP_CGX_MESSAGES
+#undef M
+
+#define M(_name, _id, _1, _2, _3) case _id: return # _name;
+       MBOX_UP_CPT_MESSAGES
+#undef M
        default:
                return "INVALID ID";
        }