Andrew,

 

Thanks!  Yes, I am a developer trying to get started with VPP.  

 

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.

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?

 

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

 

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.

 

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

 

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] 
<mailto:[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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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