Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zzha zzha
OpenXG-RAN
Commits
cf1baafd
Commit
cf1baafd
authored
Sep 15, 2023
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing release according to review
parent
e7c626a7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
11 deletions
+42
-11
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
+8
-4
openair2/LAYER2/nr_rlc/nr_rlc_oai_api.c
openair2/LAYER2/nr_rlc/nr_rlc_oai_api.c
+33
-6
openair2/RRC/NR_UE/rrc_defs.h
openair2/RRC/NR_UE/rrc_defs.h
+1
-1
No files found.
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
View file @
cf1baafd
...
@@ -1069,9 +1069,10 @@ void nr_pdcp_reconfigure_srb(ue_id_t ue_id, int srb_id, long t_Reordering)
...
@@ -1069,9 +1069,10 @@ void nr_pdcp_reconfigure_srb(ue_id_t ue_id, int srb_id, long t_Reordering)
void
nr_pdcp_reconfigure_drb
(
ue_id_t
ue_id
,
int
drb_id
,
long
t_Reordering
)
void
nr_pdcp_reconfigure_drb
(
ue_id_t
ue_id
,
int
drb_id
,
long
t_Reordering
)
{
{
// The enabling/disabling of ciphering or integrity protection
/* The enabling/disabling of ciphering or integrity protection
// can be changed only by releasing and adding the DRB
* can be changed only by releasing and adding the DRB
// (so not by reconfiguring).
* (so not by reconfiguring).
*/
nr_pdcp_manager_lock
(
nr_pdcp_ue_manager
);
nr_pdcp_manager_lock
(
nr_pdcp_ue_manager
);
nr_pdcp_ue_t
*
ue
=
nr_pdcp_manager_get_ue
(
nr_pdcp_ue_manager
,
ue_id
);
nr_pdcp_ue_t
*
ue
=
nr_pdcp_manager_get_ue
(
nr_pdcp_ue_manager
,
ue_id
);
nr_pdcp_entity_t
*
drb
=
ue
->
drb
[
drb_id
-
1
];
nr_pdcp_entity_t
*
drb
=
ue
->
drb
[
drb_id
-
1
];
...
@@ -1084,8 +1085,10 @@ void nr_release_srb(ue_id_t ue_id, int srb_id)
...
@@ -1084,8 +1085,10 @@ void nr_release_srb(ue_id_t ue_id, int srb_id)
{
{
nr_pdcp_manager_lock
(
nr_pdcp_ue_manager
);
nr_pdcp_manager_lock
(
nr_pdcp_ue_manager
);
nr_pdcp_ue_t
*
ue
=
nr_pdcp_manager_get_ue
(
nr_pdcp_ue_manager
,
ue_id
);
nr_pdcp_ue_t
*
ue
=
nr_pdcp_manager_get_ue
(
nr_pdcp_ue_manager
,
ue_id
);
if
(
ue
->
srb
[
srb_id
-
1
]
!=
NULL
)
if
(
ue
->
srb
[
srb_id
-
1
]
!=
NULL
)
{
ue
->
srb
[
srb_id
-
1
]
->
delete_entity
(
ue
->
srb
[
srb_id
-
1
]);
ue
->
srb
[
srb_id
-
1
]
->
delete_entity
(
ue
->
srb
[
srb_id
-
1
]);
ue
->
srb
[
srb_id
-
1
]
=
NULL
;
}
else
else
LOG_E
(
PDCP
,
"Attempting to release SRB%d but it is not configured
\n
"
,
srb_id
);
LOG_E
(
PDCP
,
"Attempting to release SRB%d but it is not configured
\n
"
,
srb_id
);
nr_pdcp_manager_unlock
(
nr_pdcp_ue_manager
);
nr_pdcp_manager_unlock
(
nr_pdcp_ue_manager
);
...
@@ -1099,6 +1102,7 @@ void nr_release_drb(ue_id_t ue_id, int drb_id)
...
@@ -1099,6 +1102,7 @@ void nr_release_drb(ue_id_t ue_id, int drb_id)
if
(
drb
)
{
if
(
drb
)
{
drb
->
release_entity
(
drb
);
drb
->
release_entity
(
drb
);
drb
->
delete_entity
(
drb
);
drb
->
delete_entity
(
drb
);
ue
->
drb
[
drb_id
-
1
]
=
NULL
;
}
}
else
else
LOG_E
(
PDCP
,
"Attempting to release DRB%d but it is not configured
\n
"
,
drb_id
);
LOG_E
(
PDCP
,
"Attempting to release DRB%d but it is not configured
\n
"
,
drb_id
);
...
...
openair2/LAYER2/nr_rlc/nr_rlc_oai_api.c
View file @
cf1baafd
...
@@ -54,6 +54,35 @@ static uint64_t nr_rlc_current_time;
...
@@ -54,6 +54,35 @@ static uint64_t nr_rlc_current_time;
static
int
nr_rlc_current_time_last_frame
;
static
int
nr_rlc_current_time_last_frame
;
static
int
nr_rlc_current_time_last_subframe
;
static
int
nr_rlc_current_time_last_subframe
;
static
void
release_rlc_entity_from_lcid
(
nr_rlc_ue_t
*
ue
,
logical_chan_id_t
channel_id
)
{
AssertFatal
(
channel_id
!=
0
,
"LCID = 0 shouldn't be handled here
\n
"
);
nr_rlc_rb_t
*
rb
=
&
ue
->
lcid2rb
[
channel_id
-
1
];
if
(
rb
->
type
==
NR_RLC_NONE
)
return
;
if
(
rb
->
type
==
NR_RLC_SRB
)
{
int
id
=
rb
->
choice
.
srb_id
-
1
;
AssertFatal
(
id
>
0
,
"logic bug: impossible to have srb0 here
\n
"
);
if
(
ue
->
srb
[
id
])
{
ue
->
srb
[
id
]
->
delete_entity
(
ue
->
srb
[
id
]);
ue
->
srb
[
id
]
=
NULL
;
}
else
LOG_E
(
RLC
,
"Trying to release a non-established enity with LCID %d
\n
"
,
channel_id
);
}
else
{
AssertFatal
(
rb
->
type
==
NR_RLC_DRB
,
"Invalid RB type
\n
"
);
int
id
=
rb
->
choice
.
drb_id
-
1
;
if
(
ue
->
drb
[
id
])
{
ue
->
drb
[
id
]
->
delete_entity
(
ue
->
drb
[
id
]);
ue
->
drb
[
id
]
=
NULL
;
}
else
LOG_E
(
RLC
,
"Trying to release a non-established enity with LCID %d
\n
"
,
channel_id
);
}
}
static
nr_rlc_entity_t
*
get_rlc_entity_from_lcid
(
nr_rlc_ue_t
*
ue
,
logical_chan_id_t
channel_id
)
static
nr_rlc_entity_t
*
get_rlc_entity_from_lcid
(
nr_rlc_ue_t
*
ue
,
logical_chan_id_t
channel_id
)
{
{
if
(
channel_id
==
0
)
if
(
channel_id
==
0
)
...
@@ -78,15 +107,12 @@ void nr_release_rlc_entity(int rnti, logical_chan_id_t channel_id)
...
@@ -78,15 +107,12 @@ void nr_release_rlc_entity(int rnti, logical_chan_id_t channel_id)
if
(
channel_id
==
0
)
{
if
(
channel_id
==
0
)
{
if
(
ue
->
srb0
!=
NULL
)
{
if
(
ue
->
srb0
!=
NULL
)
{
free
(
ue
->
srb0
->
deliver_sdu_data
);
free
(
ue
->
srb0
->
deliver_sdu_data
);
ue
->
srb0
->
delete
(
ue
->
srb0
);
ue
->
srb0
->
delete_entity
(
ue
->
srb0
);
ue
->
srb0
=
NULL
;
}
else
}
else
LOG_E
(
RLC
,
"Trying to release a non-established enity with LCID %d
\n
"
,
channel_id
);
LOG_E
(
RLC
,
"Trying to release a non-established enity with LCID %d
\n
"
,
channel_id
);
}
else
{
}
else
{
nr_rlc_entity_t
*
rb
=
get_rlc_entity_from_lcid
(
ue
,
channel_id
);
release_rlc_entity_from_lcid
(
ue
,
channel_id
);
if
(
rb
)
rb
->
delete
(
rb
);
else
LOG_E
(
RLC
,
"Trying to release a non-established enity with LCID %d
\n
"
,
channel_id
);
}
}
nr_rlc_manager_unlock
(
nr_rlc_ue_manager
);
nr_rlc_manager_unlock
(
nr_rlc_ue_manager
);
}
}
...
@@ -637,6 +663,7 @@ void nr_rlc_reconfigure_entity(int rnti, int lc_id, struct NR_RLC_Config *rlc_Co
...
@@ -637,6 +663,7 @@ void nr_rlc_reconfigure_entity(int rnti, int lc_id, struct NR_RLC_Config *rlc_Co
*
lc_Config
->
ul_SpecificParameters
->
logicalChannelGroup
);
*
lc_Config
->
ul_SpecificParameters
->
logicalChannelGroup
);
}
}
if
(
rlc_Config
)
{
if
(
rlc_Config
)
{
AssertFatal
(
rb
->
stats
.
mode
!=
NR_RLC_TM
,
"Cannot reconfigure TM mode
\n
"
);
if
(
rb
->
stats
.
mode
==
NR_RLC_AM
)
{
if
(
rb
->
stats
.
mode
==
NR_RLC_AM
)
{
AssertFatal
(
rlc_Config
->
present
==
NR_RLC_Config_PR_am
,
"Invalid RLC Config type
\n
"
);
AssertFatal
(
rlc_Config
->
present
==
NR_RLC_Config_PR_am
,
"Invalid RLC Config type
\n
"
);
struct
NR_RLC_Config__am
*
am
=
rlc_Config
->
choice
.
am
;
struct
NR_RLC_Config__am
*
am
=
rlc_Config
->
choice
.
am
;
...
...
openair2/RRC/NR_UE/rrc_defs.h
View file @
cf1baafd
...
@@ -178,7 +178,7 @@ typedef enum {
...
@@ -178,7 +178,7 @@ typedef enum {
IN_SYNC
=
1
IN_SYNC
=
1
}
nr_sync_msg_t
;
}
nr_sync_msg_t
;
typedef
enum
{
RB_NOT_PRESENT
=
0
,
RB_ESTABLISHED
,
RB_SUSPENDED
}
NR_RB_status_t
;
typedef
enum
{
RB_NOT_PRESENT
,
RB_ESTABLISHED
,
RB_SUSPENDED
}
NR_RB_status_t
;
typedef
struct
NR_UE_RRC_SRB_INFO_s
{
typedef
struct
NR_UE_RRC_SRB_INFO_s
{
NR_RB_status_t
status
;
NR_RB_status_t
status
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment