Skip to content

Commit

Permalink
on_vmnet_packets_available: fix arg
Browse files Browse the repository at this point in the history
Fix issue 22

Thanks to dzc15331066 for reporting.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
  • Loading branch information
AkihiroSuda committed Jan 26, 2023
1 parent cedd8bd commit 9888f4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ static void on_vmnet_packets_available(interface_ref iface, int64_t estim_count,
"r=%lld",
estim_count, MAX_PACKET_COUNT_AT_ONCE, q, r);
for (int i = 0; i < q; i++) {
_on_vmnet_packets_available(iface, q, max_bytes, state);
_on_vmnet_packets_available(iface, MAX_PACKET_COUNT_AT_ONCE, max_bytes, state);
}
if (r > 0)
_on_vmnet_packets_available(iface, r, max_bytes, state);
Expand Down

0 comments on commit 9888f4f

Please sign in to comment.