:lastproofread: 2025-09-04 .. _vpp_config_dataplane_interface: .. include:: /_include/need_improvement.txt ###################################### VPP Dataplane Interfaces Configuration ###################################### Only Ethernet interfaces (physical or virtual) can be connected to the VPP dataplane. Interfaces configured here act as a bridge between VPP and the outside world, allowing VPP to send and receive packets into the network. Interface Configuration Parameters ================================== driver ^^^^^^ The driver parameter specifies the type of driver used for the network interface. VPP supports two types of drivers that can be used for this: DPDK and XDP. The choice of driver depends on the specific use case, hardware capabilities, and performance requirements. Some NICs may support only one of these drivers. .. cfgcmd:: set vpp settings interface driver The DPDK driver is generally preferred for high-performance scenarios, while the XDP driver may be suitable for NICs that do not support DPDK. .. _vpp_config_dataplane_interface_rx_mode: rx-mode ^^^^^^^ The rx-mode parameter defines how VPP handles incoming packets on the interface. There are several modes available, each with its own advantages and use cases: - ``interrupt``: In this mode, VPP relies on hardware interrupts to notify it of incoming packets. This mode is suitable for low to moderate traffic loads and can help reduce CPU usage during idle periods. It is not recommended if low-latency processing is required. May not be supported by some NICs. - ``polling``: In polling mode, VPP continuously checks the interface for incoming packets. This mode is ideal for high-throughput scenarios where low latency is critical, as it minimizes the time packets spend waiting to be processed. However, it can lead to higher CPU usage, especially during periods of low traffic, because the polling process is always active. - ``adaptive``: Adaptive mode combines the benefits of both interrupt and polling modes. VPP starts in interrupt mode and switches to polling mode when the traffic load increases. .. cfgcmd:: set vpp settings interface rx-mode The choice of rx-mode should be based on the expected traffic patterns and performance requirements of the network environment. dpdk-options ^^^^^^^^^^^^ The dpdk-options section allows for the configuration of various DPDK-specific settings for the interface. .. cfgcmd:: set vpp settings interface dpdk-options