Skip to content

Commit

Permalink
update comment for SetInterfaceBandwidth
Browse files Browse the repository at this point in the history
  • Loading branch information
hongzhen-ma committed Aug 25, 2021
1 parent 06810be commit d44273e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/ovs/ovs-vsctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ func ClearPodBandwidth(podName, podNamespace string) error {
return nil
}

// SetInterfaceBandwidth set ingress/egress qos for given pod, from the point of pod's view
// SetInterfaceBandwidth set ingress/egress qos for given pod, annotation values are for node/pod
// but ingress/egress parameters here are from the point of ovs port/interface view, so reverse input parameters when call func SetInterfaceBandwidth
func SetInterfaceBandwidth(podName, podNamespace, iface, ingress, egress string) error {
ingressMPS, _ := strconv.Atoi(ingress)
ingressKPS := ingressMPS * 1000
Expand Down

0 comments on commit d44273e

Please sign in to comment.