Re: [vpp-dev] Help:VPP-DPDK #acl_plugin #dpdk

2023-02-07 Thread kk
I read the official example given by dpdk. The two function interfaces 
"rte_ring_create and rte_mempool_create" should indeed be called after 
rte_eal_init(). The problem is that I have no problem calling these two 
function interfaces in the vpp dpdk plug-in, which is very strange.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22565): https://lists.fd.io/g/vpp-dev/message/22565
Mute This Topic: https://lists.fd.io/mt/96804295/21656
Mute #acl_plugin:https://lists.fd.io/g/vpp-dev/mutehashtag/acl_plugin
Mute #dpdk:https://lists.fd.io/g/vpp-dev/mutehashtag/dpdk
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] Issue related to VCL Session Migration

2023-02-07 Thread Florin Coras
Hi Vivek, Aslam, 

That’s an interesting use case. We typically recommend using VCL natively and 
only if that’s not possible use LDP, which implies VLS locking. We haven’t had 
many VLS native integration efforts.

Coming back to your problem, any particular reason why you’re not registering 
all your app’s pthreads as vcl workers and have them listen on the same 
ip:port? Then vpp would just distribute incoming connections to all workers 
which can in parallel handle tls establishment and io.

If that’s not possible, you’re doing the right thing by using VLS. I’m assuming 
you’re creating those epoll sessions within the pthreads/workers? If that’s not 
the case, and you have sessions added to those epfds, you should get a "can't 
migrate nonempty epoll session” error. 

If on the other hand you accept sessions on only one worker, and then hand them 
off to other workers, you’ll need to change ownership/share those sessions in 
vpp as well, i.e., modify vls_clone_and_share_rpc_handler and have it call 
vls_init_share_session (which today it is not if mt workers is on). This is the 
least efficient option as it involves a lot of work per each session.  

Regards,
Florin

> On Feb 7, 2023, at 12:54 PM, Vivek Gupta  wrote:
> 
> Hi,
>  
> We have SSL based application using VCL. 
>  
> - Currently, we have one thread which does the epoll, TLS Session 
> establishment, Read/Write for multiple tunnels.
>  
> - Now we want to split the functionality in different threads, such that TLS 
> Session establishment happens in a separate thread,
>   read/write happens in another thread and Epoll is happening in separate 
> thread.
>   
> - To do this, we want migrate the VCL sessions from one VCL worker to another 
> VCL worker using the VLS wrapper.
>  
> - We notice that post the migration read/write is working fine from the 
> migrated thread, but EPOLL indications are not coming to either the
>   old thread or the new thread.
>  
> Since we are using VLS, we have set multi-thread-workers option to TRUE.
>  
> If we use the single VCL worker based VLS option, epoll is working fine for 
> us. But it will require lot of locks and hence trying to avoid that option.
>  
> Please let us know if epoll is supported for migrating the VCL sessions, with 
> multi-thread-workers option set to true. Also, any pointers
> any specific changes to be done for that will help a lot.
>  
>  
> Regards,
> Vivek


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

2023-02-07 Thread Vivek Gupta
Hi,

We have SSL based application using VCL.

- Currently, we have one thread which does the epoll, TLS Session 
establishment, Read/Write for multiple tunnels.

- Now we want to split the functionality in different threads, such that TLS 
Session establishment happens in a separate thread,
  read/write happens in another thread and Epoll is happening in separate 
thread.

- To do this, we want migrate the VCL sessions from one VCL worker to another 
VCL worker using the VLS wrapper.

- We notice that post the migration read/write is working fine from the 
migrated thread, but EPOLL indications are not coming to either the
  old thread or the new thread.

Since we are using VLS, we have set multi-thread-workers option to TRUE.

If we use the single VCL worker based VLS option, epoll is working fine for us. 
But it will require lot of locks and hence trying to avoid that option.

Please let us know if epoll is supported for migrating the VCL sessions, with 
multi-thread-workers option set to true. Also, any pointers
any specific changes to be done for that will help a lot.


