Skip to content

Commit 74e1550

Browse files
authored
Merge pull request free5gc#131 from ming-hsien/fix/ulclreporterror
fix: ulcl usage report error
2 parents 4c97735 + c9d77d2 commit 74e1550

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

internal/context/sm_context.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -577,11 +577,9 @@ func (c *SMContext) SelectDefaultDataPath() error {
577577

578578
var defaultPath *DataPath
579579
if GetSelf().ULCLSupport && CheckUEHasPreConfig(c.Supi) {
580-
c.Log.Infof("Has pre-config route")
580+
c.Log.Infof("Has pre-config default path")
581581
uePreConfigPaths := GetUEPreConfigPaths(c.Supi, c.SelectedUPF.Name)
582-
c.Tunnel.DataPathPool = uePreConfigPaths.DataPathPool
583-
c.Tunnel.PathIDGenerator = uePreConfigPaths.PathIDGenerator
584-
defaultPath = c.Tunnel.DataPathPool.GetDefaultPath()
582+
defaultPath = uePreConfigPaths.DataPathPool.GetDefaultPath()
585583
} else if c.Tunnel.DataPathPool.GetDefaultPath() == nil {
586584
// UE has no pre-config path and default path
587585
// Use default route

internal/context/sm_context_policy.go

+3
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ func (c *SMContext) ApplyPccRules(
187187
if tgtQosID != "" {
188188
finalQosDatas[tgtQosID] = tgtQosData
189189
}
190+
if tgtChgID != "" {
191+
finalChgDatas[tgtChgID] = tgtChgData
192+
}
190193
}
191194
if err := checkUpPathChangeEvt(c, srcTcData, tgtTcData); err != nil {
192195
c.Log.Warnf("Check UpPathChgEvent err: %v", err)

internal/sbi/processor/datapath.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ func ActivateUPFSession(
6262
if node.DownLinkTunnel != nil && node.DownLinkTunnel.PDR != nil {
6363
pdrList = append(pdrList, node.DownLinkTunnel.PDR)
6464
farList = append(farList, node.DownLinkTunnel.PDR.FAR)
65-
urrList = append(urrList, node.DownLinkTunnel.PDR.URR...)
65+
if node.DownLinkTunnel.PDR.URR != nil {
66+
urrList = append(urrList, node.DownLinkTunnel.PDR.URR...)
67+
}
6668
// skip send QER because uplink and downlink shared one QER
6769
}
6870

0 commit comments

Comments
 (0)