Hemant,

> On 17 Sep 2020, at 00:43, [email protected] wrote:
> 
> 
> Andrew,
>  
> Thanks!  Yes, I am a developer trying to get started with VPP. 
>  

Cool! So my “find the answer” quiz was on target :-)

> I run VPP using “make run-release” and get to the “vpp#” prompt.  I could do 
> a “cdp enable” and thus I know this plugin has been loaded. 
>  
> Now how to I run the packet testing in vpp/src/plugins/cdp/test/?  There is a 
> test_cdp.py in the path.  I am familiar with PTF.

“Make test-help” will give more info.

> Once I can run test.py for a plugin, I’d like to learn how to run performance 
> testing to see how many packets/sec of a certain size I can achieve for a 
> plugin.  What would be a good plugin to test performance with?

That’s trickier... look around  https://wiki.fd.io/view/CSIT - basically, perf 
testing the VPP is a separate project :-) but the good thing is some reports 
might be already there..

>  
> I love the fact that you (and perhaps others) have added lua examples to 
> vpp-api.

Lua didn’t get much love for quite a while and I think would need some 
resuscitations to work :-)
That said, last time I had a half a day to toy  with it, in half a day I had 
something sorta working... but don’t expect what is in the tree to be up to 
date... it’s waiting for the folks to help it :-)

>  
> I am developing a compiler which ingests P4 code and outputs a VPP plugin.  
> First, I will make the compiler functionally correct to support as many P4 
> features and as many VPP features.  Then I will worry about performance which 
> is a hard problem.

This is a fun idea!

>  
> If you see a VPP plugin, several files can be auto-generated by compiler or 
> script.  My compiler is already generating these files:
>  
> -rw-rw-r--  1 hemant hemant   1498 Sep 16 18:38 tmp_test.c
> -rw-rw-r--  1 hemant hemant  10577 Sep 16 18:38 tmp.h
> -rw-rw-r--  1 hemant hemant  79257 Sep 16 18:38 tmp.c
> -rw-rw-r--  1 hemant hemant    412 Sep 16 18:38 tmp.api
> -rw-rw-r--  1 hemant hemant    250 Sep 16 18:38 CMakeLists.txt

Nice! There is the lisp script somewhere in the tree that asks questions and 
spits out the plugin, but it’s a skeleton, with P4 one could probably go quite 
a good bit further...

Is your compiler gonna be open source ?

—a


>  
> Best wishes,
>  
> Hemant
>  
>  
>  
> From: Andrew 👽 Yourtchenko <[email protected]> 
> Sent: Wednesday, September 16, 2020 4:12 PM
> To: [email protected]
> Cc: [email protected]
> Subject: Re: [vpp-dev] run existing plugin in VPP
>  
> Hey Hemant,
>  
> Welcome! :-)
> 
> Most of the plugins load automatically (default), some don’t by default.. 
> (see src/plugins/unittest/unittest.c on how it’s overridden).
>  
> You can take a look at the config required to change the defaults in 
> test/framework.py, line 422)
>  
> Looking at those places, as well as the CDP plugin, should answer the 
> question.
>  
> (I am assuming you are a developer trying to get started with VPP so trying 
> to give the pointers I myself would have found useful).
>  
> --a
> 
> 
> On 16 Sep 2020, at 19:11, hemant via lists.fd.io 
> <[email protected]> wrote:
> 
> 
> Folks,
>  
> I am new to VPP.  I see several plugins in vpp/src/plugins.  How do I run an 
> existing plugin in VPP such as cdp?
>  
> Regards,
>  
> Hemant
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#17430): https://lists.fd.io/g/vpp-dev/message/17430
Mute This Topic: https://lists.fd.io/mt/76892185/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to