[vpp-dev] vpp plugin path find error #plugin

2022-11-21 Thread aihua1980
dear all:
in  vpp_find_plugin_path () function,

there is some change from version 2005,
in version 2005 is this fragment
s = format (0, "%s/lib/" CLIB_TARGET_TRIPLET "/vpp_plugins:"
"%s/lib/vpp_plugins", path, path);
in version 2202 is this fragment
s = format (0, "%s/" CLIB_LIB_DIR "/vpp_plugins", path, path);
what is  the second path for?

in version  2202,split_plugin_path  Looks like it didn't work.

the same as  function vat_find_plugin_path()

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22215): https://lists.fd.io/g/vpp-dev/message/22215
Mute This Topic: https://lists.fd.io/mt/95189538/21656
Mute #plugin:https://lists.fd.io/g/vpp-dev/mutehashtag/plugin
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] How to make VPP work with Mellanox ConnectX-6 NICs?

2022-11-21 Thread Chinmaya Aggarwal
Hi Elias,

We are trying to configure Mellanox ConnectX-5 interface with VPP v22.02 using 
RDMA driver. We are able to create rdma interface, but when we try to configure 
those rdma interfaces inside lacp bonding we don't see it working. The "show 
bond" command only shows one active member rather than two.
Below are the configuration we tried:-
vpp# create int rdma host-if eth1
vpp# create int rdma host-if eth2
vpp# set interface promiscuous on eth1/0
vpp# set interface promiscuous on eth2/1
vpp# set int state eth1/0 up
vpp# set int state eth2/1 up
vpp# create bond mode lacp id 0
vpp# bond add BondEthernet0 eth1/0
vpp# bond add BondEthernet0 eth2/1
vpp# set int state BondEthernet0 up
vpp# set int state eth2/1 up
vpp# set int state eth1/0 up

Can you please tell if we are missing something here?

This issue has been raised on VPP mailing as well:-
https://lists.fd.io/g/vpp-dev/topic/94956154#22183

Thanks and Regards,
Chinmaya Agarwal

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22214): https://lists.fd.io/g/vpp-dev/message/22214
Mute This Topic: https://lists.fd.io/mt/95069595/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] How to make VPP work with Mellanox ConnectX-6 NICs?

2022-11-21 Thread Chinmaya Aggarwal
Hi Elias,

We are trying to configure Mellanox ConnectX-5 interface with VPP v22.02 using 
RDMA driver. We are able to create rdma interface, but when we try to configure 
those rdma interfaces inside lacp bonding we don't see it working. The "show 
bond" command only shows one active member rather than two.
Below are the configuration we tried:-
vpp# create int rdma host-if eth1 vpp# create int rdma host-if eth2 vpp# set 
interface promiscuous on eth1/0 vpp# set interface promiscuous on eth2/1 vpp# 
set int state eth1/0 up vpp# set int state eth2/1 up vpp# create bond mode lacp 
id 0 vpp# bond add BondEthernet0 eth1/0 vpp# bond add BondEthernet0 eth2/1 vpp# 
set int state BondEthernet0 up vpp# set int state eth2/1 up vpp# set int state 
eth1/0 up

Can you please tell if we are missing something here?

This issue has been raised on VPP mailing as well:-
https://lists.fd.io/g/vpp-dev/topic/94956154#22183

Thanks and Regards,
Chinmaya Agarwal

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22213): https://lists.fd.io/g/vpp-dev/message/22213
Mute This Topic: https://lists.fd.io/mt/95069595/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] "tx frame not ready " error in host-vpp1out tx

2022-11-21 Thread Guangming
Hi Mohsin 
I have find the root cause of this issue. VPP send a huge malform  packet 
to linux kernel,   
  the memcpy  in VNET_DEVICE_CLASS_TX_FN (af_packet_device_class)  
overwrite the tx_ring 


Thanks 
Guangming

zhangguangm...@baicells.com

From: Mohsin Kazmi via lists.fd.io
Date: 2022-11-21 19:00
To: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] "tx frame not ready " error in host-vpp1out tx
Hi Guangming,
 
What is the VPP version are you using?
 
-br
Mohsin
 
From:  on behalf of Guangming 
Reply-To: "vpp-dev@lists.fd.io" 
Date: Tuesday, November 8, 2022 at 8:01 AM
To: "Mohsin Kazmi (sykazmi)" , vpp-dev 
Subject: [vpp-dev] "tx frame not ready " error in host-vpp1out tx
 
