Fast Path Provider 2.3.0
Fast Path Provider (FPP) 2.3.0 provides the following features and fixes:
- Add Loopback as a new type to VPPInterface
- Add VPP buffer metrics
- Change defaultDataSize to
3648for VPP instances using DPDK interfaces - Remove the bond ID collision
- Make sure that both IPv4 and IPv6 routing tables are present
Features
Add Loopback as a new type to VPPInterface
FPP 2.3.0 adds a new type of VPPInteface: loopback. This enables the assignment of an IP address to a VPP instance without using DPDK or memif interface. It is used when the FPP node serves as a local network gateway.
For more information, see the VPPInterface Custom Resource documentation
Add VPP buffer metrics
FPP 2.3.0 exposes new VPP buffer metrics:
- vpp_buffer_pools_available - number of VPP buffers that are not used. Example:
vpp_buffer_pools_available{numa="default-numa-0"} 251935, where numa is the name of the NUMA node that provides this metric - vpp_buffer_pools_cached - number of cached VPP buffers. Example:
vpp_buffer_pools_cached{numa="default-numa-0"} 0 - vpp_buffer_pools_used - number of used VPP buffers. Example:
vpp_buffer_pools_used{numa="default-numa-0"} 4097
Buffers are used for packet processing. You can configure the number of buffers through the buffersPerNuma parameter. If all buffers are allocated, the VPP instance cannot forward traffic. The new metrics improve observability and help diagnose issues with performance and resource usage.
The new metrics are available in the Resource Usage row in the FPP Overview Gradafa dashboard.
Fixes
Change defaultDataSize to 3648 for VPP instances using DPDK interfaces
When calculating the data size for VPP using DPDK interfaces, defaultDataSize needs to fit 4096 bytes for efficient memory layout. The maximum value of 4096 bytes is calculated using the formula: defaultDataSize + VPP header (128 B +128 B) + DPDK header (64 B + 128 B).
Up until now, it was not the entire DPDK header that was calculated. there was an extra 128 bytes not included in the previous default value of 3776.
For the FPP Helm chart, the default values are set to:
3648bytes for DPDK (real NICs)3840bytes if using only memifs
FPP 2.3.0 fixes the configuration of defaultDataSize in FPP Operator. In FPP 2.2.0 and earlier versions, this setting is not applied to the VPP instances.
Remove the bond ID collision
When creating a bond interface, the ID was taken from the Kubernetes API server. If not defined, VPP generated this ID by choosing the first free number.
A Kubernetes API object can have bond ID 0 and VPP assigns the same ID for a different VPPInterface. That would cause an ID collision.
From FPP 2.3.0, the bond ID is generated in VPP and always updated in the Kubernetes VPPInteface API object.
Make sure that both IPv4 and IPv6 routing tables are present
Up until now, FPP Operator checked only if one of the IPv4 or IPv6 tables is present. If yes, the other table was not created, even when missing. Internally, both tables are required to exist. Otherwise adding the VPP interface to a non-existing table raises a reconciliation error, which cannot be fixed automatically.
FPP 2.3.0 checks if both tables are present, and if not - creates the missing routing table.
Known issues
The number of Rx/Tx queues and buffer/queue size cannot be modified when using CNI-less
The current implementation of CNI-less does not allow to modify the following parameters in the VPPInterface object:
- spec.memif.bufferSize
- spec.memif.ringSize
- spec.memif.numRxQueues
- spec.memif.numTxQueues
It results from the VPP internal implementation.
If one of the above parameters requires change, VPPInterface must be removed and recreated with a new configuration.
Caution
This action restarts the FPP/UPG instances if VPPInterface is used in VPPConfig.
Migration guide
This section describes in detail how to perform the FPP upgrade from version 2.X to 2.3.
Since FPP 2.3.0 does not add any new functionality in Amberds, only FPPOperator can be upgraded.
Caution
FPP 2.3.0 introduces a new default value of the defaultDataSize parameter. If it is not explicitly defined in FPP deployments, the upgrade of FPP Operator restarts FPP node and instance pods causing network downtime to the cross node and external connectivity.
Migration steps
- Install FPP CRD in version
2.3.0. - Install FPP Operator in version
2.3.0. WARNING: This may trigger a restart of FPP nodes. - Install the FPP Support chart in version
2.3.0. - (Optional if FPP 2.2.0 node is deployed) Install the FPP chart in the node mode in version
2.3.0:
Starting from FPP 2.2.0, FPP provides the CNI-less feature, where FPP-CNI adds a legacy-instance label to VPPInterface created by pods labelled legacy-instance. This compatibility requirement occurs, for example, in UPG 2.X.