From ee033da6eef6430ef6d5efc7b5aa915f156d9c29 Mon Sep 17 00:00:00 2001 From: "Arrobo, Gabriel" Date: Fri, 17 May 2024 09:10:45 -0700 Subject: [PATCH 1/2] Improved solution to pass PCI address to BESS when UPF is deployed in DPDK mode --- bess-upf/templates/statefulset-upf.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/bess-upf/templates/statefulset-upf.yaml b/bess-upf/templates/statefulset-upf.yaml index 87ebec0..e6b6303 100644 --- a/bess-upf/templates/statefulset-upf.yaml +++ b/bess-upf/templates/statefulset-upf.yaml @@ -95,13 +95,11 @@ spec: tty: true command: ["/bin/bash", "-xc"] args: - - | - VFS=$(ip link | grep -E 'alias [0-9a-f:.]+' | awk '{print $2}' | tr '\n' ','); - {{- if .Values.config.upf.hugepage.enabled }} - bessd -f --allow="$VFS" --grpc_url=0.0.0.0:10514; - {{- else }} - bessd -m 0 -f --allow="$VFS" --grpc_url=0.0.0.0:10514; - {{- end }} + {{- if .Values.config.upf.hugepage.enabled }} + - bessd -f --allow="$PCIDEVICE_INTEL_COM_INTEL_SRIOV_DPDK" --grpc_url=0.0.0.0:10514 + {{- else }} + - bessd -m 0 -f --allow="$PCIDEVICE_INTEL_COM_INTEL_SRIOV_DPDK" --grpc_url=0.0.0.0:10514 + {{- end }} lifecycle: postStart: exec: From 3f7162e08e0df47bede997f40963e4a6fbf3ac31 Mon Sep 17 00:00:00 2001 From: "Arrobo, Gabriel" Date: Fri, 17 May 2024 09:18:26 -0700 Subject: [PATCH 2/2] Create a new version for the charts/changes to be published --- bess-upf/Chart.yaml | 2 +- sdcore-helm-charts/Chart.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bess-upf/Chart.yaml b/bess-upf/Chart.yaml index 90ec717..3f72945 100644 --- a/bess-upf/Chart.yaml +++ b/bess-upf/Chart.yaml @@ -7,4 +7,4 @@ description: OMEC user plane based on BESS name: bess-upf icon: https://guide.opencord.org/logos/cord.svg -version: 1.0.0 +version: 1.0.1 diff --git a/sdcore-helm-charts/Chart.yaml b/sdcore-helm-charts/Chart.yaml index 28f1d08..35ae998 100644 --- a/sdcore-helm-charts/Chart.yaml +++ b/sdcore-helm-charts/Chart.yaml @@ -33,7 +33,7 @@ dependencies: condition: 5g-control-plane.enable5G - name: bess-upf - version: 1.0.0 + version: 1.0.1 repository: "file://../bess-upf" alias: omec-user-plane condition: omec-user-plane.enable