From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 82A3741DC3; Fri, 3 Mar 2023 09:12:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DBB7E42D48; Fri, 3 Mar 2023 09:11:31 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 09DC742BAC for ; Fri, 3 Mar 2023 09:11:29 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32373jYB024813; Fri, 3 Mar 2023 00:11:29 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=BCppNMSxEGt4PjEbkEOmpUgzsb4qKlPMPycVeB/nN+w=; b=DN/O2qsOebZJMFsfyuLQLYFai1gPJrb3rMQrvO0ayf+oYdn1SWs0IQGdxoB4h3g+6wv/ LndaUfWVCgKxUGQtsFA+dRL5tDbA9+wsJ7OEqNPss6MIxEn4rL+MQjdRQlO/KQkKfDTJ KSmYsN2u6QTSpXqspLSTK6kuD8py4yoi5Zb23RokjX5QAM+UdeIL54bW2a8vOee+CxCi 4ZCXeGdzWzIpz7+El1W01iyexKFTe8jvHUOavgZU6y6HQwDmesww3IL4X1WYxNkT+w7Y zNtP12vXqmWD+0sUbmmuZPkNHeNLdFRu0qBgwUf18BfJS4KU7HLLqLwV+/J5f+dAQguf 6Q== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3p2vg53dvf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 03 Mar 2023 00:11:28 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 3 Mar 2023 00:11:27 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.42 via Frontend Transport; Fri, 3 Mar 2023 00:11:27 -0800 Received: from hyd1588t430.caveonetworks.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 58C5F5B6983; Fri, 3 Mar 2023 00:11:21 -0800 (PST) From: Nithin Dabilpuram To: Thomas Monjalon , Nithin Dabilpuram , Kiran Kumar K , "Sunil Kumar Kori" , Satha Rao CC: , , Hiral Subject: [PATCH 13/15] common/cnxk: add RSS error messages on mbox failure Date: Fri, 3 Mar 2023 13:40:11 +0530 Message-ID: <20230303081013.589868-13-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230303081013.589868-1-ndabilpuram@marvell.com> References: <20230303081013.589868-1-ndabilpuram@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: zgvVNXz8Y0MJbmeGKvB3D08IyGtC0yGV X-Proofpoint-GUID: zgvVNXz8Y0MJbmeGKvB3D08IyGtC0yGV X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-03_01,2023-03-02_02,2023-02-09_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Hiral Clarifying otx2_process_msgs() RSS error messages Signed-off-by: Hiral --- .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 Hernan Vargas Herry Chen Hideyuki Yamashita +Hiral Hiroki Shirokura Hiroshi Shimamoto Hiroyuki Mikita 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