From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vc0-x236.google.com (mail-vc0-x236.google.com [IPv6:2607:f8b0:400c:c03::236]) by dpdk.org (Postfix) with ESMTP id 8AB6968F0 for ; Tue, 18 Feb 2014 13:56:04 +0100 (CET) Received: by mail-vc0-f182.google.com with SMTP id id10so13173773vcb.13 for ; Tue, 18 Feb 2014 04:57:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=oU36YqSRLjmbY0lL1lJd5mdScIOi8zL6iCwGVtZpiAA=; b=BZzkJOek1/sFcSxQpKibMJY8b3jCOo+VpzgAdIJLc52H3sFPoIunIC40jvnNwr031a DQbDWJsX6+nH2SlypTylSIm4Pl1m4IWhIquMtK8PGNf5k0W27MiMVfLaXJZRApACw1gr kYkzl6q1Qe4rUNtgfhxQJWCDc+EUFEwHLnlHOJqDkIw3hSW2tnYr9jDyGQlPXYaGRlma e7RSh7xoB8vP1mEWjPHDyuiBa5cGSQnss6vzzoQBEvCiN426omtrftl/NXn/oWKJZnKv XBN0yz33yCny6Mnp9crbBGz205ac9ddKw0jSBTeBSk01vzhZeL29CwTfX36C3kqg2P28 bQDg== MIME-Version: 1.0 X-Received: by 10.52.23.68 with SMTP id k4mr14412426vdf.24.1392728248989; Tue, 18 Feb 2014 04:57:28 -0800 (PST) Received: by 10.58.54.113 with HTTP; Tue, 18 Feb 2014 04:57:28 -0800 (PST) In-Reply-To: References: Date: Tue, 18 Feb 2014 16:27:28 +0330 Message-ID: From: Hamid Ramazani To: dev@dpdk.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [dpdk-dev] rte_eal_init independent from main(int argc, char** argv) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Feb 2014 12:56:04 -0000 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 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. >