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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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-RAN
Commits
2e804f53
Commit
2e804f53
authored
Jul 20, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless LINK_ENB_PDCP_TO_IP_DRIVER option
parent
659a8199
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
16 deletions
+7
-16
executables/lte-softmodem.c
executables/lte-softmodem.c
+1
-1
executables/lte-uesoftmodem.c
executables/lte-uesoftmodem.c
+1
-1
executables/nr-softmodem.c
executables/nr-softmodem.c
+2
-4
executables/nr-uesoftmodem.c
executables/nr-uesoftmodem.c
+1
-1
openair1/SIMULATION/ETH_TRANSPORT/netlink_init.c
openair1/SIMULATION/ETH_TRANSPORT/netlink_init.c
+2
-7
openair2/LAYER2/PDCP_v10.1.0/pdcp.h
openair2/LAYER2/PDCP_v10.1.0/pdcp.h
+0
-2
No files found.
executables/lte-softmodem.c
View file @
2e804f53
...
...
@@ -407,7 +407,7 @@ extern void phy_free_RU(RU_t *);
static
void
init_pdcp
(
void
)
{
pdcp_layer_init
();
uint32_t
pdcp_initmask
=
(
IS_SOFTMODEM_NOS1
)
?
LINK_ENB_PDCP_TO_IP_DRIVER_BIT
:
LINK_ENB_PDCP_TO_GTPV1U_BIT
;
uint32_t
pdcp_initmask
=
(
IS_SOFTMODEM_NOS1
)
?
0
:
LINK_ENB_PDCP_TO_GTPV1U_BIT
;
if
(
IS_SOFTMODEM_NOS1
)
pdcp_initmask
=
pdcp_initmask
|
ENB_NAS_USE_TUN_BIT
;
...
...
executables/lte-uesoftmodem.c
View file @
2e804f53
...
...
@@ -488,7 +488,7 @@ static inline void wait_nfapi_init(char *thread_name) {
}
static
void
init_pdcp
(
int
ue_id
)
{
uint32_t
pdcp_initmask
=
(
!
IS_SOFTMODEM_NOS1
)
?
LINK_ENB_PDCP_TO_GTPV1U_BIT
:
(
LINK_ENB_PDCP_TO_GTPV1U_BIT
|
LINK_ENB_PDCP_TO_IP_DRIVER_BIT
)
;
uint32_t
pdcp_initmask
=
!
IS_SOFTMODEM_NOS1
?
LINK_ENB_PDCP_TO_GTPV1U_BIT
:
LINK_ENB_PDCP_TO_GTPV1U_BIT
;
if
(
IS_SOFTMODEM_RFSIM
||
(
nfapi_getmode
()
==
NFAPI_UE_STUB_PNF
))
{
pdcp_initmask
=
pdcp_initmask
|
UE_NAS_USE_TUN_BIT
;
...
...
executables/nr-softmodem.c
View file @
2e804f53
...
...
@@ -542,10 +542,8 @@ static void wait_nfapi_init(char *thread_name) {
}
void
init_pdcp
(
void
)
{
uint32_t
pdcp_initmask
=
(
IS_SOFTMODEM_NOS1
)
?
LINK_ENB_PDCP_TO_IP_DRIVER_BIT
|
ENB_NAS_USE_TUN_BIT
:
LINK_ENB_PDCP_TO_GTPV1U_BIT
;
uint32_t
pdcp_initmask
=
IS_SOFTMODEM_NOS1
?
ENB_NAS_USE_TUN_BIT
:
LINK_ENB_PDCP_TO_GTPV1U_BIT
;
if
(
!
NODE_IS_DU
(
get_node_type
()))
{
nr_pdcp_layer_init
(
get_node_type
()
==
ngran_gNB_CUCP
);
nr_pdcp_module_init
(
pdcp_initmask
,
0
);
...
...
executables/nr-uesoftmodem.c
View file @
2e804f53
...
...
@@ -326,7 +326,7 @@ void init_openair0()
static
void
init_pdcp
(
int
ue_id
)
{
uint32_t
pdcp_initmask
=
(
!
IS_SOFTMODEM_NOS1
)
?
LINK_ENB_PDCP_TO_GTPV1U_BIT
:
(
LINK_ENB_PDCP_TO_GTPV1U_BIT
|
LINK_ENB_PDCP_TO_IP_DRIVER_BIT
)
;
uint32_t
pdcp_initmask
=
(
!
IS_SOFTMODEM_NOS1
)
?
LINK_ENB_PDCP_TO_GTPV1U_BIT
:
LINK_ENB_PDCP_TO_GTPV1U_BIT
;
/*if (IS_SOFTMODEM_RFSIM || (nfapi_getmode()==NFAPI_UE_STUB_PNF)) {
pdcp_initmask = pdcp_initmask | UE_NAS_USE_TUN_BIT;
...
...
openair1/SIMULATION/ETH_TRANSPORT/netlink_init.c
View file @
2e804f53
...
...
@@ -106,10 +106,7 @@ int netlink_init_mbms_tun(char *ifprefix, int id) {//for UE, id = 1, 2, ...,
if
(
ret
==
-
1
)
{
LOG_E
(
PDCP
,
"[NETLINK] Error fcntl (%d:%s)
\n
"
,
errno
,
strerror
(
errno
));
if
(
LINK_ENB_PDCP_TO_IP_DRIVER
)
{
exit
(
1
);
}
return
0
;
}
memset
(
&
nas_src_addr
,
0
,
sizeof
(
nas_src_addr
));
...
...
@@ -144,9 +141,7 @@ int netlink_init_tun(const char *ifprefix, int num_if, int id)
if
(
ret
==
-
1
)
{
LOG_E
(
PDCP
,
"TUN: Error fcntl (%d:%s)
\n
"
,
errno
,
strerror
(
errno
));
if
(
LINK_ENB_PDCP_TO_IP_DRIVER
)
{
exit
(
1
);
}
return
0
;
}
}
/* for */
...
...
openair2/LAYER2/PDCP_v10.1.0/pdcp.h
View file @
2e804f53
...
...
@@ -49,7 +49,6 @@
#define MAX_NUMBER_NETIF 1 //16
#define ENB_NAS_USE_TUN_W_MBMS_BIT (1<< 10)
#define LINK_ENB_PDCP_TO_IP_DRIVER_BIT (1<< 13)
#define LINK_ENB_PDCP_TO_GTPV1U_BIT (1<< 14)
#define UE_NAS_USE_TUN_BIT (1<< 15)
#define ENB_NAS_USE_TUN_BIT (1<< 16)
...
...
@@ -58,7 +57,6 @@ typedef struct {
}
pdcp_params_t
;
#define LINK_ENB_PDCP_TO_IP_DRIVER ( get_pdcp_optmask() & LINK_ENB_PDCP_TO_IP_DRIVER_BIT)
#define LINK_ENB_PDCP_TO_GTPV1U ( get_pdcp_optmask() & LINK_ENB_PDCP_TO_GTPV1U_BIT)
#define UE_NAS_USE_TUN ( get_pdcp_optmask() & UE_NAS_USE_TUN_BIT)
#define ENB_NAS_USE_TUN ( get_pdcp_optmask() & ENB_NAS_USE_TUN_BIT)
...
...
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