[ovs-git] [openvswitch/ovs] ac4e92: datapath: Make 100 percents packets sampled when s...

GitHub noreply at github.com
Wed Aug 26 17:36:36 UTC 2015


  Branch: refs/heads/branch-2.3
  Home:   https://github.com/openvswitch/ovs
  Commit: ac4e92debfea0420e30c04104b9a20fc400362e3
      https://github.com/openvswitch/ovs/commit/ac4e92debfea0420e30c04104b9a20fc400362e3
  Author: Wenyu Zhang <wenyuz at vmware.com>
  Date:   2015-08-26 (Wed, 26 Aug 2015)

  Changed paths:
    M datapath/actions.c

  Log Message:
  -----------
  datapath: 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 at vmware.com>
Acked-by: Pravin B Shelar <pshelar at nicira.com>
Signed-off-by: David S. Miller <davem at davemloft.net>

Upstream: e05176a3283 ("openvswitch: Make 100 percents packets
sampled when sampling rate is 1.")

Signed-off-by: Pravin B Shelar <pshelar at nicira.com>




More information about the git mailing list