Regards,
Vivek

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22563): https://lists.fd.io/g/vpp-dev/message/22563
Mute This Topic: https://lists.fd.io/mt/96816502/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 22.03 RC2 milestone tomorrow Wednesday 8 February 12:00 UTC

2023-02-07 Thread Andrew Yourtchenko
Hi all,

Just a kind reminder the RC2 milestone is tomorrow 12:00 UTC. After that on 
stable/2302 branch we will be accepting only the fixes to issues found by CSIT 
in preparation for the release. 

Thanks a lot!

--a /* your friendly 23.02 release manager */
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22562): https://lists.fd.io/g/vpp-dev/message/22562
Mute This Topic: https://lists.fd.io/mt/96813088/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] Help:VPP-DPDK #acl_plugin #dpdk

2023-02-07 Thread Matthew Smith via lists.fd.io
Are you calling those functions in an init/config function for your plugin?
Maybe they are being called before the dpdk plugin has executed
rte_eal_init().

-Matt


On Tue, Feb 7, 2023 at 4:05 AM kk  wrote:

> Hello everyone, I wrote a vpp plug-in by myself. I called the dpdk
> function interface "rte_ring_create and rte_mempool_create" in this
> plug-in, and then it will prompt:
> "MEMPOOL: Cannot allocate tailq entry!
> Problem getting send ring
> RING: Cannot reserve memory for tailq
> RING: Cannot reserve memory for tailq
> ",
> does anyone know what's going on?
> And I found that I have no problem calling this function interface in the
> vpp-dpdk plug-in.
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22561): https://lists.fd.io/g/vpp-dev/message/22561
Mute This Topic: https://lists.fd.io/mt/96804295/21656
Mute #acl_plugin:https://lists.fd.io/g/vpp-dev/mutehashtag/acl_plugin
Mute #dpdk:https://lists.fd.io/g/vpp-dev/mutehashtag/dpdk
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] DPDK 22.11 bump patch to review/merge

2023-02-07 Thread Zhang, Fan
Sorry forgot the patch link dpdk: bump to dpdk 22.11 (Ie120346c) · 
Gerrit Code Review (fd.io) 


On 2/7/2023 3:44 PM, Zhang, Fan via lists.fd.io wrote:

Hi,

We have DPDK 22.11 patch hanging there for a while.

I remember the decision in last community call was not to wait DPDK 
23.03 but merge this one instead.


If someone can have a deeper look at it, and/or do we need some tests 
under CSIT first?


Regards,

Fan





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

2023-02-07 Thread Zhang, Fan

Hi,

We have DPDK 22.11 patch hanging there for a while.

I remember the decision in last community call was not to wait DPDK 
23.03 but merge this one instead.


If someone can have a deeper look at it, and/or do we need some tests 
under CSIT first?


Regards,

Fan


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

2023-02-07 Thread Pei, Yulong
Hi Benoit,  A new one also need your help to review 
https://gerrit.fd.io/r/c/vpp/+/38135 , thanks a lot.

-Original Message-
From: vpp-dev@lists.fd.io  On Behalf Of Benoit Ganne 
(bganne) via lists.fd.io
Sent: Thursday, February 2, 2023 6:37 PM
To: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] help with review

Hi, thanks for the head's up.

> Please help to review below patches again, all your comments were 
> addressed. Thanks a lot.
> https://gerrit.fd.io/r/c/vpp/+/38008

Merged!

> https://gerrit.fd.io/r/c/vpp/+/38009

A few minor comments left on that one, but then we should be good to merge.

Thanks,
ben

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

2023-02-07 Thread kk
Hello everyone, I wrote a vpp plug-in by myself. I called the dpdk function 
interface "rte_ring_create and rte_mempool_create" in this plug-in, and then it 
will prompt:
"MEMPOOL: Cannot allocate tailq entry!
Problem getting send ring
RING: Cannot reserve memory for tailq
RING: Cannot reserve memory for tailq
",
does anyone know what's going on?
And I found that I have no problem calling this function interface in the 
vpp-dpdk plug-in.

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