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
38502e36
Commit
38502e36
authored
Jun 07, 2022
by
Hejing Li
Browse files
net_switch and pktgen NicIfInit fix
parent
053bb9f8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
sims/net/pktgen/pktgen.cc
sims/net/pktgen/pktgen.cc
+2
-2
sims/net/switch/net_switch.cc
sims/net/switch/net_switch.cc
+2
-2
No files found.
sims/net/pktgen/pktgen.cc
View file @
38502e36
...
...
@@ -240,9 +240,9 @@ class NetHostPort : public NetPort {
std
::
string
shm_path
=
path
;
shm_path
+=
"-shm"
;
struct
SimbricksBaseIfParams
params
=
netParams
;
netP
arams
.
sock_path
=
path
;
p
arams
.
sock_path
=
path
;
if
(
!
sync
)
netP
arams
.
sync_mode
=
kSimbricksBaseIfSyncDisabled
;
p
arams
.
sync_mode
=
kSimbricksBaseIfSyncDisabled
;
int
ret
=
SimbricksNicIfInit
(
&
nicif_
,
shm_path
.
c_str
(),
&
params
,
nullptr
,
nullptr
);
sync_
=
SimbricksBaseIfSyncEnabled
(
&
netif_
->
base
);
...
...
sims/net/switch/net_switch.cc
View file @
38502e36
...
...
@@ -220,9 +220,9 @@ class NetHostPort : public NetPort {
std
::
string
shm_path
=
path
;
shm_path
+=
"-shm"
;
struct
SimbricksBaseIfParams
params
=
netParams
;
netP
arams
.
sock_path
=
path
;
p
arams
.
sock_path
=
path
;
if
(
!
sync
)
netP
arams
.
sync_mode
=
kSimbricksBaseIfSyncDisabled
;
p
arams
.
sync_mode
=
kSimbricksBaseIfSyncDisabled
;
int
ret
=
SimbricksNicIfInit
(
&
nicif_
,
shm_path
.
c_str
(),
&
params
,
nullptr
,
nullptr
);
sync_
=
SimbricksBaseIfSyncEnabled
(
&
netif_
->
base
);
...
...
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