Hi Alexender,
 
 Thanks for the response.  Please validate our understanding from the below 
logs.
  
 1) using a DPDK-compatible ethernet interface already bound to igb_uio

root@tcs-virtual-machine:/home/tcs/drv-netif-dpdk/dpdk/tools# 
./dpdk_nic_bind.py --status
Network devices using DPDK-compatible driver
============================================
0000:00:06.0 '82540EM Gigabit Ethernet Controller' drv=igb_uio unused=
0000:00:07.0 '82540EM Gigabit Ethernet Controller' drv=igb_uio unused=

Network devices using kernel driver
===================================
0000:00:03.0 'RTL-8100/8101L/8139 PCI Fast Ethernet Adapter' if=eth0 drv=8139cp 
unused=igb_uio *Active*

Other network devices
=====================
<none>

2) with a rumpkernel built with drv-netif-dpdk
-> Compilation successful and we are able to run sample applications.

3) a rumprun-posix environment, configured to talk to my rumpkernel
-> We are able to create virtio interfaces with below commands.
   
   root@tcs-virtual-machine:/home/tcs/drv-netif-dpdk/dpdk/tools# export 
RUMP_SERVER=unix:///tmp/netsrv 
   root@tcs-virtual-machine:/home/tcs/drv-netif-dpdk# ./rump/bin/rump_server 
-lrumpnet -lrumpnet_net -lrumpnet_netinet -lrumpdev -lrumpdev_bpf -lrumpnet_npf 
-lrumpnet_virtif ${RUMP_SERVER}

root@tcs-virtual-machine:/home/tcs/drv-netif-dpdk/rumprun-posix/bin# ./ifconfig 
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33648
        inet 127.0.0.1 netmask 0xff000000
root@tcs-virtual-machine:/home/tcs/drv-netif-dpdk/rumprun-posix/bin# ./ifconfig 
virt0 create
root@tcs-virtual-machine:/home/tcs/drv-netif-dpdk/rumprun-posix/bin# 
root@tcs-virtual-machine:/home/tcs/drv-netif-dpdk/rumprun-posix/bin# ./ifconfig 
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33648
        inet 127.0.0.1 netmask 0xff000000
virt0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        address: b2:0a:87:0b:0e:00
root@tcs-virtual-machine:/home/tcs/drv-netif-dpdk/rumprun-posix/bin# ./ifconfig 
virt0 inet 192.168.2.125 netmask 0xffffff00
root@tcs-virtual-machine:/home/tcs/drv-netif-dpdk/rumprun-posix/bin# ./ifconfig 
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33648
        inet 127.0.0.1 netmask 0xff000000
root@tcs-virtual-machine:/home/tcs/drv-netif-dpdk/rumprun-posix/bin# 
root@tcs-virtual-machine:/home/tcs/drv-netif-dpdk/rumprun-posix/bin# ./route 
show
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use    Mtu Interface
127.0.0.1          127.0.0.1          UH          -        -  33648  lo0
192.168.2/24       link#2             U           -        -      -  virt0

we are unable to create the dpdk intefaces.

please find the trace as follows.

root@tcs-virtual-machine:/home/tcs/drv-netif-dpdk/rumprun-posix/bin# ./ifconfig 
dpdk0
./ifconfig: SIOCGIFFLAGS dpdk0: Device not configured
root@tcs-virtual-machine:/home/tcs/drv-netif-dpdk/rumprun-posix/bin# 
root@tcs-virtual-machine:/home/tcs/drv-netif-dpdk/rumprun-posix/bin# ./ifconfig 
dpdk0 create
./ifconfig: clone_command: Invalid argument
./ifconfig: exec_matches: Invalid argument


we have included the following in 
drv-netif-dpdk/buildrump.sh/drv-netif-dpdk/buildrump.sh and recompiled the 
rump_server again to load libdpdkif library.

LDFLAGS+=       -L${RTE_SDK}/${RTE_TARGET}/lib -Wl,--no-as-needed

LDADD+=         -Wl,--whole-archive -lrumpnet_dpdkif -lrumpnet_config 
-lrumpdev_bpf -lrumpnet_netinet6 -lrumpnet_netinet -lrumpnet_net -lrumpnet 
-lrump -lrumpuser -lethdev -lrte_eal -lrte_hash -lrte_lpm -lrte_malloc 
-lrte_mbuf -lrte_mempool -lrte_pmd_ixgbe -lrte_pmd_e1000 -lrte_pmd_ring 
-lrte_pmd_virtio_uio -lrte_pmd_vmxnet3_uio -lrte_ring -lrte_timer -lrte_kvargs 
-Wl,--no-whole-archive

