OVS DOCA with DOCA Flow API

Hi,

I have successfully executed the sample of DOCA Flow API. I understand its linkage with the device and application. I am further trying to run OVS-DOCA. As per the understanding, it should use the DOCA Flow API to offload the OVS rules to the hardware. However, I could not find any linkage between OVS and DOCA.

We are giving the following flag to enable DOCA in the OVS command but there is no such flag in the OVS source code.
ovs-vsctl --no-wait set Open_vSwitch . other_config:doca-init=true

Is there a specific version of OVS that I should use? Any guidelines would be appreciated.

Hello,

Can you share which doca version you use?

doca 2.2.0

" * Added beta-level support for OVS-DOCA, a highly optimized virtual switch for NVIDIA network services"

I tried to use “ovs-vsctl --no-wait set Open_vSwitch . other_config:doca-init=true” for 2.0.2 and got the error.

I am using doca 2.2.0.

In my case, the command “ovs-vsctl --no-wait set Open_vSwitch . other_config:doca-init=true” executed fine but there is no support of doca that I could find in ovs source code or in the ovs-vsctl man page

Basically, I was trying to understand by what approach does OVS invoke the DOCA Flow API but could not find anything.

What error did you get when running the command: “ovs-vsctl --no-wait set Open_vSwitch . other_config:doca-init=true” ?
Can you share the OVS and DPDK versions you are using?

I thought you were faced with the issue that there is no attribute doca-init during the setup, now I moved to doca 2.2.0 as well and that error is gone

I faced the same issue but regarding dpdk, the upstream dpdk version is not compatible with doca library.
Maybe I’ve done something wrong during the build process and now I’m trying to figure out if I can use the dpdk upstream or not.
You can find an answer about dpdk here and maybe it will help you relative to OVS (of course if someone share details)