Enabling DOCA Support in OVS on BlueField DPU

Hi,

I am trying to enable DOCA support in Open vSwitch (OVS) on a BlueField-2 DPU running Ubuntu 22.04. Currently, OVS shows:

datapath_types      : [doca, netdev, system]
doca_initialized    : false
doca_version        : 3.1.0105

I have attempted to set the datapath with:

ovs-vsctl set Open_vSwitch . datapath_type=doca
systemctl restart openvswitch-switch

and also tried loading the expected kernel modules (mlx5_doca, doca_drv) with modprobe, but they are missing from /lib/modules/5.15.0-1074-bluefield/updates/dkms/. Only mlx5_core.ko and other RDMA modules are present.

My questions:

  1. Which package or procedure is required to install the DOCA kernel modules (mlx5_doca.ko and doca_drv.ko) on the DPU?

  2. Once installed, are there additional steps needed for doca_initialized in OVS to change to true?

  3. Is there a recommended script or installation within the bf-bundle 3.1.0105 to enable DOCA flows in OVS?

Thanks

I follow this step on doc OVS-DOCA

mkdir -p /hugepages

mount -t hugetlbfs hugetlbfs /hugepages

echo 4096 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages

systemctl start openvswitch

systemctl start ovs

ovs-vsctl --no-wait set Open_vSwitch . other_config:doca-init=true

ovs-vsctl set Open_vSwitch . other_config:hw-offload=true

systemctl restart ovsdb-server.service

systemctl restart ovs-vswitchd.service

systemctl status ovsdb-server.service ovs-vswitchd.service

ovs-vsctl list Open_vSwitch

_uuid : a0e0576f-961f-440a-999f-fa956447f2e9

bridges : [755660d5-e559-4b62-9337-bd0f52245b8a, dc1bcbf2-06f5-4b28-a71e-1d7e4accc9ef]

cur_cfg : 17

datapath_types : [doca, netdev, system]

datapaths : {}

db_version : “8.5.1”

doca_initialized : true

doca_version : “3.1.0105”

dpdk_initialized : true

dpdk_version : “MLNX_DPDK 22.11.2507.1.0”

external_ids : {hostname=localhost.localdomain, rundir=“/var/run/openvswitch”, system-id=“790229b3-4dd8-4f1d-8075-ff3cb72ac6e6”}

iface_types : [bareudp, doca, docavdpa, docavhostuser, docavhostuserclient, dpdk, dpdkvhostuser, dpdkvhostuserclient, erspan, geneve, gre, gtpu, internal, ip6erspan, ip6gre, lisp, patch, srv6, stt, system, tap, vxlan]

manager_options :

next_cfg : 17

other_config : {doca-init=“true”, hw-offload=“true”}

ovs_version : “3.1.0057”

ssl :

statistics : {}

system_type : ubuntu

system_version : “22.04”

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.