> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/fpp/latest/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/fpp/latest/releases/2.1.0.md).

# Fast Path Provider 2.1.0

Fast Path Provider (FPP) 2.1.0 provides the following features and fixes:

- Add an option to temporarily disable VPPDeployment
- Improve FPP Support Grafana Overview dashboard
- Reduce the number of reconciliation requests
- Add new metrics: `vector_rate` and `loops_per_second`
- Make VPPTool Custom Resource immutable
- Introduce CLI-less memif creation

- Fix VPP connection locks and remove orphaned TX Queue goroutine
- Fix handling of Amberds disconnects and restarts
- Fix crash of VPP disconnect edge cases
- Always reassign GRE tunnel instance ID
- Fix memory leak

>**NOTE:** Before upgrading to the newest version, follow the instructions provided in the [migration guide](#migration-guide).

FPP 2.1 is compatible with the previous 2.0 release. FPP CRD 2.1 must be installed before rolling out FPP Operator.

## Features

### Add an option to temporarily disable VPPDeployment

VPPDeployment Custom Resource is extended with the **spec.disable** property in FPP 2.1.0. You can edit the VPPDeployment object and set the value to `true` to remove the deployed resources like daemonset/statefulset or VPPInterface. It may be used for debugging purposes.

To disable VPPDeployment from CLI, run:

```bash
kubectl patch vppdeployment -n cgw-advanced cgw1 -p '{"spec":{"disable": true}}' --type=merge
```

To enable it back, run:

```bash
kubectl patch vppdeployment -n cgw-advanced cgw1 -p '{"spec":{"disable": false}}' --type=merge
```

### Improve FPP Support Grafana Overview dashboard

FPP Overview dashboards (FPP and CGW) were updated to be more readable for operators.

### Reduce the number of reconciliation requests

FPP Operator used to perform multiple excessive reconciliations upon startup. FPP 2.1.0 improves this situation to limit this number. It introduces less load on the Kubernetes API server and settles faster the VPP states in Amberds.

### Add new metrics: `vector_rate` and `loops_per_second`

FPP 2.1.0 exposes new VPP metrics:
- `vpp_sys_vector_rate` - the average length of a packet vector, which means how many packets are processed by the VPP graph node per call
- `vpp_sys_loops_per_second` - number of VPP worker loop cycles per second

These metrics help to diagnose if VPP is overloaded. A rising vector rate value with a drop in loops per second is a symptom of VPP being overloaded.

### Make VPPTool Custom Resource immutable

When VPPTool is edited, all Amberds pods are restarted, creating a network downtime. Now, with VPPTool being immutable, any accidental VPPTool modification does not cause Amberds to be restarted.

### Introduce CLI-less memif creation

FPP 2.1.0 exposes the possibility of creating VPPInterace without using FPP-CNI. This feature is described in [the documentation](https://docs.cennso.com/components/fpp/latest/concepts/vppinterface.md#vppinterface-memif-without-cni).

>**NOTE:** This is an experimental feature. Do not use it in production deployments.

Connecting VPP workloads using memifs without CNI reduces the usage of the Kubernetes API server and allows you to dynamically reconfigure VPPInterfaces.

Since there are known issues with CNI-less memif creation, we do not recommend using it in production deployments.

## Fixes

### Fix VPP connection locks and remove orphaned TX Queue goroutine

This fix stops VPPDeployment reconciliation for pods that are in the `Pending` state. It reduces the Kubernetes API server load and FPP Operator logging. Also, TX placement goroutines are removed when there is no matching VPPInterface. Also the VPP connection proxy error handling has been fixed.

### Fix handling of Amberds disconnects and restarts

When Amberds disconnected or restarted, FPP Operator could not reconnect to them as it happened that connectivity was in a deadlock. This is no longer the case.

### Fix crash of VPP disconnect edge cases

FPP Operator does not crash anymore when the connection to Amberd is not available.

### Always reassign GRE/VXLAN tunnel instance ID

The VPPInterface Custom Resource object includes GRE/VXLAN tunnel instance ID. Kubernetes API VPPInterface state may hold a tunnel instance ID that is old and conflicts with the autogenerated ID already configured in VPP. This fix always regenerates the VPPInterface `spec.greTunnel.instance` or `spec.vxlan.instance` ID and updates it in the corresponding VPPInterface Custom Resource object.

### Fix memory leak

FPP 2.1.0 disables by default VPP API trace. This option is removed to eliminate memory leaks, as API traces use more memory by design. It can be activated for debugging purposes by setting `spec.vppOptions.apiTrace: true` in VPPDeployment object.

## Migration guide

This section describes a detailed description of how to perform the FPP upgrade from version 2.0 to 2.1.

Thanks to FPP 2 decoupled architecture, you can upgrade only the FPP Operator, leaving the FPP node daemonset in place running the older 2.0.X version.

### Migration steps

1. Install FPP CRD in version `2.1.0`.
1. Install FPP Operator in version `2.1.0`.
1. Install the FPP Support chart in version `2.1.0`.
1. Optional: Install the FPP chart in node mode in version `2.1.0`:
  FPP 2.1.0 provides a new feature for CNI-less usage, where FPP-CNI adds a legacy-instance label to VPPInterface created by pod labeled as legacy. To reduce the network downtime, if you are not using the CNI-less feature, the node daemonset can be in the already deployed version 2.0.X.
