Soft Patch Panel
 help / color / Atom feed
* [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, back to index

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

Soft Patch Panel

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/spp/0 spp/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 spp spp/ http://inbox.dpdk.org/spp \
		spp@dpdk.org
	public-inbox-index spp


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.spp


AGPL code for this site: git clone https://public-inbox.org/ public-inbox