Creating an OVS Offload Project
DPAK applications are built on SP680 SmartNICs, which are suited for virtualization and protocol parsing scenarios. It supports Open vSwitch (OVS), an open source virtual switch implementation widely used in cloud computing. Based on the OVS framework, flow tables are offloaded to hardware, improving the forwarding efficiency and reducing CPU loads.
Procedure
- Click
in the shortcut menu bar on the left pane or click
next to Development Assistant. The Kunpeng Application Projects page is displayed. See Figure 1. - Click DPAK Application. On the displayed DPAK Application page, select OVS offload for the Project Type, and click Create to create an OVS offload project.Figure 2 Creating an OVS offload project
Table 1 Parameters for creating an OVS offload project Parameter
Description
Project Type
The options are:
- OVS offload
- Virtualization offload
Project Name
The default project name is OVS_Offload_ProjectN, which can be modified as required.
Name of the project to be created.
NOTE:- N is an integer starting from 1 in ascending order.
- The project name can contain 1 to 64 characters, including only letters, digits, periods (.), hyphens (-), plus signs (+), parentheses (), and underscores (_). It cannot start with a period (.).
Project Location
The default project location is C:\Users\username\KunpengProject, which can be modified as required.
Storage path of the project to be created.
- Verify the modules on the right during project creation. If you can click Terminate Configuration, the verification process stops. You can also click Cancel to continue the verification process. If the verification is successful, the modules on the right are displayed in green. If the verification fails, the modules are displayed in red.Figure 3 Terminating configuration
Figure 4 Successful project creation
Figure 5 Project creation failure
If the parameters fail to be set, check the network connection and reconfigure the parameters.
- After the OVS offload project is created, click Open Project to open it in the current window.Figure 6 Viewing the OVS offload project
Use the Compiler and Debugger to compile and debug the new project. For the operation details, see the README file in the project folder.Figure 7 README file
If a project folder or file is added, deleted, modified, or renamed, you can synchronize the change to the remote server. For details, see Synchronizing Code to a Remote Server.
When running an OVS offload project, you need to enter the IP address of the current host or another host and the IP addresses of two VMs on the current host or another host. Make sure that the VMs can ping each other.
- If the Kunpeng DPAK application fails to be created, click Reconfigure.Figure 8 Reconfigure
Navigation Back
- When configuring parameters, you can click Kunpeng Application Projects in the upper left corner of the page. The Leave dialog box is displayed. Clicking OK will clear related configurations.
Figure 9 Leave dialog box when setting parameters
- When creating a project, you can click Kunpeng Application Projects in the upper left corner of the page. The Leave dialog box is displayed. Clicking OK will terminate the configuration.
Figure 10 Leave dialog box when creating a project
