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

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


  Branch: refs/heads/branch-2.4
  Home:   https://github.com/openvswitch/ovs
  Commit: 6a60b2b5f578aef87666a4ad225c2f5b9ca45809
      https://github.com/openvswitch/ovs/commit/6a60b2b5f578aef87666a4ad225c2f5b9ca45809
  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