[ovs-git] [openvswitch/ovs] 0ce3b4: conntrack: Fix minimum connections to clean.

Ben Pfaff noreply at github.com
Tue Apr 16 20:42:35 UTC 2019


  Branch: refs/heads/branch-2.9
  Home:   https://github.com/openvswitch/ovs
  Commit: 0ce3b416057da3072f9a7bb676db1c4903d2b7ad
      https://github.com/openvswitch/ovs/commit/0ce3b416057da3072f9a7bb676db1c4903d2b7ad
  Author: Darrell Ball <dlu998 at gmail.com>
  Date:   2019-04-16 (Tue, 16 Apr 2019)

  Changed paths:
    M lib/conntrack.c

  Log Message:
  -----------
  conntrack: Fix minimum connections to clean.

If there is low maximum connection count configuration and less than 10
connections in a bucket, the calculation of the maximum number of
connections to clean for the bucket could be zero, leading to these
connections not being cleaned until and if the connection count in the
bucket increases.

Fix this by checking for low maximum connection count configuration
and do this outside of the buckets loop, thereby simplifying the loop.

Fixes: e6ef6cc6349b ("conntrack: Periodically delete expired connections.")
CC: Daniele Di Proietto <diproiettod at ovn.org>
Reported-by: Liujiaxin <liujiaxin.2019 at bytedance.com>
Reported-at: https://mail.openvswitch.org/pipermail/ovs-dev/2019-March/357703.html
Signed-off-by: Darrell Ball <dlu998 at gmail.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list