[vpp-dev] UDP multithreading error

2022-09-07 Thread nengjie wang
The attachment is my server program.

My VPP version is 22.06. When I start this server by LDP and send a request
to this server, the server will have a direct segment error. Two threads
share an event queue, resulting in an event queue crash. Can you tell me if
LDP does not support this use?

In addition, I noticed that there is a configuration item called ‘muti
thread workers’ in the VCL configuration file. When this configuration is
turned on, the program can not receive RPC response. Is it suitable for me
to use this configuration item in this case?


udp_recv.c
Description: Binary data

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21855): https://lists.fd.io/g/vpp-dev/message/21855
Mute This Topic: https://lists.fd.io/mt/93520105/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] opensuse uplift

2022-09-07 Thread Benoit Ganne (bganne) via lists.fd.io
> It's just a notice, that I reworked a minor fix for build on openSUSE.
> Excuse me if I confused the reviewer with my updates on this commit.
> The link for gerrit review: https://gerrit.nordix.org/c/fdio/vpp/+/14826

Hi Laszlo,

Thanks but the link points to gerrit.nordix.org which is not fd.io gerrit. If 
we want us to review/merge something, please submit a patch on 
https://gerrit.fd.io/ 😊

Best
ben

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21856): https://lists.fd.io/g/vpp-dev/message/21856
Mute This Topic: https://lists.fd.io/mt/93505833/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] opensuse uplift

2022-09-07 Thread Laszlo Király
Hi,
The correct link to FDio gerrit: https://gerrit.fd.io/r/c/vpp/+/37067
--
Laszlo Kiraly

From: Laszlo Király
Sent: Tuesday, September 6, 2022 6:50 PM
To: vpp-dev@lists.fd.io 
Subject: opensuse uplift

Hello devs,

It's just a notice, that I reworked a minor fix for build on openSUSE. Excuse 
me if I confused the reviewer with my updates on this commit.
The link for gerrit review: https://gerrit.nordix.org/c/fdio/vpp/+/14826

--
Laszlo Kiraly

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21857): https://lists.fd.io/g/vpp-dev/message/21857
Mute This Topic: https://lists.fd.io/mt/93505833/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]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] lpm table api?

2022-09-07 Thread hemant via lists.fd.io
I see vpp uses a lpm table for fib_entry_t. Is any api available to create a
lpm table in a plugin?

 

Hemant



smime.p7s
Description: S/MIME cryptographic signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21858): https://lists.fd.io/g/vpp-dev/message/21858
Mute This Topic: https://lists.fd.io/mt/93525345/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] UDP multithreading error

2022-09-07 Thread Florin Coras
Hi, 

Just tested on master and this seems to work fine after a few app fixes. Having 
said that, I would recommend you build vcl native apps and register multiple 
workers for better performance.

Comments:
- make sure sockets are not blocking otherwise there’s a good change that only 
one of the threads will output something
- only print a message if data was received

See diff here [1].  

Example output, with 2 clients (c1 and c2) and updated ips. 

[snip]
vppcom_session_create:1410: vcl<233836:0>: created session 1
ldp<233836>: fd 33: calling vls_bind: vlsh 1, addr 0x7ffd7d7cf750, len 16
vppcom_session_bind:1599: vcl<233836:0>: session 1 handle 1: binding to local 
IPv4 address 7.0.0.2 port 12342, proto UDP
vppcom_session_listen:1628: vcl<233836:0>: session 1: sending vpp listen 
request...
vcl_session_bound_handler:569: vcl<233836:0>: session 1 [0x0]: listen succeeded!
ldp<233836>: fd 33 vlsh 1, cmd 4

[recv from 7.0.0.1:60414]c1 s1

[recv from 7.0.0.1:56760]c2 s1

[recv from 7.0.0.1:56760]c2 s2

[recv from 7.0.0.1:60414]c1 s2


Regards,
Florin

[1] https://pastebin.com/4LCukbEC

> On Sep 7, 2022, at 12:05 AM, nengjie wang  wrote:
> 
> The attachment is my server program.
> 
> My VPP version is 22.06. When I start this server by LDP and send a request 
> to this server, the server will have a direct segment error. Two threads 
> share an event queue, resulting in an event queue crash. Can you tell me if 
> LDP does not support this use?
> 
> In addition, I noticed that there is a configuration item called ‘muti thread 
> workers’ in the VCL configuration file. When this configuration is turned on, 
> the program can not receive RPC response. Is it suitable for me to use this 
> configuration item in this case?
> 
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21859): https://lists.fd.io/g/vpp-dev/message/21859
Mute This Topic: https://lists.fd.io/mt/93520105/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]
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] vpp vpp v22.10-rc0~177-g563d34ba9 lcp create unknown input `' problem

2022-09-07 Thread Paweł Staszewski

Hi


Was trying linux-cp vpp and the problem is that i cant create any 
interface with lcp because any command is like this:


vpp# lcp create
vpp# lcp create help
lcp create: unknown input `'
vpp# lcp create default
lcp create: unknown input `'
vpp# lcp create
vpp# lcp create1
lcp: unknown input `create1'
vpp# lcp create
vpp# lcp create  1
lcp create: host interface name required
vpp# lcp create  e0 host-if ens1f1np1
lcp create: unknown input `'
vpp# lcp create  e0 host-if
lcp create: unknown input `'
vpp# lcp create  e0 host-if
lcp create: unknown input `'
vpp# lcp create  e0  host-if
lcp create: unknown input `'
vpp# lcp create  e0  host-if
lcp create: unknown input `'
vpp# lcp create  e0  host-if
lcp create: unknown input `'
vpp# lcp create "e0"
lcp create: unknown input `'
vpp# lcp create 'e0'
lcp create: unknown input `'
vpp# lcp create 'e0' host-if 'abc'
lcp create: unknown input `'
vpp# lcp create  e0 host-if ens1f1np1
lcp create: unknown input `'


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21860): https://lists.fd.io/g/vpp-dev/message/21860
Mute This Topic: https://lists.fd.io/mt/93536468/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]
-=-=-=-=-=-=-=-=-=-=-=-