From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vc0-x22e.google.com (mail-vc0-x22e.google.com [IPv6:2607:f8b0:400c:c03::22e]) by dpdk.org (Postfix) with ESMTP id 4F81F68F0 for ; Tue, 18 Feb 2014 13:52:53 +0100 (CET) Received: by mail-vc0-f174.google.com with SMTP id im17so13148429vcb.33 for ; Tue, 18 Feb 2014 04:54:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=UqqICN2Q/eyGU84xOcCyDfKakBj3R4YiCFlzyEaLrts=; b=I4O5R8CsdSqWc9A8puEl1Gxw7J32T4NkcUdOgGvrcXhmwQQMTe3Rlu2p1A6YDi40w2 q97zd0CoF5k0dzNVrjH+zkXTot7oAiZaxApw5TrsffXHI5jIHW0vJRmmDOAkNqoBHFS9 dLesQztwujLb1B4Fp6c/2sVJ1pNv1esWNv4vxw50cMhH6gdCbykbWjeFg54bsqMNIC/Z lHdwgxx45Vik9oIxmQzfRDsrsQrpMyK+MzEgb/Zvg/zB9W62o048l/COX+FSbd02y3Jp bS1EcKs0voZbnr48Exj2MZo0KAPp9QQotA3Ie4/sO42SlRWWmK2Brec7H8i5QDHRq31K SdMg== MIME-Version: 1.0 X-Received: by 10.53.9.107 with SMTP id dr11mr7626135vdd.1.1392728057650; Tue, 18 Feb 2014 04:54:17 -0800 (PST) Received: by 10.58.54.113 with HTTP; Tue, 18 Feb 2014 04:54:17 -0800 (PST) Date: Tue, 18 Feb 2014 16:24:17 +0330 Message-ID: From: Hamid Ramazani To: dev@dpdk.org Content-Type: text/plain; charset=ISO-8859-1 Subject: [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:52:53 -0000 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.