-
Task
-
Resolution: Done
-
Normal
-
None
-
None
-
None
Goal
When we enable OVS HW Offload, we need to use the devlink cli tool to set the NIC e-switch mode to switchdev. Switchdev mode establishes representor ports on the NIC that are mapped to the VFs.
Therefore, we need to add support to CAPO so we can allocate a port from a switchdev-enabled NIC, by creating a neutron port and set the value of binding-profile to capabilities:
openstack port create --network private --vnic-type=direct --binding-profile '{"capabilities":["switchdev"]}' direct_port1
Definition of done
Code is reviewed and merged upstream, with unit tests when possible and proper documentation where it belongs.