From 74aa632ab49ec2632dbb48431bea129e9288f92f Mon Sep 17 00:00:00 2001 From: nupuruttarwar Date: Thu, 4 Apr 2024 10:56:22 -0700 Subject: [PATCH] Update documentation for Linux networking V3 Signed-off-by: nupuruttarwar --- docs/apps/lnw/es2k/es2k-lnw-overlay-vms.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/docs/apps/lnw/es2k/es2k-lnw-overlay-vms.md b/docs/apps/lnw/es2k/es2k-lnw-overlay-vms.md index 8d3c771..2b77d61 100644 --- a/docs/apps/lnw/es2k/es2k-lnw-overlay-vms.md +++ b/docs/apps/lnw/es2k/es2k-lnw-overlay-vms.md @@ -31,21 +31,33 @@ for more details on this feature. Prerequisites: -- Download `hw-p4-programs` TAR file specific to the build and extract it to get `fxp-net_linux-networking-v2` p4 artifacts. Go through `Limitations` specified in `README` and bringup the setup accordingly. -- Follow steps mentioned in [Deploying P4 Programs for E2100](/guides/es2k/deploying-p4-programs) for bringing up IPU with a custom P4 package. +- For Linux Networking V2 + - Download `hw-p4-programs` TAR file specific to the build and extract it to get `fxp-net_linux-networking-v2` p4 artifacts. Go through `Limitations` specified in `README` and bringup the setup accordingly. + - Follow steps mentioned in [Deploying P4 Programs for E2100](/guides/es2k/deploying-p4-programs) for bringing up IPU with a custom P4 package. Modify `load_custom_pkg.sh` with following parameters for linux_networking package: ```text sed -i 's/sem_num_pages = 1;/sem_num_pages = 25;/g' $CP_INIT_CFG sed -i 's/lem_num_pages = 1;/lem_num_pages = 10;/g' $CP_INIT_CFG sed -i 's/acc_apf = 4;/acc_apf = 16;/g' $CP_INIT_CFG +``` +- For Linux Networking V3 + - Download `hw-p4-programs` TAR file specific to the build and extract it to get `fxp-net_linux-networking-v3` p4 artifacts. Go through `Limitations` specified in `README` and bringup the setup accordingly. + + - Follow steps mentioned in [Deploying P4 Programs for E2100](/guides/es2k/deploying-p4-programs) for bringing up IPU with a custom P4 package. +Modify `load_custom_pkg.sh` with following parameters for linux_networking package: +```text + sed -i 's/sem_num_pages = 1;/sem_num_pages = 25;/g' $CP_INIT_CFG + sed -i 's/lem_num_pages = 1;/lem_num_pages = 10;/g' $CP_INIT_CFG + sed -i 's/mod_num_pages = 1;/mod_num_pages = 2;/g' $CP_INIT_CFG + sed -i 's/acc_apf = 4;/acc_apf = 16;/g' $CP_INIT_CFG ``` - Download `IPU_Documentation` TAR file specific to the build and refer to `Getting Started Guide` on how to install compatible `IDPF driver` on host. Once an IDPF driver is installed, bring up SRIOV VF by modifying the `sriov_numvfs` file present under one of the IDPF network devices. Example as below ```bash - echo 16 > /sys/class/net/ens802f0/device/sriov_numvfs + echo 8 > /sys/class/net/ens802f0/device/sriov_numvfs ``` Notes about topology: