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
a705fafb
Commit
a705fafb
authored
Jun 09, 2022
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: drop non eCPRI packets
parent
269780c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
trx_ecpri_dpdk.c
trx_ecpri_dpdk.c
+3
-1
No files found.
trx_ecpri_dpdk.c
View file @
a705fafb
...
...
@@ -640,8 +640,10 @@ static void *recv_thread(void *p) {
}
}
if
(
ntohl
(
*
((
uint32_t
*
)
(
rtebuf
+
12
)))
!=
0xaefe
)
{
uint16_t
ether_type
=
ntohl
(
*
((
uint16_t
*
)
(
rtebuf
+
12
)));
if
(
ether_type
!=
0xaefe
)
{
drop
++
;
drop_total
++
;
printf
(
"Dropped packet: %02x%02x
\n
"
,
((
uint8_t
*
)
&
ether_type
)[
0
],
((
uint8_t
*
)
&
ether_type
)[
1
]);
continue
;
}
if
((
pkt
[
i
+
k
])
->
data_len
!=
rx_rbuf
.
len
)
{
...
...
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