Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
nsim: remove buffer u32 upper bound
[vpp.git]
/
src
/
plugins
/
nsim
/
nsim.c
diff --git
a/src/plugins/nsim/nsim.c
b/src/plugins/nsim/nsim.c
index
61d74b0
..
a8c0033
100644
(file)
--- a/
src/plugins/nsim/nsim.c
+++ b/
src/plugins/nsim/nsim.c
@@
-188,7
+188,7
@@
nsim_configure (nsim_main_t * nsm, f64 bandwidth, f64 delay, f64 packet_size,
nsm->drop_fraction = drop_fraction;
/* delay in seconds, bandwidth in bits/sec */
nsm->drop_fraction = drop_fraction;
/* delay in seconds, bandwidth in bits/sec */
- total_buffer_size_in_bytes = (
u32) (
(delay * bandwidth) / 8.0) + 0.5;
+ total_buffer_size_in_bytes = ((delay * bandwidth) / 8.0) + 0.5;
/*
* Work out how much buffering each worker needs, assuming decent
/*
* Work out how much buffering each worker needs, assuming decent