Skip to content

Commit

Permalink
fix:ulcl usage report error
Browse files Browse the repository at this point in the history
  • Loading branch information
ming-hsien committed Oct 26, 2024
1 parent fdb1309 commit 0b9628c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 2 additions & 4 deletions internal/context/sm_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,11 +577,9 @@ func (c *SMContext) SelectDefaultDataPath() error {

var defaultPath *DataPath
if GetSelf().ULCLSupport && CheckUEHasPreConfig(c.Supi) {
c.Log.Infof("Has pre-config route")
c.Log.Infof("Has pre-config default path")
uePreConfigPaths := GetUEPreConfigPaths(c.Supi, c.SelectedUPF.Name)
c.Tunnel.DataPathPool = uePreConfigPaths.DataPathPool
c.Tunnel.PathIDGenerator = uePreConfigPaths.PathIDGenerator
defaultPath = c.Tunnel.DataPathPool.GetDefaultPath()
defaultPath = uePreConfigPaths.DataPathPool.GetDefaultPath()
} else if c.Tunnel.DataPathPool.GetDefaultPath() == nil {
// UE has no pre-config path and default path
// Use default route
Expand Down
3 changes: 3 additions & 0 deletions internal/context/sm_context_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ func (c *SMContext) ApplyPccRules(
if tgtQosID != "" {
finalQosDatas[tgtQosID] = tgtQosData
}
if tgtChgID != "" {
finalChgDatas[tgtChgID] = tgtChgData
}
}
if err := checkUpPathChangeEvt(c, srcTcData, tgtTcData); err != nil {
c.Log.Warnf("Check UpPathChgEvent err: %v", err)
Expand Down
4 changes: 3 additions & 1 deletion internal/sbi/processor/datapath.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ func ActivateUPFSession(
if node.DownLinkTunnel != nil && node.DownLinkTunnel.PDR != nil {
pdrList = append(pdrList, node.DownLinkTunnel.PDR)
farList = append(farList, node.DownLinkTunnel.PDR.FAR)
urrList = append(urrList, node.DownLinkTunnel.PDR.URR...)
if node.DownLinkTunnel.PDR.URR != nil {
urrList = append(urrList, node.DownLinkTunnel.PDR.URR...)
}
// skip send QER because uplink and downlink shared one QER
}

Expand Down

0 comments on commit 0b9628c

Please sign in to comment.