p4lang / p4-dpdk-target

P4 driver SW for P4 DPDK target.
Apache License 2.0
57 stars 19 forks source link

NVFMSA-5808 [BUG] | Fixed function manager fails with p4ovs set pipeline #64

Closed riyazahm22 closed 1 year ago

riyazahm22 commented 1 year ago

NVFMSA-5808 [BUG] | Fixed function manager fails with p4ovs set pipeline (#517)

Issue: fixed function manager fails with p4-ovs set pipeline command.

Root Cause: Fixed function manager is initialized with p4ovs server startup. With set pipeline command also, fixed function manager is getting initialized, this leads to device add failure.

Fix: Added a global variable "is_skip_fix_func_mgr_init" to avoid re-initilization of fix function manager. Initially this flag set to "false", set to "true" after fixed function manager initialization.

And also, adding fixed function tdi.json files with program name $SHARED and parsing as part of TDI device addition when p4 program/pipeline not set.