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
bb6a899b
"...composable_kernel.git" did not exist on "8a2c69eeee29ffc4493654578c27214ecdddb64d"
Commit
bb6a899b
authored
Jun 19, 2020
by
Antoine Kaufmann
Browse files
nicsim_common: start out by sending a sync immediately
parent
ae43f294
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
nicsim_common/nicsim.c
nicsim_common/nicsim.c
+4
-4
No files found.
nicsim_common/nicsim.c
View file @
bb6a899b
...
@@ -261,8 +261,8 @@ int nicsim_sync(struct nicsim_params *params, uint64_t timestamp)
...
@@ -261,8 +261,8 @@ int nicsim_sync(struct nicsim_params *params, uint64_t timestamp)
volatile
union
cosim_eth_proto_d2n
*
d2n
;
volatile
union
cosim_eth_proto_d2n
*
d2n
;
/* sync PCI if necessary */
/* sync PCI if necessary */
if
(
params
->
sync_pci
&&
if
(
params
->
sync_pci
&&
(
pci_last_tx_time
==
0
||
timestamp
-
pci_last_tx_time
>=
params
->
sync_delay
)
timestamp
-
pci_last_tx_time
>=
params
->
sync_delay
)
)
{
{
d2h
=
nicsim_d2h_alloc
(
params
,
timestamp
);
d2h
=
nicsim_d2h_alloc
(
params
,
timestamp
);
if
(
d2h
==
NULL
)
{
if
(
d2h
==
NULL
)
{
...
@@ -274,8 +274,8 @@ int nicsim_sync(struct nicsim_params *params, uint64_t timestamp)
...
@@ -274,8 +274,8 @@ int nicsim_sync(struct nicsim_params *params, uint64_t timestamp)
}
}
/* sync Ethernet if necessary */
/* sync Ethernet if necessary */
if
(
params
->
sync_eth
&&
if
(
params
->
sync_eth
&&
(
eth_last_tx_time
==
0
||
timestamp
-
eth_last_tx_time
>=
params
->
sync_delay
)
timestamp
-
eth_last_tx_time
>=
params
->
sync_delay
)
)
{
{
d2n
=
nicsim_d2n_alloc
(
params
,
timestamp
);
d2n
=
nicsim_d2n_alloc
(
params
,
timestamp
);
if
(
d2n
==
NULL
)
{
if
(
d2n
==
NULL
)
{
...
...
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