Thread (1 message) 1 message, 1 author, 2015-08-07

Re: [PATCH net-next v3] openvswitch: Make 100 percents packets sampled when sampling rate is 1.

From: David Miller <hidden>
Date: 2015-08-07 19:01:02

From: Wenyu Zhang <redacted>
Date: Wed, 5 Aug 2015 00:30:47 -0700
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 <redacted>
Applied.
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help