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
a40959d6
Commit
a40959d6
authored
Jun 02, 2022
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP
parent
d7763907
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
Makefile
Makefile
+3
-2
trx_ecpri_dpdk.c
trx_ecpri_dpdk.c
+2
-2
No files found.
Makefile
View file @
a40959d6
...
...
@@ -3,10 +3,11 @@
CC
=
gcc
-m64
-mavx2
CXX
=
g++
-m64
-mavx2
CFLAGS
=
-
O3
-fno-strict-aliasing
-Wall
-pedantic
-g
CFLAGS
=
-
fno-strict-aliasing
-Wall
-pedantic
CFLAGS
+=
-D_GNU_SOURCE
-D_FILE_OFFSET_BITS
=
64
-D_LARGEFILE_SOURCE
CFLAGS
+=
-DALLOW_EXPERIMENTAL_API
CFLAGS
+=
-MMD
-g
CFLAGS
+=
-O3
-MMD
#CFLAGS+=-Og -g -MMD
CXXFLAGS
=
$(CFLAGS)
# binary name
...
...
trx_ecpri_dpdk.c
View file @
a40959d6
...
...
@@ -694,9 +694,9 @@ static void *send_thread(void *p) {
eth_hdr
->
d_addr
=
d_addr
;
eth_hdr
->
s_addr
=
s_addr
;
eth_hdr
->
ether_type
=
htons
(
0xaefe
);
memcpy
(
rte_pktmbuf_mtod_offset
(
pkt
[
i
],
uint8_t
*
,
sizeof
(
struct
rte_ether_hdr
)),
RBUF_READ0
(
tx_rbuf
,
uint8_t
),
8
+
s
->
tx_n_channel
*
60
);
memcpy
(
rte_pktmbuf_mtod_offset
(
pkt
[
i
],
uint8_t
*
,
sizeof
(
struct
rte_ether_hdr
)),
RBUF_READ0
(
tx_rbuf
,
uint8_t
),
tx_rbuf
.
len
);
rbuf_update_read_index
(
&
tx_rbuf
);
pkt_size
=
22
+
s
->
tx_n_channel
*
60
;
pkt_size
=
14
+
tx_rbuf
.
len
;
pkt
[
i
]
->
data_len
=
pkt_size
;
pkt
[
i
]
->
pkt_len
=
pkt_size
;
}
...
...
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