Re: [vpp-dev] #vpp How does VPP link DPDK lib?
DPDK is statically linked into dpdk plugin (dpdk_plugin.so). -- Damjan > On 29 Nov 2019, at 06:50, wei_sky2...@163.com wrote: > > > We think VPP uses DPDK for data receive from nic, but it seems no dpdk lib > exist in vpp project. > we also try to use readelf to check the libs used by vpp, or use strings > check the functions in each lib. We did not find how dpdk is used. So can you > please give some guide, how does vpp link dpdk lib? > > [root@PC-20180207IVMZ bin]# readelf -d ./vpp > > Dynamic section at offset 0xfcbc0 contains 38 entries: > 0x0001 (NEEDED) [libvlibmemory.so.19.08] > 0x0001 (NEEDED) [libvnet.so.19.08] > 0x0001 (NEEDED) [libdl.so.2] > 0x0001 (NEEDED) [libvlib.so.19.08] > 0x0001 (NEEDED) [libsvm.so.19.08] > 0x0001 (NEEDED) [librt.so.1] > 0x0001 (NEEDED) [libpthread.so.0] > 0x0001 (NEEDED) [libuuid.so.1] > 0x0001 (NEEDED) [libvppinfra.so.19.08] > 0x0001 (NEEDED) [libm.so.6] > 0x0001 (NEEDED) [libssl.so.10] > 0x0001 (NEEDED) [libcrypto.so.10] > 0x0001 (NEEDED) [libc.so.6] > 0x0001 (NEEDED) [ld-linux-x86-64.so.2] > 0x000f (RPATH) Library rpath: > [/home/lijinlei/LJL_VPP/vpp/build-root/build-vpp_debug-native/vpp/lib::] > 0x000c (INIT) 0x405050 > 0x000d (FINI) 0x4cdb20 > 0x0019 (INIT_ARRAY) 0x6fca88 > 0x001b (INIT_ARRAYSZ) 160 (bytes) > 0x001a (FINI_ARRAY) 0x6fcb28 > 0x001c (FINI_ARRAYSZ) 152 (bytes) > 0x6ef5 (GNU_HASH) 0x400298 > 0x0005 (STRTAB) 0x402420 > 0x0006 (SYMTAB) 0x400698 > 0x000a (STRSZ) 5918 (bytes) > 0x000b (SYMENT) 24 (bytes) > 0x0015 (DEBUG) 0x0 > 0x0003 (PLTGOT) 0x6fd000 > 0x0002 (PLTRELSZ) 3384 (bytes) > 0x0014 (PLTREL) RELA > 0x0017 (JMPREL) 0x404318 > 0x0007 (RELA) 0x403e68 > 0x0008 (RELASZ) 1200 (bytes) > 0x0009 (RELAENT)24 (bytes) > 0x6ffe (VERNEED)0x403db8 > 0x6fff (VERNEEDNUM) 4 > 0x6ff0 (VERSYM) 0x403b3e > 0x (NULL) 0x0 > > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > > View/Reply Online (#14731): https://lists.fd.io/g/vpp-dev/message/14731 > Mute This Topic: https://lists.fd.io/mt/64317715/675642 > Mute #vpp: https://lists.fd.io/mk?hashtag=vpp=1480514 > Group Owner: vpp-dev+ow...@lists.fd.io > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [dmar...@me.com] > -=-=-=-=-=-=-=-=-=-=-=- -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14735): https://lists.fd.io/g/vpp-dev/message/14735 Mute This Topic: https://lists.fd.io/mt/64317715/21656 Mute #vpp: https://lists.fd.io/mk?hashtag=vpp=1480452 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [vpp-dev] #vpp How does VPP link DPDK lib?
Hi Wei, DPDK links(static) as part of the dpdk plugin in VPP. You can do readelf on dpdk_plugin.so Thanks Shiva On Fri, Nov 29, 2019 at 11:20 AM wrote: > We think VPP uses DPDK for data receive from nic, but it seems no dpdk lib > exist in vpp project. > we also try to use readelf to check the libs used by vpp, or use strings > check the functions in each lib. We did not find how dpdk is used. So can > you please give some guide, how does vpp link dpdk lib? > > [root@PC-20180207IVMZ bin]# readelf -d ./vpp > > Dynamic section at offset 0xfcbc0 contains 38 entries: > 0x0001 (NEEDED) [libvlibmemory.so.19.08] > 0x0001 (NEEDED) [libvnet.so.19.08] > 0x0001 (NEEDED) [libdl.so.2] > 0x0001 (NEEDED) [libvlib.so.19.08] > 0x0001 (NEEDED) [libsvm.so.19.08] > 0x0001 (NEEDED) [librt.so.1] > 0x0001 (NEEDED) [libpthread.so.0] > 0x0001 (NEEDED) [libuuid.so.1] > 0x0001 (NEEDED) [libvppinfra.so.19.08] > 0x0001 (NEEDED) [libm.so.6] > 0x0001 (NEEDED) [libssl.so.10] > 0x0001 (NEEDED) [libcrypto.so.10] > 0x0001 (NEEDED) [libc.so.6] > 0x0001 (NEEDED) [ld-linux-x86-64.so.2] > 0x000f (RPATH) Library rpath: > [/home/lijinlei/LJL_VPP/vpp/build-root/build-vpp_debug-native/vpp/lib::] > 0x000c (INIT) 0x405050 > 0x000d (FINI) 0x4cdb20 > 0x0019 (INIT_ARRAY) 0x6fca88 > 0x001b (INIT_ARRAYSZ) 160 (bytes) > 0x001a (FINI_ARRAY) 0x6fcb28 > 0x001c (FINI_ARRAYSZ) 152 (bytes) > 0x6ef5 (GNU_HASH) 0x400298 > 0x0005 (STRTAB) 0x402420 > 0x0006 (SYMTAB) 0x400698 > 0x000a (STRSZ) 5918 (bytes) > 0x000b (SYMENT) 24 (bytes) > 0x0015 (DEBUG) 0x0 > 0x0003 (PLTGOT) 0x6fd000 > 0x0002 (PLTRELSZ) 3384 (bytes) > 0x0014 (PLTREL) RELA > 0x0017 (JMPREL) 0x404318 > 0x0007 (RELA) 0x403e68 > 0x0008 (RELASZ) 1200 (bytes) > 0x0009 (RELAENT)24 (bytes) > 0x6ffe (VERNEED)0x403db8 > 0x6fff (VERNEEDNUM) 4 > 0x6ff0 (VERSYM) 0x403b3e > 0x (NULL) 0x0 > > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > > View/Reply Online (#14731): https://lists.fd.io/g/vpp-dev/message/14731 > Mute This Topic: https://lists.fd.io/mt/64317715/3587972 > Mute #vpp: https://lists.fd.io/mk?hashtag=vpp=6638125 > Group Owner: vpp-dev+ow...@lists.fd.io > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [ > shivaashankar1...@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14732): https://lists.fd.io/g/vpp-dev/message/14732 Mute This Topic: https://lists.fd.io/mt/64317715/21656 Mute #vpp: https://lists.fd.io/mk?hashtag=vpp=1480452 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[vpp-dev] #vpp How does VPP link DPDK lib?
We think VPP uses DPDK for data receive from nic, but it seems no dpdk lib exist in vpp project. we also try to use readelf to check the libs used by vpp, or use strings check the functions in each lib. We did not find how dpdk is used. So can you please give some guide, how does vpp link dpdk lib? [root@PC-20180207IVMZ bin]# readelf -d ./vpp Dynamic section at offset 0xfcbc0 contains 38 entries: 0x0001 (NEEDED) [libvlibmemory.so.19.08] 0x0001 (NEEDED) [libvnet.so.19.08] 0x0001 (NEEDED) [libdl.so.2] 0x0001 (NEEDED) [libvlib.so.19.08] 0x0001 (NEEDED) [libsvm.so.19.08] 0x0001 (NEEDED) [librt.so.1] 0x0001 (NEEDED) [libpthread.so.0] 0x0001 (NEEDED) [libuuid.so.1] 0x0001 (NEEDED) [libvppinfra.so.19.08] 0x0001 (NEEDED) [libm.so.6] 0x0001 (NEEDED) [libssl.so.10] 0x0001 (NEEDED) [libcrypto.so.10] 0x0001 (NEEDED) [libc.so.6] 0x0001 (NEEDED) [ld-linux-x86-64.so.2] 0x000f (RPATH) Library rpath: [/home/lijinlei/LJL_VPP/vpp/build-root/build-vpp_debug-native/vpp/lib::] 0x000c (INIT) 0x405050 0x000d (FINI) 0x4cdb20 0x0019 (INIT_ARRAY) 0x6fca88 0x001b (INIT_ARRAYSZ) 160 (bytes) 0x001a (FINI_ARRAY) 0x6fcb28 0x001c (FINI_ARRAYSZ) 152 (bytes) 0x6ef5 (GNU_HASH) 0x400298 0x0005 (STRTAB) 0x402420 0x0006 (SYMTAB) 0x400698 0x000a (STRSZ) 5918 (bytes) 0x000b (SYMENT) 24 (bytes) 0x0015 (DEBUG) 0x0 0x0003 (PLTGOT) 0x6fd000 0x0002 (PLTRELSZ) 3384 (bytes) 0x0014 (PLTREL) RELA 0x0017 (JMPREL) 0x404318 0x0007 (RELA) 0x403e68 0x0008 (RELASZ) 1200 (bytes) 0x0009 (RELAENT) 24 (bytes) 0x6ffe (VERNEED) 0x403db8 0x6fff (VERNEEDNUM) 4 0x6ff0 (VERSYM) 0x403b3e 0x (NULL) 0x0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14731): https://lists.fd.io/g/vpp-dev/message/14731 Mute This Topic: https://lists.fd.io/mt/64317715/21656 Mute #vpp: https://lists.fd.io/mk?hashtag=vpp=1480452 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-