summaryrefslogtreecommitdiff
path: root/lib/cfm.h
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-03-22 16:57:43 -0700
committerEthan Jackson <ethan@nicira.com>2011-03-23 13:16:38 -0700
commita58727fb4007caf91d6eb615a123f161e4f4b9af (patch)
treec1c1751c71c8fc7c8bef110d54e6695ed697410c /lib/cfm.h
parent40f78b38e745019e08b3cfe06ddf205f0cc4b970 (diff)
downloadopenvswitch-a58727fb4007caf91d6eb615a123f161e4f4b9af.tar.gz
cfm: cfm_run() return ccm instead of packet.
It doesn't really make sense for the CFM code to be composing packets. Its caller is better placed to compose the appropriate L2 header. This commit pulls that logic out of the CFM library.
Diffstat (limited to 'lib/cfm.h')
-rw-r--r--lib/cfm.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/cfm.h b/lib/cfm.h
index 71778b7e9..555e39be3 100644
--- a/lib/cfm.h
+++ b/lib/cfm.h
@@ -36,7 +36,6 @@ struct cfm {
uint16_t mpid; /* The MPID of this CFM. */
uint8_t maid[CCM_MAID_LEN]; /* The MAID of this CFM. */
int interval; /* The requested transmission interval. */
- uint8_t eth_src[ETH_ADDR_LEN];
/* Statistics. */
struct hmap remote_mps; /* Expected remote MPs. */
@@ -68,7 +67,11 @@ struct cfm *cfm_create(void);
void cfm_destroy(struct cfm *);
-struct ofpbuf *cfm_run(struct cfm *);
+void cfm_run(struct cfm *);
+
+bool cfm_should_send_ccm(struct cfm *);
+
+void cfm_compose_ccm(struct cfm *, struct ccm *);
void cfm_wait(struct cfm *);