DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] common/sfc_efx/base: set return code in case of the error
@ 2023-05-31  7:08 Artemii Morozov
  2023-06-01  6:30 ` [PATCH v2] " Artemii Morozov
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Artemii Morozov @ 2023-05-31  7:08 UTC (permalink / raw)
  To: dev; +Cc: Artemii Morozov, Andy Moreton, Andrew Rybchenko

From: Artemii Morozov <Artemii.Morozov@arknetworks.am>

If the prefix for the rss hash was not chosen the
ENOTSUP error should be returned.

Signed-off-by: Artemii Morozov <artemii.morozov@arknetworks.am>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
---
 drivers/common/sfc_efx/base/efx_rx.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/common/sfc_efx/base/efx_rx.c b/drivers/common/sfc_efx/base/efx_rx.c
index 68f42f5cac..61726a9f0b 100644
--- a/drivers/common/sfc_efx/base/efx_rx.c
+++ b/drivers/common/sfc_efx/base/efx_rx.c
@@ -937,8 +937,10 @@ efx_rx_qcreate_internal(
 
 		rss_hash_field =
 		    &erplp->erpl_fields[EFX_RX_PREFIX_FIELD_RSS_HASH];
-		if (rss_hash_field->erpfi_width_bits == 0)
+		if (rss_hash_field->erpfi_width_bits == 0) {
+			rc = ENOTSUP;
 			goto fail5;
+		}
 	}
 
 	enp->en_rx_qcount++;
-- 
2.34.1


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

end of thread, other threads:[~2023-06-22 15:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-31  7:08 [PATCH] common/sfc_efx/base: set return code in case of the error Artemii Morozov
2023-06-01  6:30 ` [PATCH v2] " Artemii Morozov
2023-06-01 15:48   ` Ferruh Yigit
2023-06-22  9:13 ` [PATCH v3] " Artemii Morozov
2023-06-22  9:25   ` Andrew Rybchenko
2023-06-22  9:31 ` [PATCH v4] " Artemii Morozov
2023-06-22 11:27   ` Ferruh Yigit
2023-06-22 12:31 ` [PATCH v5] common/sfc_efx/base: fix Rx queue creation without RSS hash prefix Artemii Morozov
2023-06-22 13:13   ` Ferruh Yigit
2023-06-22 13:52     ` Artemii Morozov
2023-06-22 15:06   ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).