I have encountered the below issue.  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.

Thanks & Regards,
Krishna Chaithanya.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
rumpkernel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rumpkernel-users

Reply via email to