From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qg0-f48.google.com (mail-qg0-f48.google.com [209.85.192.48]) by dpdk.org (Postfix) with ESMTP id 4049C292D for ; Fri, 11 Mar 2016 21:48:36 +0100 (CET) Received: by mail-qg0-f48.google.com with SMTP id y89so108382368qge.2 for ; Fri, 11 Mar 2016 12:48:36 -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=grt9mvoTLPCf3tn2xQj2KTx9Q2VLEzeN2l2MkvXnBqc=; b=OdctlUyFSdO43CCLdSmwLttz3q1CMc5UQIqb70MikfjSjVW+ua/yPlYK5/pqP+ww/B N2vUE5QXBjmFakMKe8OccMJqt0K0dOpmno02SoxH8Yh4LQVVUEgpvug0I2VgBnq0gWMo B+TlB6ysdNkJMfRscwc7oubfID7SrBgaOGSLNhRaPkJzTIWVaEZVQsXy9I7eoXuCddZn wCdLO8AkMXYUrOMyBiJxkl/jqyViBmFdYkyBROxzvL0ekxBLpkJd1XHZg1OJpBibPlpz CZBEOg1buqA/TMlAv4cDUKFL3jCmc6KtaD4RhTzo7kKUjUrkEE7fgZtOy+fuEo/VZ6t9 d6Cw== 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=grt9mvoTLPCf3tn2xQj2KTx9Q2VLEzeN2l2MkvXnBqc=; b=Rz2b2P3XpqdjIswXo9ob1fJ5Eq85jEvSHH/4YAwufyzgVjjijGsDcZsr+Jq88EInt7 tJcLknLNWwJMTRhmOA3cd3z6lvLlo2OKTi385PVkrDS1BRFqnQ+xEnwE5ASnU9IDH5rD 7SqipIMKyGQHfbTHn5K2VB5na+vfaVgH7c3NfRir+bKLa4EMwUR0LgNIxdvsmw1aXb/y UdqAfbV3g9NZG6eAs7sZo9Fv/w2zwuA5RcmVUUwlsSsOW3YWtPklUn+YAPFR4jkV8b2O Z86u+tYJ1RB7G/n2S0u/XcBUE0kSuNMVZ+d3XbGteXezdPicsS/mcRxtVIgceCvoKjZ0 1Bzw== X-Gm-Message-State: AD7BkJJIt0B1A9yES30tU6L8O13VgKKdlXeM121f/nzkDn3VlI0orDb8cjFkKI+Gnmf4PbXIBI0X3r3L0DLhkw== X-Received: by 10.140.250.8 with SMTP id v8mr15504532qhc.9.1457729315742; Fri, 11 Mar 2016 12:48:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.94.215 with HTTP; Fri, 11 Mar 2016 12:47:56 -0800 (PST) In-Reply-To: References: From: Mahdi Moradmand Badie Date: Fri, 11 Mar 2016 15:47:56 -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 20:48:36 -0000 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, 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