"...composable_kernel.git" did not exist on "8a2c69eeee29ffc4493654578c27214ecdddb64d"
Commit bb6a899b authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

nicsim_common: start out by sending a sync immediately

parent ae43f294
...@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment