> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/fpp/3.2/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/3.2/requirements.md).

# Requirements

Your Core Cluster needs to be properly configured to support VPP deployments. Before you proceed with the deployment, make sure your Core Cluster meets the following requirements:

- [Hugepages enabled](#hugepages)
- [Uplink connectivity](#uplink-configuration)
- [cert-manager installed](https://cert-manager.io/docs/installation/)
- CNI v1.1.1+ with the [static plugin](https://www.cni.dev/plugins/current/ipam/static/)

Depending on the chosen [deployment composition](https://docs.cennso.com/components/fpp/3.2/deployment-guides.md), additional requirements apply:

| Composition | Additional requirements |
|---|---|
| **fpp-af-xdp** | [Linux kernel 6.x+](#af_xdp-requirements), [Multus CNI](https://github.com/k8snetworkplumbingwg/multus-cni), [Whereabouts CNI IPAM](https://github.com/k8snetworkplumbingwg/whereabouts) |
| **fpp-dpdk** | [IOMMU enabled](#iommu), [SR-IOV Network Operator](https://github.com/k8snetworkplumbingwg/sriov-network-operator), [Multus CNI](https://github.com/k8snetworkplumbingwg/multus-cni) |
| **fpp-generic** | Depends on the uplink driver used (DPDK requires [IOMMU](#iommu)) |

> [!CAUTION]
> Starting with Cennso 2.11.1, Whereabouts is no longer enabled by default in Core Clusters. If you use the `fpp-af-xdp` composition, you must enable Whereabouts explicitly before deploying FPP. See [Enable Whereabouts](https://docs.cennso.com/cennso/cennso/main/user-guides/enable-whereabouts.md) for instructions.

### AF_XDP requirements

The AF_XDP driver requires Linux kernel version 6.x or later. On Ubuntu 22.04, install the HWE kernel to meet this requirement:

```bash
apt install linux-generic-hwe-22.04
```

After installation, reboot the node to use the new kernel. Verify the kernel version:

```bash
uname -r
```

Expected output:

```
6.x.x-xx-generic
```

> [!CAUTION]
> **CAUTION:** When you use AF_XDP, Generic Receive Offload (GRO) must be turned off on the host interface used for the uplink. With GRO enabled, the kernel coalesces incoming packets, which creates packets that can be too large and dropped by VPP. Disable GRO on the master interface (for example, `eth0`):
>
> ```bash
> ethtool -K {INTERFACE} gro off
> ```
>
> Verify that GRO is off:
>
> ```bash
> ethtool -k {INTERFACE} | grep generic-receive-offload
> ```
>
> Expected output:
>
> ```
> generic-receive-offload: off
> ```

#### IOMMU

Input–output memory management unit (IOMMU) needs to be enabled. It is required for the DPDK driver to use the isolation of IOMMU groups - for processor-based (northbridge) PCI root ports and controller hub-based (southbridge) PCI root ports.
This is called Access Control Service (ACS) capabilities.
[This section](https://docs.cennso.com/components/fpp/3.2/deployment-guides/data-plane-node-config.md#configure-grub) details the configuration process.

### HugePages

VPP (with DPDK) uses HugePages to increase memory access performance.
Follow [the HugePages section](https://docs.cennso.com/components/fpp/3.2/deployment-guides/data-plane-node-config.md#enable-hugepages) of the Data Plane configuration guide to enable them.

### Uplink configuration

For creating an overlay networking between nodes in the cluster, FPP requires a network interface to be configured as uplink.

Three types of interfaces are supported for this role:

- [AF_XDP with macvlan](https://docs.cennso.com/components/fpp/3.2/deployment-guides/multinode-xdp.md) - uses standard Linux network interfaces (requires kernel 6.x+)
- [SRIOV Virtual Functions](https://docs.cennso.com/components/fpp/3.2/deployment-guides/multinode-sriov.md) - uses SRIOV VFs with DPDK driver
- [Direct physical NICs assignment](https://docs.cennso.com/components/fpp/3.2/deployment-guides/multinode-direct-nic.md) - uses physical NICs directly with DPDK driver

#### IPAM for uplinks

Unless you use FPP on a single node, uplinks need to have assigned IP addresses.
To achieve that, you can use an IPAM plugin, such as Whereabouts, or you can specify IP manually by VPPConfig `spec.uplinkConfig.ips`.
This configuration can be passed via the `spec.vppConfigs` field in the `FPPDeployment` resource.

For SRIOV VFs particularly, it's convenient to use [Whereabouts](https://github.com/k8snetworkplumbingwg/whereabouts) CNI IPAM plugin, as described in the **Configure the SRIOV Operator** step of the [Deploy Fast Path Provider on multiple nodes using SRIOV networks as FPP uplinks](https://docs.cennso.com/components/fpp/3.2/deployment-guides/multinode-sriov.md) document.
The pod annotation expected by FPP is as follows:

```yaml
    k8s.v1.cni.cncf.io/networks-status: |-
      [{
        (...)
      },{
          "name": "sriov-network-operator/sriov-network-uplink0",
          "interface": "net1",
          "ips": [
              "10.30.38.3"
          ],
          "dns": {}
      },{
          (...)
      }]
```

For direct NIC attachment, you can use `spec.uplinkConfig.ips` in VPPConfig to assign the IPs to the interfaces. See the VPPConfig configuration example:

```yaml
vppConfigs:
- nodeName: wk-1234.dev.cennso.net
  spec:
    uplinkConfig:
      ips:
      - 10.0.40.1/24
```
