Home
last modified time | relevance | path

Searched hist:e05176a3 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/openvswitch/
H A Dactions.ce05176a3 Wed Aug 05 02:30:47 CDT 2015 Wenyu Zhang <wenyuz@vmware.com> 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 <wenyuz@vmware.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
e05176a3 Wed Aug 05 02:30:47 CDT 2015 Wenyu Zhang <wenyuz@vmware.com> 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 <wenyuz@vmware.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>