All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] qed: Use accurate error num in qed_cxt_dynamic_ilt_alloc
@ 2021-07-29 15:17 Prabhakar Kushwaha
  2021-07-29 15:17 ` [PATCH 2/2] qedr: Improve error logs for rdma_alloc_tid error return Prabhakar Kushwaha
  2021-07-30 14:33 ` [PATCH 1/2] qed: Use accurate error num in qed_cxt_dynamic_ilt_alloc Jason Gunthorpe
  0 siblings, 2 replies; 3+ messages in thread
From: Prabhakar Kushwaha @ 2021-07-29 15:17 UTC (permalink / raw)
  To: linux-rdma, dledford, jgg, mkalderon
  Cc: davem, kuba, smalin, aelior, pkushwaha, prabhakar.pkin, malin1024

To have more accurate error return type use -EOPNOTSUPP instead
of -EINVAL.

Signed-off-by: Shai Malin <smalin@marvell.com>
Signed-off-by: Ariel Elior <aelior@marvell.com>
Signed-off-by: Prabhakar Kushwaha <pkushwaha@marvell.com>
---
 drivers/net/ethernet/qlogic/qed/qed_cxt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/qlogic/qed/qed_cxt.c b/drivers/net/ethernet/qlogic/qed/qed_cxt.c
index 5a0a3cbcc1c1..cb0f2a3a1ac9 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_cxt.c
+++ b/drivers/net/ethernet/qlogic/qed/qed_cxt.c
@@ -2226,8 +2226,8 @@ qed_cxt_dynamic_ilt_alloc(struct qed_hwfn *p_hwfn,
 		p_blk = &p_cli->pf_blks[CDUT_SEG_BLK(QED_CXT_ROCE_TID_SEG)];
 		break;
 	default:
-		DP_NOTICE(p_hwfn, "-EINVALID elem type = %d", elem_type);
-		return -EINVAL;
+		DP_NOTICE(p_hwfn, "-EOPNOTSUPP elem type = %d", elem_type);
+		return -EOPNOTSUPP;
 	}
 
 	/* Calculate line in ilt */
-- 
2.24.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-30 14:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-29 15:17 [PATCH 1/2] qed: Use accurate error num in qed_cxt_dynamic_ilt_alloc Prabhakar Kushwaha
2021-07-29 15:17 ` [PATCH 2/2] qedr: Improve error logs for rdma_alloc_tid error return Prabhakar Kushwaha
2021-07-30 14:33 ` [PATCH 1/2] qed: Use accurate error num in qed_cxt_dynamic_ilt_alloc Jason Gunthorpe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.