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
d7763907
Commit
d7763907
authored
Jun 02, 2022
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: Fix segfault
parent
494b9dae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
trx_ecpri_dpdk.c
trx_ecpri_dpdk.c
+2
-2
No files found.
trx_ecpri_dpdk.c
View file @
d7763907
...
@@ -217,8 +217,8 @@ static int rbuf_contiguous_copy(ring_buffer_t * rbuf1, ring_buffer_t * rbuf2, in
...
@@ -217,8 +217,8 @@ static int rbuf_contiguous_copy(ring_buffer_t * rbuf1, ring_buffer_t * rbuf2, in
#define RBUF_WRITE(rbuf, i, type) (((type *) rbuf.buffer) + (((rbuf.write_index + i) % rbuf.buf_len) * rbuf.len))
#define RBUF_WRITE(rbuf, i, type) (((type *) rbuf.buffer) + (((rbuf.write_index + i) % rbuf.buf_len) * rbuf.len))
#define RBUF_INIT(rbuf, _name, _buf_len, _len, type) do\
#define RBUF_INIT(rbuf, _name, _buf_len, _len, type) do\
{\
{\
log_debug("TRX_ECPRI", "Allocating %s with %d bytes\n", _name, (
_buf_len * _len
* sizeof(type)));\
log_debug("TRX_ECPRI", "Allocating %s with %d bytes\n", _name, (
((int) _buf_len) * ((int) _len)
* sizeof(type)));\
rbuf.buffer = (type *) malloc(
_buf_len * _len
* sizeof(type));\
rbuf.buffer = (type *) malloc(
((int) _buf_len) * ((int) _len)
* sizeof(type));\
strcpy(rbuf.name, _name);\
strcpy(rbuf.name, _name);\
rbuf.buf_len = _buf_len;\
rbuf.buf_len = _buf_len;\
rbuf.len = _len;\
rbuf.len = _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