Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
2756a0a9
Commit
2756a0a9
authored
Sep 16, 2020
by
Antoine Kaufmann
Browse files
nicsim_common: increase queue element size for 9000B ethernet frames
parent
c72d8fc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
nicsim_common/nicsim.c
nicsim_common/nicsim.c
+10
-5
No files found.
nicsim_common/nicsim.c
View file @
2756a0a9
...
@@ -32,16 +32,16 @@
...
@@ -32,16 +32,16 @@
#include "internal.h"
#include "internal.h"
#define D2H_ELEN (
4096
+ 64)
#define D2H_ELEN (
9024
+ 64)
#define D2H_ENUM 1024
#define D2H_ENUM 1024
#define H2D_ELEN (
4096
+ 64)
#define H2D_ELEN (
9024
+ 64)
#define H2D_ENUM 1024
#define H2D_ENUM 1024
#define D2N_ELEN (
2048
+ 64)
#define D2N_ELEN (
9024
+ 64)
#define D2N_ENUM 8192
#define D2N_ENUM 8192
#define N2D_ELEN (
2048
+ 64)
#define N2D_ELEN (
9024
+ 64)
#define N2D_ENUM 8192
#define N2D_ENUM 8192
...
@@ -182,9 +182,14 @@ int nicsim_init(struct nicsim_params *params,
...
@@ -182,9 +182,14 @@ int nicsim_init(struct nicsim_params *params,
{
{
int
pci_lfd
=
-
1
,
eth_lfd
=
-
1
;
int
pci_lfd
=
-
1
,
eth_lfd
=
-
1
;
void
*
shmptr
;
void
*
shmptr
;
size_t
shm_size
;
/* ready in memory queues */
/* ready in memory queues */
if
((
shm_fd
=
shm_create
(
params
->
shm_path
,
64
*
1024
*
1024
,
&
shmptr
))
shm_size
=
(
uint64_t
)
D2H_ELEN
*
D2H_ENUM
+
(
uint64_t
)
H2D_ELEN
*
H2D_ENUM
+
(
uint64_t
)
D2N_ELEN
*
D2N_ENUM
+
(
uint64_t
)
N2D_ELEN
*
N2D_ENUM
;
if
((
shm_fd
=
shm_create
(
params
->
shm_path
,
shm_size
,
&
shmptr
))
<
0
)
<
0
)
{
{
...
...
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