* [spp] [PATCH] spp_nfv: use rte_exit if rte_eal_init failed
@ 2019-07-18 5:01 yasufum.o
0 siblings, 0 replies; only message in thread
From: yasufum.o @ 2019-07-18 5:01 UTC (permalink / raw)
To: spp, ferruh.yigit, yasufum.o
From: Yasufumi Ogawa <yasufum.o@gmail.com>
This update is to change to use rte_exit() if rte_eal_init() is failed.
Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
---
src/nfv/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nfv/main.c b/src/nfv/main.c
index c0126a4..70a6aab 100644
--- a/src/nfv/main.c
+++ b/src/nfv/main.c
@@ -201,7 +201,7 @@ main(int argc, char *argv[])
ret = rte_eal_init(argc, argv);
if (ret < 0)
- return -1;
+ rte_exit(EXIT_FAILURE, "Invalid EAL arguments\n");
argc -= ret;
argv += ret;
--
2.17.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-07-18 5:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-18 5:01 [spp] [PATCH] spp_nfv: use rte_exit if rte_eal_init failed yasufum.o
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).