Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
OpenXG
OpenXG UE
Commits
aa3b9899
Commit
aa3b9899
authored
Jun 17, 2021
by
Laurent THOMAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace itti message GTPV1U_DELETE_TUNNEL_REQ by direct call to gtpv1u_delete_s1u_tunnel()
parent
0e23de0e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
25 deletions
+11
-25
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+1
-5
openair2/RRC/NR/rrc_gNB_nsa.c
openair2/RRC/NR/rrc_gNB_nsa.c
+6
-14
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
+4
-6
No files found.
openair2/RRC/NR/rrc_gNB.c
View file @
aa3b9899
...
...
@@ -2946,11 +2946,7 @@ void *rrc_gnb_task(void *args_p) {
///Nothing to do. Apparently everything is done in S1AP processing
//LOG_I(RRC, "[eNB %d] Received message %s, not processed because procedure not synched\n",
//instance, msg_name_p);
if (rrc_eNB_get_ue_context(RC.nrrrc[instance], GTPV1U_ENB_DELETE_TUNNEL_RESP(msg_p).rnti)
&& rrc_eNB_get_ue_context(RC.nrrrc[instance], GTPV1U_ENB_DELETE_TUNNEL_RESP(msg_p).rnti)->ue_context.ue_release_timer_rrc > 0) {
rrc_eNB_get_ue_context(RC.nrrrc[instance], GTPV1U_ENB_DELETE_TUNNEL_RESP(msg_p).rnti)->ue_context.ue_release_timer_rrc =
rrc_eNB_get_ue_context(RC.nrrrc[instance], GTPV1U_ENB_DELETE_TUNNEL_RESP(msg_p).rnti)->ue_context.ue_release_timer_thres_rrc;
}
AssertFatal(false, "Removed double mechanism for same feature: now delete_tunnel() function should be called\n");
break;
#endif
...
...
openair2/RRC/NR/rrc_gNB_nsa.c
View file @
aa3b9899
...
...
@@ -402,7 +402,6 @@ void rrc_add_nsa_user(gNB_RRC_INST *rrc,struct rrc_gNB_ue_context_s *ue_context_
void
rrc_remove_nsa_user
(
gNB_RRC_INST
*
rrc
,
int
rnti
)
{
protocol_ctxt_t
ctxt
;
rrc_gNB_ue_context_t
*
ue_context
;
MessageDef
*
msg_delete_tunnels_p
;
int
e_rab
;
LOG_D
(
RRC
,
"calling rrc_remove_nsa_user rnti %d
\n
"
,
rnti
);
...
...
@@ -419,25 +418,18 @@ void rrc_remove_nsa_user(gNB_RRC_INST *rrc, int rnti) {
rrc_rlc_remove_ue
(
&
ctxt
);
mac_remove_nr_ue
(
rrc
->
module_id
,
rnti
);
/* delete gtp tunnel */
msg_delete_tunnels_p
=
itti_alloc_new_message
(
TASK_RRC_GNB
,
0
,
GTPV1U_ENB_DELETE_TUNNEL_REQ
);
memset
(
&
GTPV1U_ENB_DELETE_TUNNEL_REQ
(
msg_delete_tunnels_p
),
0
,
sizeof
(
GTPV1U_ENB_DELETE_TUNNEL_REQ
(
msg_delete_tunnels_p
)));
GTPV1U_ENB_DELETE_TUNNEL_REQ
(
msg_delete_tunnels_p
).
rnti
=
rnti
;
GTPV1U_ENB_DELETE_TUNNEL_REQ
(
msg_delete_tunnels_p
).
from_gnb
=
1
;
LOG_D
(
RRC
,
"ue_context->ue_context.nb_of_e_rabs %d
\n
"
,
ue_context
->
ue_context
.
nb_of_e_rabs
);
gtpv1u_enb_delete_tunnel_req_t
tmp
=
{
0
};
tmp
.
rnti
=
rnti
;
tmp
.
from_gnb
=
1
;
LOG_D
(
RRC
,
"ue_context->ue_context.nb_of_e_rabs %d will be deleted for rnti %d
\n
"
,
ue_context
->
ue_context
.
nb_of_e_rabs
,
rnti
);
for
(
e_rab
=
0
;
e_rab
<
ue_context
->
ue_context
.
nb_of_e_rabs
;
e_rab
++
)
{
GTPV1U_ENB_DELETE_TUNNEL_REQ
(
msg_delete_tunnels_p
).
eps_bearer_id
[
GTPV1U_ENB_DELETE_TUNNEL_REQ
(
msg_delete_tunnels_p
).
num_erab
++
]
=
ue_context
->
ue_context
.
gnb_gtp_ebi
[
e_rab
];
tmp
.
eps_bearer_id
[
tmp
.
num_erab
++
]
=
ue_context
->
ue_context
.
gnb_gtp_ebi
[
e_rab
];
// erase data
ue_context
->
ue_context
.
gnb_gtp_teid
[
e_rab
]
=
0
;
memset
(
&
ue_context
->
ue_context
.
gnb_gtp_addrs
[
e_rab
],
0
,
sizeof
(
ue_context
->
ue_context
.
gnb_gtp_addrs
[
e_rab
]));
ue_context
->
ue_context
.
gnb_gtp_ebi
[
e_rab
]
=
0
;
}
itti_send_msg_to_task
(
TASK_VARIABLE
,
rrc
->
module_id
,
msg_delete_tunnels_p
);
gtpv1u_delete_s1u_tunnel
(
rrc
->
module_id
,
&
tmp
);
/* remove context */
rrc_gNB_remove_ue_context
(
&
ctxt
,
rrc
,
ue_context
);
}
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
View file @
aa3b9899
...
...
@@ -272,7 +272,7 @@ static int sync_to_gps(openair0_device *device) {
*/
static
int
trx_usrp_start
(
openair0_device
*
device
)
{
usrp_state_t
*
s
=
(
usrp_state_t
*
)
device
->
priv
;
#if 0
// setup GPIO for TDD, GPIO(4) = ATR_RX
//set data direction register (DDR) to output
s->usrp->set_gpio_attr("FP0", "DDR", 0xfff, 0xfff);
...
...
@@ -286,6 +286,7 @@ static int trx_usrp_start(openair0_device *device) {
// set the output pins to 1
s->usrp->set_gpio_attr("FP0", "OUT", 7<<7, 0xf80);
#endif
s
->
wait_for_first_pps
=
1
;
s
->
rx_count
=
0
;
s
->
tx_count
=
0
;
...
...
@@ -953,14 +954,9 @@ extern "C" {
LOG_I
(
HW
,
"openair0_cfg[0].clock_source == '%d' (internal = %d, external = %d)
\n
"
,
openair0_cfg
[
0
].
clock_source
,
internal
,
external
);
usrp_state_t
*
s
;
if
(
device
->
priv
==
NULL
)
{
s
=
(
usrp_state_t
*
)
calloc
(
sizeof
(
usrp_state_t
),
1
);
device
->
priv
=
s
;
AssertFatal
(
s
!=
NULL
,
"USRP device: memory allocation failure
\n
"
);
}
else
{
LOG_E
(
HW
,
"multiple device init detected
\n
"
);
return
0
;
}
device
->
openair0_cfg
=
openair0_cfg
;
device
->
trx_start_func
=
trx_usrp_start
;
...
...
@@ -1000,10 +996,12 @@ extern "C" {
if
(
device_adds
.
size
()
==
0
)
{
LOG_E
(
HW
,
"No USRP Device Found.
\n
"
);
free
(
s
);
abort
();
return
-
1
;
}
else
if
(
device_adds
.
size
()
>
1
)
{
LOG_E
(
HW
,
"More than one USRP Device Found. Please specify device more precisely in config file.
\n
"
);
free
(
s
);
abort
();
return
-
1
;
}
...
...
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