Use this procedure to run the ntmain and forward applications in the bare-metal environment.
Before you begin
- Enabled IOMMU and huge-page memory. See OS Preparation.
- Installed the Napatech SmartNIC in the server. See Installing the Napatech SmartNIC.
- Updated the SmartNIC with an appropriate FPGA image. See Updating the FPGA image.
- Placed the Link-Inline™ Software package in the /opt/ directory. The package can be downloaded on the support portal: https://supportportal.napatech.com/.
- Installed the Link-Inline™ Software. See Installing Link-Inline™ Software.
- Loaded the vfio-pci driver and bound the SmartNIC to the vfio-pci driver. See Loading the Link-Inline™ Software Driver.
About this task
- How to enable virtual functions.
- How to apply the Napatech patch and build the standard DPDK including the forward application.
- How to run the monitoring tool.
This figure shows the test setup.
The ntmain application uses the Napatech DPDK PMD (ntnic), while the forward application uses the standard DPDK virtio PMD with the Napatech patch. In the ntmain application, the VLAN ID of each virtual function is passed to the Napatech DPDK PMD which creates a table of VLAN IDs with associated virtual functions. The SmartNIC delivers traffic based on the VLAN ID of each frame to each virtual function. As shown in the figure, received frames with VLAN ID 44 are delivered to the virtual function 4, and received frames with VLAN ID 45 are delivered to the virtual function 5. The forward application configures new flow rules for offloading to the SmartNIC. Frames that match the learned flows are transmitted on the specified port without being delivered to the host. See Configuring flows in a user-application container.