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
f8c122a7
Commit
f8c122a7
authored
Oct 04, 2023
by
Laurent THOMAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
increase the max fd of rfsim, that have been shorten to tightly for cpu saving
parent
0be397b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
radio/rfsimulator/simulator.c
radio/rfsimulator/simulator.c
+3
-4
No files found.
radio/rfsimulator/simulator.c
View file @
f8c122a7
...
@@ -70,7 +70,6 @@
...
@@ -70,7 +70,6 @@
#define sampleToByte(a,b) ((a)*(b)*sizeof(sample_t))
#define sampleToByte(a,b) ((a)*(b)*sizeof(sample_t))
#define byteToSample(a,b) ((a)/(sizeof(sample_t)*(b)))
#define byteToSample(a,b) ((a)/(sizeof(sample_t)*(b)))
#define MAX_SIMULATION_CONNECTED_NODES 5
#define GENERATE_CHANNEL 10 // each frame (or slot?) in DL
#define GENERATE_CHANNEL 10 // each frame (or slot?) in DL
// This needs to be re-architected in the future
// This needs to be re-architected in the future
...
@@ -86,7 +85,7 @@
...
@@ -86,7 +85,7 @@
// FD_SETSIE) and reduced to 125. This should allow for around 20 simultaeous UEs.
// FD_SETSIE) and reduced to 125. This should allow for around 20 simultaeous UEs.
//
//
// #define MAX_FD_RFSIMU FD_SETSIZE
// #define MAX_FD_RFSIMU FD_SETSIZE
#define MAX_FD_RFSIMU
125
#define MAX_FD_RFSIMU
250
#define SYSCTL_MEM_VALUE 134217728 // Kernel network buffer size
#define SYSCTL_MEM_VALUE 134217728 // Kernel network buffer size
#define SEND_BUFF_SIZE SYSCTL_MEM_VALUE // Socket buffer size
#define SEND_BUFF_SIZE SYSCTL_MEM_VALUE // Socket buffer size
...
@@ -803,7 +802,7 @@ static bool flushInput(rfsimulator_state_t *t, int timeout, int nsamps_for_initi
...
@@ -803,7 +802,7 @@ static bool flushInput(rfsimulator_state_t *t, int timeout, int nsamps_for_initi
for
(
int
i
=
0
;
i
<
t
->
tx_num_channels
;
i
++
)
for
(
int
i
=
0
;
i
<
t
->
tx_num_channels
;
i
++
)
samplesVoid
[
i
]
=
(
void
*
)
&
v
;
samplesVoid
[
i
]
=
(
void
*
)
&
v
;
rfsimulator_write_internal
(
t
,
t
->
lastWroteTS
>
1
?
t
->
lastWroteTS
-
1
:
0
,
samplesVoid
,
1
,
t
->
tx_num_channels
,
1
,
tru
e
);
rfsimulator_write_internal
(
t
,
t
->
lastWroteTS
>
1
?
t
->
lastWroteTS
-
1
:
0
,
samplesVoid
,
1
,
t
->
tx_num_channels
,
1
,
fals
e
);
}
else
{
}
else
{
if
(
events
[
nbEv
].
events
&
(
EPOLLHUP
|
EPOLLERR
|
EPOLLRDHUP
)
)
{
if
(
events
[
nbEv
].
events
&
(
EPOLLHUP
|
EPOLLERR
|
EPOLLRDHUP
)
)
{
socketError
(
t
,
fd
);
socketError
(
t
,
fd
);
...
@@ -963,7 +962,7 @@ static int rfsimulator_read(openair0_device *device, openair0_timestamp *ptimest
...
@@ -963,7 +962,7 @@ static int rfsimulator_read(openair0_device *device, openair0_timestamp *ptimest
"Waiting on socket, current last ts: %ld, expected at least : %ld
\n
"
,
"Waiting on socket, current last ts: %ld, expected at least : %ld
\n
"
,
b
->
lastReceivedTS
,
b
->
lastReceivedTS
,
t
->
nextRxTstamp
+
nsamps
);
t
->
nextRxTstamp
+
nsamps
);
flushInput
(
t
,
1000
,
nsamps
);
// was 3
flushInput
(
t
,
3
,
nsamps
);
}
}
}
while
(
have_to_wait
);
}
while
(
have_to_wait
);
}
}
...
...
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