From: Hiral <[email protected]>

Clarifying otx2_process_msgs() RSS error messages

Signed-off-by: Hiral <[email protected]>
---
 .mailmap                        | 1 +
 drivers/common/cnxk/roc_dev.c   | 4 ++--
 drivers/common/cnxk/roc_utils.c | 6 ++++++
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/.mailmap b/.mailmap
index 5015494210..ef4c4c36a2 100644
--- a/.mailmap
+++ b/.mailmap
@@ -487,6 +487,7 @@ Herbert Guan <[email protected]>
 Hernan Vargas <[email protected]>
 Herry Chen <[email protected]>
 Hideyuki Yamashita <[email protected]>
+Hiral <[email protected]>
 Hiroki Shirokura <[email protected]>
 Hiroshi Shimamoto <[email protected]>
 Hiroyuki Mikita <[email protected]>
diff --git a/drivers/common/cnxk/roc_dev.c b/drivers/common/cnxk/roc_dev.c
index 826887a97b..2388237186 100644
--- a/drivers/common/cnxk/roc_dev.c
+++ b/drivers/common/cnxk/roc_dev.c
@@ -441,8 +441,8 @@ process_msgs(struct dev *dev, struct mbox *mbox)
 
                default:
                        if (msg->rc)
-                               plt_err("Message (%s) response has err=%d",
-                                       mbox_id2name(msg->id), msg->rc);
+                               plt_err("Message (%s) response has err=%d (%s)",
+                                       mbox_id2name(msg->id), msg->rc, 
roc_error_msg_get(msg->rc));
                        break;
                }
                offset = mbox->rx_start + msg->next_msgoff;
diff --git a/drivers/common/cnxk/roc_utils.c b/drivers/common/cnxk/roc_utils.c
index 495e62a315..fe291fce96 100644
--- a/drivers/common/cnxk/roc_utils.c
+++ b/drivers/common/cnxk/roc_utils.c
@@ -229,6 +229,12 @@ roc_error_msg_get(int errorcode)
        case UTIL_ERR_INVALID_MODEL:
                err_msg = "Invalid RoC model";
                break;
+       case NIX_AF_ERR_RSS_NOSPC_FIELD:
+               err_msg = "No space or unsupported fields";
+               break;
+       case NIX_AF_ERR_RSS_NOSPC_ALGO:
+               err_msg = "No space to add new flow hash algo";
+               break;
        default:
                /**
                 * Handle general error (as defined in linux errno.h)
-- 
2.25.1

Reply via email to