VPP/API Concepts

From fd.io
< VPP
Revision as of 07:14, 10 May 2016 by Otroan (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

General considerations

The VPP binary API is a message passing API. A message from a client must include the 'client_index', an opaque cookie identifying the sender, and a 'context' field to let the client match request with reply. There are three classes of methods supported by the API as outlined below.


Request/Reply
Dump/Detail
Want

Issues

  1. Use of variable length arrays
  1. Pointers to shared memory blocks
  1. String versus binary arrrays

Proposed changes

  1. Make a common message header containing length, context and client_index