From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f46.google.com (mail-oi0-f46.google.com [209.85.218.46]) by dpdk.org (Postfix) with ESMTP id 761292906 for ; Fri, 11 Mar 2016 21:43:29 +0100 (CET) Received: by mail-oi0-f46.google.com with SMTP id m82so94677094oif.1 for ; Fri, 11 Mar 2016 12:43: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 :cc; bh=mTStWJDXUNLBHIgACeE0A1hTXsXTgL3fjEe4F9Uk4VY=; b=a+EVA+Y5L2jCv2WUGOwQqm9li+skjfPzvkzc+F8qjAIeSeFg0uCNakcbecB1zduB5D ZBYw0aTxyHeLdr9mM/7R3cWAFejA34Efsf3tbHeKWp2N0KnfSaNPsLCFCTBOxW/Hq+OE DzksLKXXh76LBRS9TJcwKnSbrDbmiy55guBfbLqzM7s/ergvyILX0UD4n8ooTPdZIYw4 IMOkc1EKbL0MpfKjQdo+EsRVGaINw7wpHjvyCKPZR7paBL2apNeEOc+j6OniTSEdicdC Tu0CxqMDeTaweJXasXGXe2WrpiMiYk6ybcQf5hLeoRxtv2QkgNhL+uynKqKzNcjnAibR ugiw== 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:date :message-id:subject:from:to:cc; bh=mTStWJDXUNLBHIgACeE0A1hTXsXTgL3fjEe4F9Uk4VY=; b=UTkQrBXq67kkgZH/nvyT0eGvou2I+kv0E6pkqsjpoI81c8KM9N5mitpTAp2+ROPONL yfqFt4LWvCnz52O4uiuUSllGPXOJww1yPp88QFkPzjnjGkKsSW2DWZMtKqs4UA0kW1SY utWb1BRyxf9LE/MSly1vgxWIauyWadwrwsODe+oh0id+tHrG/1+sW1T5dgiGxTlF3XWU 1Z1jG+rVOp6zWcuj587SoQkjxDzzSne+q+xKXKDEtfKDBJZllPsCsEXBRjPS3tBONH/Y RP94p7HssPz8I0MNJHD0QzwueDqdGrS6XWW777wv418SJy5R/uyMS4bhmM64bMX+uQBJ XTOQ== X-Gm-Message-State: AD7BkJKCu1YYDhFR7EVZPec6/JElB1YRX3jRmrFrH/0Ie3rFZx8Eu0l8bz7O3ZYRU9hZ7Kaq3qrrEGmiktYN3Q== MIME-Version: 1.0 X-Received: by 10.202.214.21 with SMTP id n21mr6713259oig.122.1457729008878; Fri, 11 Mar 2016 12:43:28 -0800 (PST) Received: by 10.76.68.7 with HTTP; Fri, 11 Mar 2016 12:43:28 -0800 (PST) In-Reply-To: References: Date: Fri, 11 Mar 2016 15:43:28 -0500 Message-ID: From: Kyle Larose To: Mahdi Moradmand Badie Content-Type: text/plain; charset=UTF-8 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:43:29 -0000 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