diff options
author | Alex Wang <alexw@nicira.com> | 2014-04-03 10:20:44 -0700 |
---|---|---|
committer | Alex Wang <alexw@nicira.com> | 2014-04-24 15:30:55 -0700 |
commit | 88bf179aa3f3fa89822edcd9b882e0f06d39bf08 (patch) | |
tree | 605ab624656c7bf0602f2e90bbb514e0ff7d8912 /lib/bfd.h | |
parent | 3834bcf2bf9106114bca70264b7a0bdb7351ff80 (diff) | |
download | openvswitch-88bf179aa3f3fa89822edcd9b882e0f06d39bf08.tar.gz |
bfd/cfm: Check status change before update status to database.
This commit adds boolean flag in bfd/cfm module for checking
status change. If there is no status change, the current
update to OVS database will skip the bfd/cfm session.
In the experiment with 5K bfd sessions, when one session is
flapping at rate of every 0.3 second, this patch reduces the
cpu utilization of the ovs-vswitchd thread from 13 to 6.
Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Joe Stringer <joestringer@nicira.com>
Diffstat (limited to 'lib/bfd.h')
-rw-r--r-- | lib/bfd.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -49,6 +49,7 @@ void bfd_unref(struct bfd *); void bfd_account_rx(struct bfd *, const struct dpif_flow_stats *); bool bfd_forwarding(struct bfd *); +bool bfd_check_status_change(struct bfd *); void bfd_get_status(const struct bfd *, struct smap *); void bfd_set_netdev(struct bfd *, const struct netdev *); long long int bfd_wake_time(const struct bfd *); |