aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorStephen Hemminger <[email protected]>2017-11-14 19:27:02 +0000
committerDavid S. Miller <[email protected]>2017-11-15 05:14:16 +0000
commit9b0ed89172efec1d9f214d173ad6046f10f6b742 (patch)
tree67e5e1fab1969ec245fea1b3a232dc16b89c9f32 /tools/bpf/bpftool/prog.c
parentnetem: use 64 bit divide by rate (diff)
downloadkernel-9b0ed89172efec1d9f214d173ad6046f10f6b742.tar.gz
kernel-9b0ed89172efec1d9f214d173ad6046f10f6b742.zip
netem: remove unnecessary 64 bit modulus
Fix compilation on 32 bit platforms (where doing modulus operation with 64 bit requires extra glibc functions) by truncation. The jitter for table distribution is limited to a 32 bit value because random numbers are scaled as 32 bit value. Also fix some whitespace. Fixes: 99803171ef04 ("netem: add uapi to express delay and jitter in nanoseconds") Reported-by: Randy Dunlap <[email protected]> Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions