Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
trx-ecpri
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
nexedi
trx-ecpri
Commits
8f61ae8c
Commit
8f61ae8c
authored
Jan 23, 2025
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Full working state
parent
9f27931c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
trx_ecpri.c
trx_ecpri.c
+8
-6
No files found.
trx_ecpri.c
View file @
8f61ae8c
...
@@ -99,6 +99,8 @@ IQ throughput (4 * 20 MHz): 3 932 160 000 bytes
...
@@ -99,6 +99,8 @@ IQ throughput (4 * 20 MHz): 3 932 160 000 bytes
One ethernet frame = 8862
One ethernet frame = 8862
Frames / second ~= 443 710
14 4 4 8 8832
14 4 4 8 8832
+-----------------+---------------------+----------------+-------------+------------+
+-----------------+---------------------+----------------+-------------+------------+
| Ethernet header | eCPRI common header | IQ data header | oRAN header | IQ payload |
| Ethernet header | eCPRI common header | IQ data header | oRAN header | IQ payload |
...
@@ -295,12 +297,12 @@ static void print_stats(FILE * f, int print_header) {
...
@@ -295,12 +297,12 @@ static void print_stats(FILE * f, int print_header) {
"
\n
"
,
"
\n
"
,
N_SAMPLES
*
sizeof
(
float
)
*
2
*
rx_drop_counter
.
counter
/
IQ_PAYLOAD
,
N_SAMPLES
*
sizeof
(
float
)
*
2
*
rx_drop_counter
.
counter
/
IQ_PAYLOAD
,
N_SAMPLES
*
sizeof
(
float
)
*
2
*
tx_drop_counter
.
counter
/
IQ_PAYLOAD
,
N_SAMPLES
*
sizeof
(
float
)
*
2
*
tx_drop_counter
.
counter
/
IQ_PAYLOAD
,
recv_counter
.
counter
/
4
,
recv_counter
.
counter
,
decode_counter
.
counter
/
4
,
decode_counter
.
counter
,
N_SAMPLES
*
sizeof
(
float
)
*
2
*
read_counter
.
counter
/
IQ_PAYLOAD
,
N_SAMPLES
*
sizeof
(
float
)
*
2
*
read_counter
.
counter
/
IQ_PAYLOAD
,
N_SAMPLES
*
sizeof
(
float
)
*
2
*
write_counter
.
counter
/
IQ_PAYLOAD
,
N_SAMPLES
*
sizeof
(
float
)
*
2
*
write_counter
.
counter
/
IQ_PAYLOAD
,
encode_counter
.
counter
/
4
,
encode_counter
.
counter
,
sent_counter
.
counter
/
4
,
sent_counter
.
counter
,
recv_counter
.
pps
,
recv_counter
.
pps
,
decode_counter
.
pps
,
decode_counter
.
pps
,
read_counter
.
pps
,
read_counter
.
pps
,
...
@@ -397,7 +399,7 @@ static void *recv_thread(void *p) {
...
@@ -397,7 +399,7 @@ static void *recv_thread(void *p) {
"Not enough space in RX buffer (%d < %d)
\n
"
,
"Not enough space in RX buffer (%d < %d)
\n
"
,
rbuf_write_amount
(
&
rx_rbuf
),
RX_BURST_SIZE
*
PACKET_SIZE
);
rbuf_write_amount
(
&
rx_rbuf
),
RX_BURST_SIZE
*
PACKET_SIZE
);
for
(
int
j
=
0
;
j
<
RX_BURST_SIZE
;
j
++
)
{
for
(
int
j
=
0
;
j
<
RX_BURST_SIZE
;
j
++
)
{
msgv
[
j
].
iov_base
=
r
buf_write
(
&
rx_rbuf
)
+
j
*
PACKET_SIZE
;
msgv
[
j
].
iov_base
=
r
x_rbuf
.
buffer
+
(
rx_rbuf
.
write_index
+
j
*
PACKET_SIZE
)
%
rx_rbuf
.
buf_len
;
msgv
[
j
].
iov_len
=
PACKET_SIZE
;
msgv
[
j
].
iov_len
=
PACKET_SIZE
;
msgh
[
j
].
msg_hdr
.
msg_iov
=
&
msgv
[
j
];
msgh
[
j
].
msg_hdr
.
msg_iov
=
&
msgv
[
j
];
msgh
[
j
].
msg_hdr
.
msg_iovlen
=
1
;
msgh
[
j
].
msg_hdr
.
msg_iovlen
=
1
;
...
@@ -636,7 +638,7 @@ static void *statistic_thread(void *p) {
...
@@ -636,7 +638,7 @@ static void *statistic_thread(void *p) {
add_ns
(
&
next
,
s
->
statistics_refresh_rate_ns
);
add_ns
(
&
next
,
s
->
statistics_refresh_rate_ns
);
print_stats
(
stats_file_desc
,
(
i
%
17
)
==
0
);
print_stats
(
stats_file_desc
,
(
i
%
17
)
==
0
);
#ifdef DEBUG
#ifdef DEBUG
print_debug
(
stats_file_desc
,
((
i
+
9
)
%
17
)
==
0
);
//
print_debug(stats_file_desc, ((i + 9) % 17) == 0);
#endif
#endif
fflush
(
stats_file_desc
);
fflush
(
stats_file_desc
);
...
...
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