From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-x22c.google.com (mail-ie0-x22c.google.com [IPv6:2607:f8b0:4001:c03::22c]) by dpdk.org (Postfix) with ESMTP id 74B9B685D for ; Thu, 17 Oct 2013 17:27:11 +0200 (CEST) Received: by mail-ie0-f172.google.com with SMTP id tp5so4265831ieb.3 for ; Thu, 17 Oct 2013 08:27:58 -0700 (PDT) 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:content-type; bh=XjUEJaw/AKeTpo2oD//3G4ICG5p0gaVh7ujUXVWlX/c=; b=NRHbEePPMiNT/+tFyFGj6Q17F9pWfNXy3b213fnMG7MpbrM+p6CgT2SfK8CN7mS9bc pl+HLOsf9Bjy9440e3P+PScd5cfAmnNyHlh7RGbFdP59Vkp8lV5hr5QC6vqTWflPpUKP JIxGU+b5oTs9ZoAzC2jXbSep/tl23jeHA8Mr0HImSUO4mtUAPfcoFcBtHhI+OaZzpVS6 zukfR1BLKSiZX2DiWebSWaEH7G57G152jKCo6Qk/oKV0DCrQB/42Eo2JOlfUo6UhAqYY ywt4yF8ze5R+rfWDkYT+ziBBCf+gLux1cOjdTmuhuNJgCt7b5jT14Vib4GkqDrRTmzCM gTuQ== MIME-Version: 1.0 X-Received: by 10.50.9.72 with SMTP id x8mr6892069iga.19.1382023678388; Thu, 17 Oct 2013 08:27:58 -0700 (PDT) Received: by 10.43.134.65 with HTTP; Thu, 17 Oct 2013 08:27:58 -0700 (PDT) In-Reply-To: References: Date: Thu, 17 Oct 2013 17:27:58 +0200 Message-ID: From: Gal Sagie To: Gopi Krishna B Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] sending and receiving packets 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: Thu, 17 Oct 2013 15:27:11 -0000 Assigning an IP is a function of the network stack, DPDK and the NIC does not need to be aware of that. DPDK is just used to poll packets from the NIC and insert them into the network stack start point inside rump kernels In the tcp_http_get example it is assumed you are connected to a DHCP server , this call is used to obtain an IP for the interface using DHCP : if ((e = rump_pub_netconfig_dhcp_ipv4_oneshot("dpdk0")) != 0) If you look at the udp echo server example, you can see how to set the IP address statically using this call: if (rump_pub_netconfig_ipv4_ifaddr(IFNAME, IF_ADDR, "255.255.255.0") != 0) On Thu, Oct 17, 2013 at 4:26 PM, Gopi Krishna B wrote: > > > On Thu, Oct 17, 2013 at 3:01 PM, Gal Sagie wrote: > >> Rump kernels is a flexible kernel architecture which runs in user space >> and is a very interesting project, you can read more about it >> here => http://www.netbsd.org/docs/rump/#rump-about >> It is currently part of the NetBSD source tree. >> >> A project was made to integrate Intel DPDK inside Rump kernel networking >> layer. (in order to provide a networking stack and user space on top of >> DPDK) >> You can read more about it here => >> https://github.com/anttikantee/dpdk-rumptcpip >> >> By using this you can run TCP Server inside rump kernel client and >> interface with the physical port using DPDK. >> >> Gopi, you didnt give enough information what exactly you are trying to >> do, you can look at the examples in the dpdk-rumptcpip >> maybe its best you first try to run them and see everything works. >> In order to write a TCP server application on top of Rump kernel you >> either need to use the rump system call API's (starts with rump_..) or >> use the libhijack (You can read more about it in the rump kernels page) >> >> Gal >> >>> >>> Hi > I realized that there are some sample examples available in > dpdk-rumptcpip, and am currently trying the tcp_http_get example. > > But the basic question still remains for me, without assigning an > IPaddress to the NIC which DPDK is controlling, how does the communication > happen. In more detail, what is the src_ipaddr in the packet being sent out. > > -- > Regards > Gopi Krishna > > > > -- Best Regards , The G.