But we are facing the unresolved symbols problem as follows.


root@tcs-virtual-machine:/home/tcs/drv-netif-dpdk# ./rump/bin/rump_server 
-lrumpnet -lrumpnet_net -lrumpnet_netinet -lrumpdev -lrumpdev_bpf -lrumpnet_npf 
-lrumpnet_virtif -lrumpnet_dpdkif ${RUMP_SERVER}
failed to load -libraries, last error from "rumpnet_dpdkif":
  /home/tcs/drv-netif-dpdk/rump/lib/librumpnet_dpdkif.so: undefined symbol: 
rte_pktmbuf_init

To create dpdk intefaces using rump utilities, are we supposed load this 
library (librumpnet_dpdkif) to rump_server ?? do we need some makefile changes 
in my enviroment to overcome the above situation.

could you please help us in resolving the above problem.

Regards,
Manikanta.

-----Alexander Guy <[email protected]> wrote: -----
To: T Manikantasrinivas <[email protected]>
From: Alexander Guy <[email protected]>
Date: 02/12/2015 01:04AM
Cc: [email protected]
Subject: Re: Reg: Rump kernel + dpdk1.8.0 integration problem

> On Feb 11, 2015, at 6:07 AM, T Manikantasrinivas 
> <[email protected]> wrote:
> 
> Lets say If i want to create dpdk0 from ./bin/ifconfig utility.we are unable 
> to do it. we have gone through sample application given in drv-netif-dpdk, 
> where dpdk0 interface is being created by rump system calls, can we see this 
> interfaces with rump.ifconfig utility.
> 

Hi Manikanta,
    You should be able to create and configure a DPDK port like any other 
rumpkernel network interface.  For example: 

- using a DPDK-compatible ethernet interface already bound to igb_uio
- with a rumpkernel built with drv-netif-dpdk
- a rumprun-posix environment, configured to talk to my rumpkernel

&#8230; I can do the following:

rumpremote (unix://csock)$ ifconfig dpdk0
ifconfig: SIOCGIFFLAGS dpdk0: Device not configured
rumpremote (unix://csock)$ ifconfig dpdk0 create
rumpremote (unix://csock)$ ifconfig dpdk0
dpdk0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        address: a0:36:9f:ca:fe:be
rumpremote (unix://csock)$ ifconfig dpdk0 10.0.0.172 netmask 255.255.255.0
rumpremote (unix://csock)$ ping 10.0.0.1
PING 10.0.0.1 (10.0.0.1): 64 data bytes
64 bytes from 10.0.0.1: icmp_seq=0 ttl=64 time=10.000000 ms
^C
rumpremote (unix://csock)$ route add default 10.0.0.1
add net default: gateway 10.0.0.1
rumpremote (unix://csock)$ ping 4.2.2.2
PING 4.2.2.2 (4.2.2.2): 64 data bytes
64 bytes from 4.2.2.2: icmp_seq=0 ttl=57 time=50.000000 ms
^C
rumpremote (unix://csock)$ mkdir -p /etc && dd of=/etc/resolv.conf
nameserver 8.8.8.8
0+1 records in
0+1 records out
19 bytes transferred in 13.040 secs (1 bytes/sec)
rumpremote (unix://csock)$ ping www.rumpkernel.org
PING github.map.fastly.net (23.235.47.133): 64 data bytes
64 bytes from 23.235.47.133: icmp_seq=0 ttl=58 time=50.000000 ms
64 bytes from 23.235.47.133: icmp_seq=1 ttl=58 time=40.000000 ms
^C
rumpremote (unix://csock)$ ifconfig dpdk0 down
rumpremote (unix://csock)$ ping www.rumpkernel.org
ping: Cannot resolve "www.rumpkernel.org" (Host name lookup failure)
rumpremote (unix://csock)$ ifconfig dpdk0 up 
rumpremote (unix://csock)$ ping www.rumpkernel.org
PING github.map.fastly.net (23.235.47.133): 64 data bytes
64 bytes from 23.235.47.133: icmp_seq=0 ttl=58 time=40.000000 ms
^C
rumpremote (unix://csock)$

In future, if you&#8217;re having issues running commands, please send both the 
command and the output along with your emails.  It will help us help you debug 
your situation.

Thanks.


Alexander


=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
rumpkernel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rumpkernel-users

Reply via email to