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 972332C68; Tue, 8 Mar 2016 06:42:33 +0100 (CET) Received: by mail-qg0-f51.google.com with SMTP id u110so4183197qge.3; Mon, 07 Mar 2016 21:42:33 -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=8YN1desbjAfSmzXh6qcpnEFlImMULCaqIs3v1ICMCRo=; b=Csbs7excAC/mlgemXfwWOGrq7uQgEFvHKkxVBoNWxinD9W9TdH8UGldBvvoQzypfeh VjqG9fAToxMeV1bbKld77gokvGyALi+sa+JKN5DVtw7FaYyy3BNCEI+dc+SmXzDfQTVk OCsFAUOBzYO6Laq+jdMY754ORASvNs4arX5IrO+vrDGUNWGwb1lTpdFd/cQq+1efRW0f WFjriaxpoXlPqtNuwudXKTkjkgSCOL0yfXr1ni2Q1Q0AqmHUlw4ctLZ7jh8JWdiMt0Kj HD264R2Kn9J24sBleExXzahYf80Voy9UjO+sx30tBLM98UB5rzfF855AU9PsNchmYoYc nXIg== 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=8YN1desbjAfSmzXh6qcpnEFlImMULCaqIs3v1ICMCRo=; b=IXK66kNi68qDDdQ41Gl2cnNuVUmPaIAPHVdeYnAUzqxw7ipETgeXkkLwqZySTxQDfy o3TroU6Thjcwzp9ao9VNcKlQRRpcgwK+MOv2nQBPaGp2+ntRw7wFBqXdViJ1lcOWdzMP raFxrKnGViUsSQCKLhtdPRV+F6rk1E1j5O1O9SnTo+eKjc7Sw/ZSmGSr3xM2BB+Qhc/T Chu/AKtKkWvgAVpmbe3RIlfNYwD05cAWWaItE/OSWQKMx+fSQdr6nVqFlJXpvfZ20dHw 9R5MYuycgPE1nl9S+0QH/bXMiStYMuZ4QvM3SyzS3LKN4gbzj9gxKKhSUxwvUlAmyGXL YoLg== X-Gm-Message-State: AD7BkJLERKr7Of4SXXvPCr+Gjmd4fAov2XcysaBpX1BTlRvKQOKlTxpuVSD+MEidpGNnWqSZDR4odPagDXJe4w== X-Received: by 10.140.164.71 with SMTP id k68mr23595693qhk.97.1457415753099; Mon, 07 Mar 2016 21:42:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.94.215 with HTTP; Mon, 7 Mar 2016 21:41:53 -0800 (PST) In-Reply-To: References: From: Mahdi Moradmand Badie Date: Tue, 8 Mar 2016 00:41:53 -0500 Message-ID: To: Hamed Zaghaghi Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: dev@dpdk.org, users@dpdk.org Subject: Re: [dpdk-dev] [dpdk-users] how to Read(Write) from(to) via lcores in dpdk regardless of NIC 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, 08 Mar 2016 05:42:33 -0000 I wanna create for example 3 different packets in core_0 as master and store them one by one in share memory(rte_ring), then the core_1 as slave read them and do function on them (ex. P1+P2+P3) and again store in share memory, finally the core_0 read the packets from share memory and compare them with whatever expected :) As I said and you mentioned is the same? :) On 8 March 2016 at 00:35, Hamed Zaghaghi wrote: > Hi, > > If I understood well you need to do these tasks: > 1. Packet crafting (I think that DPDK has no functions for this task) > 2. Store packets (DPDK has (rte_mbuf)[ > http://dpdk.org/doc/api/rte__mbuf_8h.html]) > 3. Share between lcores (DPDK offers rte_ring) > > > > On Tue, Mar 8, 2016 at 8:45 AM Mahdi Moradmand Badie < > mahdi.mbadie@gmail.com> wrote: > >> Dear Hamed, >> >> First of all thank you so much for your kindly reply, >> >> It's the primary part of the big project, in order to be more familiar >> with DPDK, >> I have to implement the mentioned framework by use of DPDK, >> And finally we wanna implement the cache locking approach (via help of >> features like Cache Allocation Technology(CAT), Cache Monitoring Technology >> (CMT)) in Xeon processor (my supervisor told me this simple exercise >> will be helpful to do the final part) in such a way we could dedicate a >> specific part of shared memory (L3) to each core which the other don't >> access to it. >> Obviously using of DPDK with Xeon which both are from "Intel", is >> considered as strength point. >> >> I hope this was more clear :) >> >> On 7 March 2016 at 23:56, Hamed Zaghaghi >> wrote: >> >>> Hi Mahdi, >>> >>> Why do you want to use DPDK when you don't use NIC? You can do what you >>> want outside of DPDK. >>> >>> Regards, >>> Hamed Zaghaghi >>> >>> On Tue, Mar 8, 2016 at 12:16 AM Mahdi Moradmand Badie < >>> mahdi.mbadie@gmail.com> wrote: >>> >>>> Dear All, >>>> I am Mahdi and I am new in DPDK, >>>> I wanna generate for example 3 different packets in core0 as master >>>> write >>>> it to share memory (L3), then core1 as slave read this packets, change >>>> them >>>> with for example function1 and write again in share memory (L3) and >>>> finally >>>> check the result with whatever I expect. >>>> The most important thing is that I don't wanna use NIC and I don't know >>>> for >>>> working with cores how I can write/read to/from them, I mean with which >>>> template and sequence??? >>>> Thanks in advance, >>>> >>> >> >> >> -- >> M@hdi Mor@dm@nd B@die >> > -- M@hdi Mor@dm@nd B@die