Re: [ovs-dev] [PATCH v1 ] Make 100 percents packets sampled when sampling rate is 1.

2015-07-30 Thread Jesse Gross
On Thu, Jul 30, 2015 at 12:02 AM, Wenyu Zhang wrote: > 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 no packet need be sampled when the probability is 0. > > Signed-off-by: Wenyu Zhang

[ovs-dev] [PATCH v1 ] Make 100 percents packets sampled when sampling rate is 1.

2015-07-30 Thread Wenyu Zhang
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 no packet need be sampled when the probability is 0. Signed-off-by: Wenyu Zhang --- datapath/actions.c |4 +++- 1 file changed, 3 insertio