[ovs-git] [openvswitch/ovs] fe3b68: conntrack: Fix minimum connections to clean.
Ben Pfaff
noreply at github.com
Tue Apr 16 20:43:29 UTC 2019
Branch: refs/heads/branch-2.8
Home: https://github.com/openvswitch/ovs
Commit: fe3b680d2ab01a6f8688053b797d715a898ed5b2
https://github.com/openvswitch/ovs/commit/fe3b680d2ab01a6f8688053b797d715a898ed5b2
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