Skip to content

Commit

Permalink
Add allow option to limit DPDK to use the assigned ports (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
gab-arrobo authored May 17, 2024
1 parent 5c86a6f commit f766fec
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions bess-upf/templates/statefulset-upf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,13 @@ spec:
tty: true
command: ["/bin/bash", "-xc"]
args:
{{- if .Values.config.upf.hugepage.enabled }}
- bessd -f -grpc-url=0.0.0.0:10514
{{- else }}
- bessd -m 0 -f -grpc-url=0.0.0.0:10514
{{- end }}
- |
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 }}
lifecycle:
postStart:
exec:
Expand Down

0 comments on commit f766fec

Please sign in to comment.