From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qg0-f51.google.com (mail-qg0-f51.google.com [209.85.192.51]) by dpdk.org (Postfix) with ESMTP id 43EDA2965 for ; Fri, 11 Mar 2016 22:02:24 +0100 (CET) Received: by mail-qg0-f51.google.com with SMTP id u110so108779823qge.3 for ; Fri, 11 Mar 2016 13:02:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Zuk9WveDefpxSoLcwLbAx1Q6FCU8QLoVkEH1kC9bs8g=; b=oC33p7QdnruzSvs8fYbXQyqDftxGm6/q0EULA0zBYK+KpDXrkMzbt/WAmWsbqB6+wV UOZTJ2hs8/KOyOdJN8PEkgE8O3vuqgCkSRP2867s2NM4Oh05QehWARBcqe+v2M7UGZ8C zCw5CBnPZaUZsOrNgk1f6bRIxqH+EF2ZKxwKpbUQqj1eBlJqz/AF6uK+oRQFgAWqbkDd C+ACBVwU7LQX/ck3380MjebWJFn4tzdUltdQS2IJNAbEVuctSQASzs0NStotShOTZ/N4 3NGwfSOYDBMetZ+veEAWY4uYSzyXvgbaM293GPoNjNRvMIMVwj8xQ1D+dySUm2KBEFxV kQTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Zuk9WveDefpxSoLcwLbAx1Q6FCU8QLoVkEH1kC9bs8g=; b=GXOTRBRNF+f6b18VFpLJdRcjIlOzNGTYn4GjEWdzeN4R2LDHYepydM2SaV1f6PErWO QLfdqzm7okkei1x+pRo3RhjLj4Mvncfmnt+t2jPfIkLzXfdeQhn+BFoPP3bBf5IT1kyP ZT63medvzSg0t8+ZkKLaviD142sAS+kI5fl8+G2bc1TSFpnnE9HR4+y8jermdOpZX36A adCxvrGqp1JtDXcoMNU6IDBGbrbIL7qZUaEs3khvVGVD+4FzJojQG0F6JCX7slWqYQv/ vcR3lawxkFKZ1L2QE0JWuYRWuwqHAbsA2oaPChb8UCbTkqc8AVSm8y7cjInlkt3bFRl/ GsFQ== X-Gm-Message-State: AD7BkJLYXkAnpVVaXpYrr4p7QOMNj4pZc8mf1qWD+TnBC05KXMcGNpmRoVqs2w6Xevj7gCfQLsrsK06C9jlgXA== X-Received: by 10.140.250.8 with SMTP id v8mr15583073qhc.9.1457730143761; Fri, 11 Mar 2016 13:02:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.94.215 with HTTP; Fri, 11 Mar 2016 13:01:44 -0800 (PST) In-Reply-To: References: From: Mahdi Moradmand Badie Date: Fri, 11 Mar 2016 16:01:44 -0500 Message-ID: To: Kyle Larose Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: users@dpdk.org Subject: Re: [dpdk-users] Send and Receive packets to/from specific core X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2016 21:02:24 -0000 Yes, I found it before :), its a little ambiguous for me, I don't know how I could write the specific data(message or packet) into specific core, then change it and then read with the other core. On 11 March 2016 at 15:54, Kyle Larose wrote: > On Fri, Mar 11, 2016 at 3:47 PM, Mahdi Moradmand Badie > wrote: > > My big challenge is having a tested code (run able with right > > functionality), then run and change it in order to have my task. > > I wanna use the share memory btw cores in order to write/read to/from and > > knowing how do that :), all available code which I found are based on > NIC :( > > or maybe I am wrong!!! > > Thanks in advance, > > Take a look at this example: > > > http://dpdk.org/doc/guides/sample_app_ug/multi_process.html#basic-multi-process-example > > IIRC, it uses rings to send messages back and forth between the cores. > The code is available with the dpdk source, so it should serve as a > good starting point to see how to set up the shared memory and use it. > > Does that help? > > > > > On 11 March 2016 at 15:43, Kyle Larose wrote: > >> > >> On Fri, Mar 11, 2016 at 3:22 PM, Mahdi Moradmand Badie > >> wrote: > >> > Dear All, > >> > > >> > I wanna Send(write) a Packet(s) with specific data (for example x = > 10) > >> > from core 0 to share memory and Receive (Read) it with another Core > (for > >> > example Core 1), change it in Core 1 (for example X = X + 1) and write > >> > again in share memory. > >> > I really don't know How I could do it, I wanna do this without using > NIC > >> > ot > >> > rte_eth at all, so simple and easy but I confused. > >> > Please help me. > >> > > >> > PS. I know there are many example do more complex than this small > >> > exercise > >> > but all did it via NIC. > >> > >> What is your biggest challenge? Is it moving information between > >> cores, or getting information into your application? > >> > >> Consider that most of the multiprocess examples in DPDK do two things: > >> 1) Send/Receive packets to/from a NIC > >> 2) Send packets between cores > >> > >> You obviously want to do #2, and looking at those examples should make > >> how to do it fairly obvious. Is your challenge replacing #1 with > >> something other than a NIC? If so, you *could* consider using a pcap > >> PMD to just read packets from a file. In the past, I have used ring > >> PMDs in conjunction with a secondary process which generates packets > >> to inject arbitrarily formatted packets into my program. > >> > >> > > >> > -- > >> > M@hdi Mor@dm@nd B@die > > > > > > > > > > -- > > M@hdi Mor@dm@nd B@die > -- M@hdi Mor@dm@nd B@die