Thanks Florin,

I try to run a simple netcat application this time.
On one server I start vpp, vpp status show:
-----------------------------------------------------
vpp.service - vector packet processing engine
   Loaded: loaded (/lib/systemd/system/vpp.service; disabled; vendor preset: 
enabled)
   Active: active (running) since Thu 2018-01-18 14:31:55 PST; 4min 32s ago
  Process: 4755 ExecStartPre=/sbin/modprobe uio_pci_generic (code=exited, 
status=0/SUCCESS)
  Process: 4752 ExecStartPre=/bin/rm -f /dev/shm/db /dev/shm/global_vm 
/dev/shm/vpe-api (code=exited, status=0/SUCCESS)
Main PID: 4758 (vpp_main)
    Tasks: 6
   Memory: 49.4M
      CPU: 9min 4.839s
   CGroup: /system.slice/vpp.service
           └─4758 /usr/bin/vpp -c /etc/vpp/startup.conf

Jan 18 14:31:55 server02 /usr/bin/vpp[4758]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/udp_ping_test_plugin.so
Jan 18 14:31:55 server02 /usr/bin/vpp[4758]: load_one_plugin:63: Loaded plugin: 
/usr/lib/vpp_api_test_plugins/memif_test_plugin.so
Jan 18 14:31:55 server02 vpp[4758]: /usr/bin/vpp[4758]: dpdk_config:1240: EAL 
init args: -c 7 -n 4 --huge-dir /run/vpp/hugepages --file-prefix vpp -w 
0000:02:00.1 --master-lcore 0 --so
Jan 18 14:31:55 server02 /usr/bin/vpp[4758]: dpdk_config:1240: EAL init args: 
-c 7 -n 4 --huge-dir /run/vpp/hugepages --file-prefix vpp -w 0000:02:00.1 
--master-lcore 0 --socket-mem 64
Jan 18 14:31:56 server02 vpp[4758]: EAL: No free hugepages reported in 
hugepages-1048576kB   [Chunmei: there are hugepages-2048KB in the system, so I 
think it use 2048KB hugepages]
Jan 18 14:31:56 server02 vpp[4758]: EAL: VFIO support initialized
Jan 18 14:31:56 server02 vnet[4758]: EAL: VFIO support initialized
Jan 18 14:31:57 server02 vnet[4758]: unix_physmem_region_iommu_register: ioctl 
(VFIO_IOMMU_MAP_DMA): Invalid argument   [Chunmei: any problem here? Or how to 
disable vfio]
Jan 18 14:31:57 server02 vnet[4758]: unix_physmem_region_iommu_register: ioctl 
(VFIO_IOMMU_MAP_DMA): Invalid argument
Jan 18 14:31:57 server02 vnet[4758]: dpdk_ipsec_process:1011: not enough DPDK 
crypto resources, default to OpenSSL
------------------------------------------------
And I set the ip address is 169.254.100.18 on dpdk interface by vpp-config tool.

From another server01 (ip is 169.254.100.17) can ping 169.254.100.18 (this vpp 
server) [so I think vpp works now]
But from this server when I do :  “sudo 
LD_PRELOAD=/home/vpp/build-root/install-vpp-native/vpp/lib64/libvcl_ldpreload.so.0.0.0
  netcat -z -v 169.254.100.18 1-100”, it doesn’t work,  just show these 
following two line:
------

[101553] vcom_init...done!

[101553] vcom_constructor...done!
--------
Without vpp, netcat will return 22, 80 port can be connected.

Do I use vcl preload right?  Any instructions for running a native application 
by vcl preload?

Thanks!
-Chunmei

From: Florin Coras [mailto:fcoras.li...@gmail.com]
Sent: Thursday, January 18, 2018 10:12 AM
To: Liu, Chunmei <chunmei....@intel.com>
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] vcl preload usage error

Hi Chunmei,

The first error says you’re trying to bind multiple times to the same address, 
which is not supported. You’re getting the second error because you don’t have 
a fib path to the destination of your connect.

Hope this helps,
Florin


On Jan 17, 2018, at 3:55 PM, Liu, Chunmei 
<chunmei....@intel.com<mailto:chunmei....@intel.com>> wrote:

Hi all,

     I am a novice at vpp, I am trying to use 
LD_PRELOAD=/../../libvcl_ldpreload.so to run a native app with vpp, I got the 
following error:
vl_api_bind_sock_reply_t_handler:1000: [28874] ERROR: vpp handle 0x0, sid 4: 
bind failed: Address in use (-105)
2018-01-17 15:18:41.187 7fffe2b83700 -1 PosixStack listen unable to listen on 
0.0.0.0:6800/0: (111) Connection refused
vl_api_bind_sock_reply_t_handler:1000: [28874] ERROR: vpp handle 0x0, sid 5: 
bind failed: Address in use (-105)
2018-01-17 15:18:41.187 7fffe2b83700 -1 PosixStack listen unable to listen on 
0.0.0.0:6800/0: (111) Connection refused

And :
/usr/bin/vpp[29054]: transport_alloc_local_endpoint:293: no resolving interface 
for X.X.X.X
/usr/bin/vpp[29054]: vnet_connect: connect failed

What I missed in configure vpp?

Thanks a lot!
-Chunmei
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
https://lists.fd.io/mailman/listinfo/vpp-dev

_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to