Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Worker.N
openairinterface5G
Commits
70f74777
Commit
70f74777
authored
6 years ago
by
Robert Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Correctly implement proto_agent_stop(), call it
parent
920a4abb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openair2/F1AP/f1ap_cu_task.c
+4
-0
4 additions, 0 deletions
openair2/F1AP/f1ap_cu_task.c
openair2/LAYER2/PROTO_AGENT/proto_agent.c
+4
-0
4 additions, 0 deletions
openair2/LAYER2/PROTO_AGENT/proto_agent.c
with
8 additions
and
0 deletions
openair2/F1AP/f1ap_cu_task.c
+
4
−
0
View file @
70f74777
...
...
@@ -73,6 +73,10 @@ void cu_task_handle_sctp_association_resp(instance_t instance, sctp_new_associat
.
remote_ipv4_address
=
RC
.
rrc
[
instance
]
->
eth_params_s
.
remote_addr
,
.
remote_port
=
RC
.
rrc
[
instance
]
->
eth_params_s
.
remote_portd
};
/* stop, then start the PROTO_AGENT. If it is already stopped, stopping it
* again will do nothing, therefore it is safe to call here.
* TODO: call proto_agent_stop() when CU_TASK is informed about conn release */
proto_agent_stop
(
instance
);
AssertFatal
(
proto_agent_start
(
instance
,
&
params
)
==
0
,
"could not start PROTO_AGENT for F1U on instance %d!
\n
"
,
instance
);
}
...
...
This diff is collapsed.
Click to expand it.
openair2/LAYER2/PROTO_AGENT/proto_agent.c
+
4
−
0
View file @
70f74777
...
...
@@ -137,7 +137,11 @@ error:
void
proto_agent_stop
(
mod_id_t
mod_id
)
{
if
(
!
proto_agent
[
mod_id
].
channel
)
return
;
proto_agent_async_release
(
proto_agent
[
mod_id
].
channel
);
proto_agent_destroy_channel
(
proto_agent
[
mod_id
].
channel
->
channel_id
);
free
(
proto_agent
[
mod_id
].
channel
);
proto_agent
[
mod_id
].
channel
=
NULL
;
}
//void
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment