Satish,

> Thanks Ole for the quick response.
> 
> We are trying to send messages from a control plane process  to VPP process 
> via memif channel.
> This is to program the VPP dataplane tables for our product. 
> 
> I see some serialize functions in vppinfra/serialize.h  file. Are these the 
> ones you were referring that can come handy for us ?
> If so, I hope, we need to integrate this code onto our control plane process 
> as well. 

You could, but that wasn’t what I was referring to.

> Please let me know if my understanding is correct.

You currently have the following CP / DP interfaces in VPP:

1) The VPP Binary API
I was suggesting you looked at the VPP binary API.
For example the file src/vnet/interface.api contains the interface 
specification.
Serialization here is essentially big endian C-structs.
Then with a set of language bindings on the CP side. This is quite similar to 
gRPC.

1a) The VPP binary API with serialized memory structures in shared memory
This is above, but combined with the above serialization code for e.g. larger 
memory structures.
Downside is that it doesn’t work with other transports than shared memory. 
(E.g. unix domain sockets),
and that it doesn’t have a specified data model.

2) Punt paths
Punting packets from data plane over ‘normal’ interfaces or over Unix domain 
punt socket with meta data.

3) Counters and statistics over a separate shared memory interface

4) Host stack / VCL. E.g. for TCP control plane applications using VPP’s TCP 
implementation

Are you suggesting to create a new one?
Any reason why you couldn’t use 1.?

Best regards,
Ole

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11493): https://lists.fd.io/g/vpp-dev/message/11493
Mute This Topic: https://lists.fd.io/mt/28583926/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to