DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH v1 1/1] app/mldev: report device not found as error
@ 2023-08-30 15:51 Srikanth Yalavarthi
  2023-10-03  6:00 ` Anup Prabhu
  2023-10-05 14:21 ` Shivah Shankar Shankar Narayan Rao
  0 siblings, 2 replies; 4+ messages in thread
From: Srikanth Yalavarthi @ 2023-08-30 15:51 UTC (permalink / raw)
  To: Srikanth Yalavarthi; +Cc: dev, sshankarnara, aprabhu, ptakkar

Report ML device not found as error, instead of panic.

Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com>
---
 app/test-mldev/ml_main.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/app/test-mldev/ml_main.c b/app/test-mldev/ml_main.c
index 940e609c9a8..56941b1afb0 100644
--- a/app/test-mldev/ml_main.c
+++ b/app/test-mldev/ml_main.c
@@ -25,8 +25,10 @@ main(int argc, char **argv)
 	argv += ret;
 
 	mldevs = rte_ml_dev_count();
-	if (!mldevs)
-		rte_panic("no mldev devices found\n");
+	if (!mldevs) {
+		ml_err("no mldev devices found\n");
+		goto error;
+	}
 
 	/* set default values for options */
 	ml_options_default(&opt);
-- 
2.41.0


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

end of thread, other threads:[~2023-11-14 19:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-30 15:51 [PATCH v1 1/1] app/mldev: report device not found as error Srikanth Yalavarthi
2023-10-03  6:00 ` Anup Prabhu
2023-10-05 14:21 ` Shivah Shankar Shankar Narayan Rao
2023-11-14 19:44   ` Thomas Monjalon

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).