diff options
author | Alex Wang <alexw@nicira.com> | 2013-10-09 04:30:37 +0000 |
---|---|---|
committer | Ethan Jackson <ethan@nicira.com> | 2013-10-08 17:58:04 -0700 |
commit | 635c5db93df8c69db6289c58ebda0e64cea85c9b (patch) | |
tree | 7346cfabf33965a6e66a9b152eb5b82393db7235 /ofproto/ofproto-dpif-monitor.h | |
parent | 53d98a1e9c8c2e5ea2bde30d3461c1d5bfbbfa97 (diff) | |
download | openvswitch-635c5db93df8c69db6289c58ebda0e64cea85c9b.tar.gz |
ofproto-dpif-monitor: Add ofproto-dpif-monitor module.
This commit adds a new module ofproto-dpif-monitor in ofproto
directory. This module is in charge of executing the periodic
functions of monitoring code (e.g. bfd and cfm).
Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'ofproto/ofproto-dpif-monitor.h')
-rw-r--r-- | ofproto/ofproto-dpif-monitor.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ofproto/ofproto-dpif-monitor.h b/ofproto/ofproto-dpif-monitor.h new file mode 100644 index 000000000..8e2681468 --- /dev/null +++ b/ofproto/ofproto-dpif-monitor.h @@ -0,0 +1,34 @@ +/* Copyright (c) 2009, 2010, 2011, 2012, 2013 Nicira, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ + +#ifndef OFPROTO_DPIF_MONITOR_H +#define OFPROTO_DPIF_MONITOR_H 1 + +#include <stdint.h> + +#include "packets.h" + +struct bfd; +struct cfm; +struct ofport_dpif; + +void ofproto_dpif_monitor_run(void); +void ofproto_dpif_monitor_run_fast(void); +void ofproto_dpif_monitor_wait(void); + +void ofproto_dpif_monitor_port_update(const struct ofport_dpif *, + struct bfd *, struct cfm *, + uint8_t[OFP_ETH_ALEN]); + +#endif /* ofproto-dpif-monitor.h */ |