Hi,Mohsin
 
I used  linux veth pari interface as af-packet interfeace in vpp. 
When  the vpp run for some time,  there are many "tx frame not ready " error  
in  host-vpp1out-tx.
If there is error, we can not ping from linux side to vpp side. Must need 
restart vpp to restore. 
From old mail. you say "tx frame not ready"​ means VPP didn't find empty queue 
at linux side.  But in my
envirment ,the trafiic is not big .Could give me some clues? 


vvp# monitor interface 
host-vpp1out interval 1 count 10
rx: 34.74Kpps 294.82Mbps tx: 17.68Kpps 32.39Mbps
rx: 42.78Kpps 372.72Mbps tx: 19.97Kpps 37.45Mbps
rx: 38.29Kpps 322.97Mbps tx: 18.50Kpps 33.34Mbps
rx: 33.73Kpps 273.07Mbps tx: 16.19Kpps 35.59Mbps
rx: 37.39Kpps 317.19Mbps tx: 15.38Kpps 33.30Mbps
rx: 33.81Kpps 274.42Mbps tx: 16.21Kpps 34.01Mbps
rx: 39.40Kpps 339.30Mbps tx: 16.12Kpps 33.15Mbps
rx: 37.98Kpps 330.83Mbps tx: 15.55Kpps 31.44Mbps
rx: 39.59Kpps 340.14Mbps tx: 16.37Kpps 36.92Mbps
rx: 39.44Kpps 340.84Mbps tx: 15.48Kpps 35.64Mbps
 
linux side
vpp1host: flags=4163  mtu 1600
inet 10.155.32.76  netmask 255.0.0.0  broadcast 10.255.255.255
ether e2:27:5e:cb:38:6b  txqueuelen 1000  (Ethernet)
RX packets 375729479  bytes 105801826082 (98.5 GiB)
RX errors 0  dropped 21875  overruns 0  frame 0
TX packets 829224788  bytes 867242223136 (807.6 GiB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
vpp1out: flags=4163  mtu 1600
ether 2e:1d:20:a2:bd:9c  txqueuelen 1000  (Ethernet)
RX packets 829224804  bytes 867242242079 (807.6 GiB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 375729488  bytes 105801827209 (98.5 GiB)
TX errors 0  dropped 10937 overruns 0  carrier 0  collisions 0
 
VPP side
vpp# show interface addr 
TenGigabitEthernet19/0/0 (up):
  L3 10.155.32.6/27
TenGigabitEthernet19/0/2 (up):
  L3 10.155.32.68/29
host-vpp1out (up):
  L3 10.155.32.75/29
local0 (dn):
 
 
host-vpp1out   3 up   host-vpp1out
  Link speed: unknown
  RX Queues:
queue thread mode  
0 vpp_wk_0 (1)   interrupt 
  Ethernet address 02:fe:06:f0:ef:d6
  Linux PACKET socket interface
  block:10485760 frame:10240
  next frame:867
  available:0 request:0 sending:0 wrong:1024 total:1024
 
Thanks 
Guangming
 
 


zhangguangm...@baicells.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22212): https://lists.fd.io/g/vpp-dev/message/22212
Mute This Topic: https://lists.fd.io/mt/94886139/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] "tx frame not ready " error in host-vpp1out tx

2022-11-21 Thread Mohsin Kazmi via lists.fd.io
Hi Guangming,

What is the VPP version are you using?

-br
Mohsin

From:  on behalf of Guangming 
Reply-To: "vpp-dev@lists.fd.io" 
Date: Tuesday, November 8, 2022 at 8:01 AM
To: "Mohsin Kazmi (sykazmi)" , vpp-dev 
Subject: [vpp-dev] "tx frame not ready " error in host-vpp1out tx

Hi,Mohsin

I used  linux veth pari interface as af-packet interfeace in vpp.
When  the vpp run for some time,  there are many "tx frame not ready " error  
in  host-vpp1out-tx.
If there is error, we can not ping from linux side to vpp side. Must need 
restart vpp to restore.
From old mail. you say "tx frame not ready"​ means VPP didn't find empty queue 
at linux side.  But in my
envirment ,the trafiic is not big .Could give me some clues?


vvp# monitor interface 
host-vpp1out interval 1 count 10
rx: 34.74Kpps 294.82Mbps tx: 17.68Kpps 32.39Mbps
rx: 42.78Kpps 372.72Mbps tx: 19.97Kpps 37.45Mbps
rx: 38.29Kpps 322.97Mbps tx: 18.50Kpps 33.34Mbps
rx: 33.73Kpps 273.07Mbps tx: 16.19Kpps 35.59Mbps
rx: 37.39Kpps 317.19Mbps tx: 15.38Kpps 33.30Mbps
rx: 33.81Kpps 274.42Mbps tx: 16.21Kpps 34.01Mbps
rx: 39.40Kpps 339.30Mbps tx: 16.12Kpps 33.15Mbps
rx: 37.98Kpps 330.83Mbps tx: 15.55Kpps 31.44Mbps
rx: 39.59Kpps 340.14Mbps tx: 16.37Kpps 36.92Mbps
rx: 39.44Kpps 340.84Mbps tx: 15.48Kpps 35.64Mbps

linux side
vpp1host: flags=4163  mtu 1600
inet 10.155.32.76  netmask 255.0.0.0  broadcast 10.255.255.255
ether e2:27:5e:cb:38:6b  txqueuelen 1000  (Ethernet)
RX packets 375729479  bytes 105801826082 (98.5 GiB)
RX errors 0  dropped 21875  overruns 0  frame 0
TX packets 829224788  bytes 867242223136 (807.6 GiB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vpp1out: flags=4163  mtu 1600
ether 2e:1d:20:a2:bd:9c  txqueuelen 1000  (Ethernet)
RX packets 829224804  bytes 867242242079 (807.6 GiB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 375729488  bytes 105801827209 (98.5 GiB)
TX errors 0  dropped 10937 overruns 0  carrier 0  collisions 0

VPP side
vpp# show interface addr
TenGigabitEthernet19/0/0 (up):
  L3 10.155.32.6/27
TenGigabitEthernet19/0/2 (up):
  L3 10.155.32.68/29
host-vpp1out (up):
  L3 10.155.32.75/29
local0 (dn):


host-vpp1out   3 up   host-vpp1out
  Link speed: unknown
  RX Queues:
queue thread mode
0 vpp_wk_0 (1)   interrupt
  Ethernet address 02:fe:06:f0:ef:d6
  Linux PACKET socket interface
  block:10485760 frame:10240
  next frame:867
  available:0 request:0 sending:0 wrong:1024 total:1024

Thanks
Guangming



zhangguangm...@baicells.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22211): https://lists.fd.io/g/vpp-dev/message/22211
Mute This Topic: https://lists.fd.io/mt/94886139/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] Memif performance

2022-11-21 Thread Mohsin Kazmi via lists.fd.io
Hi Praveen,

Are you using libmemif for C++ application? Can you share the performance 
numbers?

-br
Mohsin

From:  on behalf of praveen 
Reply-To: "vpp-dev@lists.fd.io" 
Date: Saturday, November 19, 2022 at 1:43 PM
To: "vpp-dev@lists.fd.io" 
Subject: Re: [vpp-dev] Memif performance

Team,
Can anyone from the team help me?

Thanks,
Praveen.

Sent from Mail for Windows

From: praveen
Sent: 14 November 2022 08:53
To: vpp-dev@lists.fd.io
Subject: RE: Memif performance

Gentle reminder!

Sent from Mail for Windows

From: praveen
Sent: 11 November 2022 17:02
To: vpp-dev@lists.fd.io
Subject: Memif performance

Hi Team,
I am trying to transfer packets between two applications(one written in C++ and 
the other in go-lang). I am using the latest build for both C-memif and 
Go-memif. The performance I am getting is lower than the IP-based socket.

Configuration applied in memif.

num_s2m_rings/NumQueues - 1
num_m2s_rings/NumTxQueues - 1
buffer_size/BufferSize  - 2048
log2_ring_size/Log2RingSize   - 10
mode  - Ethernet(0)

There is no queuing of the packet happening but still, I am getting throughput 
well below the actual IP-based socket communication.

Could anyone help please in this regard ?

Thanks,
Praveen.

Sent from Mail for Windows




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22210): https://lists.fd.io/g/vpp-dev/message/22210
Mute This Topic: https://lists.fd.io/mt/94956458/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-