Skip to content

Commit

Permalink
Fixed QOS settings from config
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinZablocki committed Aug 17, 2021
1 parent ca18c38 commit ec02600
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PKG_NAME=oci-cn-auth
PKG_DESCRIPTION="OCI cluster network authentication tool"
PKG_VERSION=0.2.9
PKG_RELEASE=0
PKG_RELEASE=2
PKG_MAINTAINER="Marcin Zablocki \<[email protected]\>"
PKG_ARCH=all
PKG_ARCH_RPM=noarch
Expand Down
6 changes: 3 additions & 3 deletions src/var/lib/oci-cn-auth/bin/ifup-rdma
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ if qos == "default":

""" read metadata and set the default priority based on shape """

if shape == 'BM.GPU4.8':
if shape in GPU_SHAPES:
DSCP=DSCP_GPU_VALUE
TC=GPU_DSCP_ECN_TOS_VALUE
else:
Expand All @@ -200,8 +200,8 @@ else:
TC=GPU_DSCP_ECN_TOS_VALUE

else:
DSCP=DSCP_GPU_VALUE
TC=GPU_DSCP_ECN_TOS_VALUE
DSCP=DSCP_RDMA_VALUE
TC=RDMA_DSCP_ECN_TOS_VALUE

if not interface in interfaces:
print('Interface {} is not a valid RDMA interface. Skipping configuration.'.format(interface))
Expand Down

0 comments on commit ec02600

Please sign in to comment.