From: Hamid Ramazani <mrramazani@gmail.com>
To: dev@dpdk.org
Subject: [dpdk-dev] rte_eal_init independent from main(int argc, char** argv)
Date: Tue, 18 Feb 2014 16:24:17 +0330 [thread overview]
Message-ID: <CACu58pDrdBoWWhrOKcPuOtsY2L0hk1UztiDMwBJtk2D8OOqYqA@mail.gmail.com> (raw)
Hi,
I'm in need of running an open() function, that is part another program.
open() does many things, the very first of them is rte_eal_init(argv, argc)
I should not receive argc, and argv from main function of the program,
but rather I should produce it myself.
What I've done inside open() function is:
int argc = 5;
char* argv[] = {"./build/l2fwd","-c","ff","-n","4"};
ret = rte_eal_init(argc,argv);
But I receive: invalid EAL arguments.
I'm thinking about writing another rte_eal_init function for myself.
What do you think?
Thanks in advance.
next reply other threads:[~2014-02-18 12:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-18 12:54 Hamid Ramazani [this message]
2014-02-18 12:57 ` Hamid Ramazani
2014-02-18 13:52 ` Periklis Akritidis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CACu58pDrdBoWWhrOKcPuOtsY2L0hk1UztiDMwBJtk2D8OOqYqA@mail.gmail.com \
--to=mrramazani@gmail.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).