Control Plane Driver Usage - 2022.2 English

Vitis Networking P4 User Guide (UG1308)

Document ID
UG1308
Version
2022.2 English
Revision
After DPI simulation is completed, one of the following initialization functions is called:
  • XilVitisNetP4DcamCtxInit()
  • XilVitisNetP4BcamCtxInit()
  • XilVitisNetP4TcamCtxInit()
  • XilVitisNetP4StcamCtxInit()

Note that the names of these functions do not contain the text "Dpi". These functions all come from the CAM control plane drivers themselves. The work performed up until this point has all been done to allow these functions to be called. Each of these functions takes three parameters:

  • A pointer to a control plane driver context data structure
  • A pointer to a CAM configuration data structure

  • A pointer to an environment data structure, for example, the value returned by XilVitisNetP4DpiCreateEnv()

When these steps have been performed, the various control plane driver functions for insertion, modification, and deletion of table entries can be used. All such functions take the context data structure allocated by "CtxCreate()" functions mentioned previously as their first parameter.