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
wangjie
OpenXG-RAN
Commits
10a5e5fd
Commit
10a5e5fd
authored
Mar 23, 2019
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use OAI NUM_ENB/UE defines for F1U (removes warnings)
parent
9611a22a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
11 deletions
+6
-11
openair2/LAYER2/PROTO_AGENT/proto_agent.h
openair2/LAYER2/PROTO_AGENT/proto_agent.h
+0
-2
openair2/LAYER2/PROTO_AGENT/proto_agent_common.c
openair2/LAYER2/PROTO_AGENT/proto_agent_common.c
+0
-2
openair2/LAYER2/PROTO_AGENT/proto_agent_defs.h
openair2/LAYER2/PROTO_AGENT/proto_agent_defs.h
+3
-4
openair2/LAYER2/PROTO_AGENT/proto_agent_net_comm.c
openair2/LAYER2/PROTO_AGENT/proto_agent_net_comm.c
+3
-3
No files found.
openair2/LAYER2/PROTO_AGENT/proto_agent.h
View file @
10a5e5fd
...
...
@@ -38,8 +38,6 @@
#ifndef PROTO_AGENT_H_
#define PROTO_AGENT_H_
#include "ENB_APP/enb_config.h" // for enb properties
/* avoid warnings */
#undef NUM_MAX_ENB
#include "proto_agent_common.h"
...
...
openair2/LAYER2/PROTO_AGENT/proto_agent_common.c
View file @
10a5e5fd
...
...
@@ -39,8 +39,6 @@
#include <time.h>
#include "PHY/phy_extern.h"
/* avoid warnings */
#undef NUM_MAX_ENB
#include "proto_agent_common.h"
#include "common/utils/LOG/log.h"
...
...
openair2/LAYER2/PROTO_AGENT/proto_agent_defs.h
View file @
10a5e5fd
...
...
@@ -41,10 +41,9 @@
#include <pthread.h>
#include <string.h>
#include "openairinterface5g_limits.h"
#include "UTIL/ASYNC_IF/link_manager.h"
#define NUM_MAX_ENB 10
#define NUM_MAX_UE 2048
#define DEFAULT_PROTO_AGENT_IPv4_ADDRESS "127.0.0.1"
#define DEFAULT_PROTO_AGENT_PORT 2210
#define DEFAULT_PROTO_AGENT_CACHE "/mnt/oai_agent_cache"
...
...
@@ -108,8 +107,8 @@ typedef struct {
uint32_t
total_rx_msg
;
uint32_t
total_tx_msg
;
uint32_t
rx_msg
[
NUM
_MAX_ENB
];
uint32_t
tx_msg
[
NUM
_MAX_ENB
];
uint32_t
rx_msg
[
NUM
BER_OF_eNB_MAX
];
uint32_t
tx_msg
[
NUM
BER_OF_eNB_MAX
];
}
proto_agent_info_t
;
...
...
openair2/LAYER2/PROTO_AGENT/proto_agent_net_comm.c
View file @
10a5e5fd
...
...
@@ -37,7 +37,7 @@
#include "proto_agent_net_comm.h"
#include "common/utils/LOG/log.h"
proto_agent_channel_t
*
proto_channel
[
NUM
_MAX_ENB
][
ENB_AGENT_MAX
];
proto_agent_channel_t
*
proto_channel
[
NUM
BER_OF_eNB_MAX
][
ENB_AGENT_MAX
];
proto_agent_channel_instance_t
channel_instance
;
int
proto_agent_channel_id
=
0
;
...
...
@@ -106,7 +106,7 @@ int proto_agent_destroy_channel(int channel_id) {
}
/*Unregister the channel from all agents*/
for
(
i
=
0
;
i
<
NUM
_MAX_ENB
;
i
++
)
{
for
(
i
=
0
;
i
<
NUM
BER_OF_eNB_MAX
;
i
++
)
{
for
(
j
=
0
;
j
<
ENB_AGENT_MAX
;
j
++
)
{
if
(
proto_channel
[
i
][
j
]
!=
NULL
)
{
if
(
proto_channel
[
i
][
j
]
->
channel_id
==
e
->
channel_id
)
{
...
...
@@ -130,7 +130,7 @@ err_code_t proto_agent_init_channel_container(void) {
RB_INIT
(
&
channel_instance
.
proto_agent_head
);
for
(
i
=
0
;
i
<
NUM
_MAX_ENB
;
i
++
)
{
for
(
i
=
0
;
i
<
NUM
BER_OF_eNB_MAX
;
i
++
)
{
for
(
j
=
0
;
j
<
ENB_AGENT_MAX
;
j
++
)
{
proto_channel
[
i
][
j
]
=
NULL
;
}
...
...
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