Skip to content

Commit

Permalink
fix: loss MBR in QER if flow type is a non-GBR flow
Browse files Browse the repository at this point in the history
  • Loading branch information
ianchen0119 authored May 21, 2024
1 parent bd173ab commit 6769b6f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/context/datapath.go
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,12 @@ func (p *DataPath) AddQoS(smContext *SMContext, qfi uint8, qos *models.QosData)
ULMBR: util.BitRateTokbps(qos.MaxbrUl),
DLMBR: util.BitRateTokbps(qos.MaxbrDl),
}
} else {
// Non-GBR flow should follows session-AMBR
newQER.MBR = &pfcpType.MBR{
ULMBR: util.BitRateTokbps(smContext.DnnConfiguration.SessionAmbr.Uplink),
DLMBR: util.BitRateTokbps(smContext.DnnConfiguration.SessionAmbr.Downlink),
}
}
qer = newQER
}
Expand Down

0 comments on commit 6769b6f

Please sign in to comment.