Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
csfldf committed Nov 7, 2024
1 parent 2a7aacd commit 7b912b5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/agent/qrm-plugins/network/staticpolicy/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -1150,11 +1150,16 @@ func (p *StaticPolicy) generateLowPriorityGroup() error {
negtive := false
for podUID, containerEntries := range nicState.PodEntries {
for containerName, allocationInfo := range containerEntries {
if allocationInfo == nil {
general.Warningf("nil allocationInfo")
continue
}

if allocationInfo.QoSLevel == apiconsts.PodAnnotationQoSLevelReclaimedCores {
if allocationInfo.NetClassID != "" {
lowPriorityGroups[groupName].NetClassIDs = append(lowPriorityGroups[groupName].NetClassIDs, allocationInfo.NetClassID)
}

} else {
requestedEgress, err := allocationInfo.GetRequestedEgress()

if err != nil {
Expand Down

0 comments on commit 7b912b5

Please sign in to comment.