DPDK patches and discussions
 help / color / mirror / Atom feed
From: Hamid Ramazani <mrramazani@gmail.com>
To: dev@dpdk.org
Subject: Re: [dpdk-dev] rte_eal_init independent from main(int argc, char** argv)
Date: Tue, 18 Feb 2014 16:27:28 +0330	[thread overview]
Message-ID: <CACu58pCvfCdqCZ8SADkXO6y2V3B5E4=a4dpRMy3XoqM0+-7aQQ@mail.gmail.com> (raw)
In-Reply-To: <CACu58pDrdBoWWhrOKcPuOtsY2L0hk1UztiDMwBJtk2D8OOqYqA@mail.gmail.com>

actually I've used:
char* argv[] = {"./build/l2fwd","-c","ff","-n","4", NULL};

(NULL at the end of the list).

Thanks.

On 2/18/14, Hamid Ramazani <mrramazani@gmail.com> wrote:
> 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.
>

  reply	other threads:[~2014-02-18 12:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-18 12:54 Hamid Ramazani
2014-02-18 12:57 ` Hamid Ramazani [this message]
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='CACu58pCvfCdqCZ8SADkXO6y2V3B5E4=a4dpRMy3XoqM0+-7aQQ@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).