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
lizhongxiao
OpenXG-RAN
Commits
8a2154fb
Commit
8a2154fb
authored
Feb 15, 2024
by
Guido Casati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduced function to check whether it is a transmitting or a receiving SDAP entity
parent
2b796874
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
7 deletions
+45
-7
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
+2
-7
openair2/SDAP/nr_sdap/nr_sdap_entity.c
openair2/SDAP/nr_sdap/nr_sdap_entity.c
+28
-0
openair2/SDAP/nr_sdap/nr_sdap_entity.h
openair2/SDAP/nr_sdap/nr_sdap_entity.h
+15
-0
No files found.
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
View file @
8a2154fb
...
@@ -888,13 +888,8 @@ void add_drb(int is_gnb,
...
@@ -888,13 +888,8 @@ void add_drb(int is_gnb,
exit
(
-
1
);
exit
(
-
1
);
}
}
pdusession_id
=
s
->
cnAssociation
->
choice
.
sdap_Config
->
pdu_Session
;
pdusession_id
=
s
->
cnAssociation
->
choice
.
sdap_Config
->
pdu_Session
;
if
(
is_gnb
)
{
has_sdap_rx
=
is_sdap_rx
(
is_gnb
,
s
->
cnAssociation
->
choice
.
sdap_Config
);
has_sdap_rx
=
s
->
cnAssociation
->
choice
.
sdap_Config
->
sdap_HeaderUL
==
NR_SDAP_Config__sdap_HeaderUL_present
;
has_sdap_tx
=
is_sdap_tx
(
is_gnb
,
s
->
cnAssociation
->
choice
.
sdap_Config
);
has_sdap_tx
=
s
->
cnAssociation
->
choice
.
sdap_Config
->
sdap_HeaderDL
==
NR_SDAP_Config__sdap_HeaderDL_present
;
}
else
{
has_sdap_tx
=
s
->
cnAssociation
->
choice
.
sdap_Config
->
sdap_HeaderUL
==
NR_SDAP_Config__sdap_HeaderUL_present
;
has_sdap_rx
=
s
->
cnAssociation
->
choice
.
sdap_Config
->
sdap_HeaderDL
==
NR_SDAP_Config__sdap_HeaderDL_present
;
}
is_sdap_DefaultDRB
=
s
->
cnAssociation
->
choice
.
sdap_Config
->
defaultDRB
==
true
?
1
:
0
;
is_sdap_DefaultDRB
=
s
->
cnAssociation
->
choice
.
sdap_Config
->
defaultDRB
==
true
?
1
:
0
;
mappedQFIs2Add
=
(
NR_QFI_t
*
)
s
->
cnAssociation
->
choice
.
sdap_Config
->
mappedQoS_FlowsToAdd
->
list
.
array
[
0
];
mappedQFIs2Add
=
(
NR_QFI_t
*
)
s
->
cnAssociation
->
choice
.
sdap_Config
->
mappedQoS_FlowsToAdd
->
list
.
array
[
0
];
mappedQFIs2AddCount
=
s
->
cnAssociation
->
choice
.
sdap_Config
->
mappedQoS_FlowsToAdd
->
list
.
count
;
mappedQFIs2AddCount
=
s
->
cnAssociation
->
choice
.
sdap_Config
->
mappedQoS_FlowsToAdd
->
list
.
count
;
...
...
openair2/SDAP/nr_sdap/nr_sdap_entity.c
View file @
8a2154fb
...
@@ -37,6 +37,34 @@ static nr_sdap_entity_info sdap_info;
...
@@ -37,6 +37,34 @@ static nr_sdap_entity_info sdap_info;
instance_t
*
N3GTPUInst
=
NULL
;
instance_t
*
N3GTPUInst
=
NULL
;
/**
* @brief indicates whether it is a receiving SDAP entity
* i.e. for UE, header for DL data is present
* for gNB, header for UL data is present
*/
bool
is_sdap_rx
(
bool
is_gnb
,
NR_SDAP_Config_t
*
sdap_config
)
{
if
(
is_gnb
)
{
return
sdap_config
->
sdap_HeaderUL
==
NR_SDAP_Config__sdap_HeaderUL_present
;
}
else
{
return
sdap_config
->
sdap_HeaderDL
==
NR_SDAP_Config__sdap_HeaderDL_present
;
}
}
/**
* @brief indicates whether it is a transmitting SDAP entity
* i.e. for UE, header for UL data is present
* for gNB, header for DL data is present
*/
bool
is_sdap_tx
(
bool
is_gnb
,
NR_SDAP_Config_t
*
sdap_config
)
{
if
(
is_gnb
)
{
return
sdap_config
->
sdap_HeaderDL
==
NR_SDAP_Config__sdap_HeaderDL_present
;
}
else
{
return
sdap_config
->
sdap_HeaderUL
==
NR_SDAP_Config__sdap_HeaderUL_present
;
}
}
void
nr_pdcp_submit_sdap_ctrl_pdu
(
ue_id_t
ue_id
,
rb_id_t
sdap_ctrl_pdu_drb
,
nr_sdap_ul_hdr_t
ctrl_pdu
)
void
nr_pdcp_submit_sdap_ctrl_pdu
(
ue_id_t
ue_id
,
rb_id_t
sdap_ctrl_pdu_drb
,
nr_sdap_ul_hdr_t
ctrl_pdu
)
{
{
...
...
openair2/SDAP/nr_sdap/nr_sdap_entity.h
View file @
8a2154fb
...
@@ -188,4 +188,19 @@ bool nr_sdap_delete_entity(ue_id_t ue_id, int pdusession_id);
...
@@ -188,4 +188,19 @@ bool nr_sdap_delete_entity(ue_id_t ue_id, int pdusession_id);
* @return True, it deleted at least one entity, false otherwise.
* @return True, it deleted at least one entity, false otherwise.
*/
*/
bool
nr_sdap_delete_ue_entities
(
ue_id_t
ue_id
);
bool
nr_sdap_delete_ue_entities
(
ue_id_t
ue_id
);
/**
* @brief indicates whether it is a receiving SDAP entity
* i.e. for UE, header for DL data is present
* for gNB, header for UL data is present
*/
bool
is_sdap_rx
(
bool
is_gnb
,
NR_SDAP_Config_t
*
sdap_config
);
/**
* @brief indicates whether it is a transmitting SDAP entity
* i.e. for UE, header for UL data is present
* for gNB, header for DL data is present
*/
bool
is_sdap_tx
(
bool
is_gnb
,
NR_SDAP_Config_t
*
sdap_config
);
#endif
#endif
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