diff options
author | Wenyu Zhang <[email protected]> | 2015-08-05 00:30:47 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2015-08-07 12:00:38 -0700 |
commit | e05176a3283822bd32a1f3d929ce2050232299a8 (patch) | |
tree | 3a3ea7c2e7dcfc2b396128fd598d31c7a85dfa91 /net/switchdev/switchdev.c | |
parent | da8b43c0e1dcea3bcac5f37ea59934ddaa137aed (diff) |
openvswitch: Make 100 percents packets sampled when sampling rate is 1.
When sampling rate is 1, the sampling probability is UINT32_MAX. The packet
should be sampled even the prandom32() generate the number of UINT32_MAX.
And none packet need be sampled when the probability is 0.
Signed-off-by: Wenyu Zhang <[email protected]>
Acked-by: Pravin B Shelar <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions