Re: [vpp-dev] how to apply a dpdk makefile patch?

2018-05-04 Thread Damjan Marion
Correct. dpdk is statically linked into dpdk_plugin.so. -- Damjan > On 4 May 2018, at 13:36, Yang, Zhiyong wrote: > > Damjan, > Since dpdk is running as plugin in VPP, I misunderstood dpdk > was used in shared lib. > In fact, dpdk is compiled as

Re: [vpp-dev] gcc version 4.3.3 use, compile error appear

2018-05-04 Thread Dave Barach
To be direct: please switch to a supported compiler. Making a large number of trivial changes to accommodate gcc-4 is the tip of the iceberg. After that, you’ll notice that certain files take minutes to compile, and that the object code isn’t the best, either. D. From: vpp-dev@lists.fd.io

Re: [vpp-dev] how to apply a dpdk makefile patch?

2018-05-04 Thread Zhiyong Yang
Damjan, Since dpdk is running as plugin in VPP, I misunderstood dpdk was used in shared lib. In fact, dpdk is compiled as static lib firstly and dpdk_plugin call dpdk functions, right? Thanks Zhiyong From: Damjan Marion [mailto:dmarion.li...@gmail.com] Sent: Friday, May 4,

Re: [vpp-dev] Nodes enabled on interface

2018-05-04 Thread Damjan Marion
You cannot have nodes attached to sw_if_index. But my guess is that you want to know which features are enabled on the specific interface. That can be done with "show interface features". -- Damjan > On 4 May 2018, at 01:18, pradpate wrote: > > Team, > While adding a

Re: [vpp-dev] Python API for specific VPP instance

2018-05-04 Thread Ole Troan
Justin, > How can I "connect" to a specific instance of VPP through the python API ? > > Each instance (together, they form a topology) is run as follow: > sudo vpp unix { log /tmp/vpp1.log cli-listen /run/vpp/cli-vpp1.sock } > api-segment { prefix vpp1 } plugins { plugin dpdk_plugin.so {

Re: [vpp-dev] Dynamically attach to a PCI device

2018-05-04 Thread Damjan Marion
Last time I was looking into dpdk hotplug, i was not under impression that it was very usable for our use case but that was long time ago so maybe things changed. We can possibly work on that, but it will be major surgery in dpdk plugin code. -- Damjan > On 2 May 2018, at 13:46, Ray

Re: [vpp-dev] how to apply a dpdk makefile patch?

2018-05-04 Thread Damjan Marion
if you build vpp out-of-tree (by invoking autotools configure/make from src/ directly) you should be able to use shared libraries, but I would not be surprised that minor fixing of autotools files will be needed knowing the fact that such scenario was not recently used. May I ask what are you

Re: [vpp-dev] Set different QoS parameters for different pipes (different customers)

2018-05-04 Thread Damjan Marion
This raises general question about DPDK HQOS in VPP, I don't think we have anybody on this list who can help with question like this one. Should be better to take it out than to keep something unmaintained, incomplete and untested? -- Damjan > On 1 May 2018, at 15:32, Reza Mirzaei

Re: [vpp-dev] segfault due to movaps unaligned access

2018-05-04 Thread Damjan Marion
I would suggest that instead of: typedef struct { u16 *resource_idx; struct rte_crypto_op **ops; u16 cipher_resource_idx[IPSEC_CRYPTO_N_ALG]; u16 auth_resource_idx[IPSEC_INTEG_N_ALG]; CLIB_CACHE_LINE_ALIGN_MARK (pad); } crypto_worker_main_t __attribute__ ((aligned