X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fcfm.h;h=1be1981e8b00c03136057a4a0809ff6f02bdd463;hb=b1b5cd8e2162ad859d2453815c9c056aa97ad44b;hp=651b1c4b27a840b3146995e5cebbc782f1deae6b;hpb=2a899f6e8ab6abf416fc4fdabacc9ae707d5b1c3;p=openvswitch diff --git a/lib/cfm.h b/lib/cfm.h index 651b1c4b..1be1981e 100644 --- a/lib/cfm.h +++ b/lib/cfm.h @@ -24,6 +24,7 @@ struct flow; struct ofpbuf; +struct ds; /* Ethernet destination address of CCM packets. */ static const uint8_t eth_addr_ccm[6] OVS_UNUSED @@ -59,8 +60,6 @@ struct cfm { /* Statistics. */ struct hmap remote_mps; /* Expected remote MPs. */ - struct hmap x_remote_mps; /* Unexpected remote MPs. */ - struct hmap x_remote_maids; /* Unexpected remote MAIDs. */ bool fault; /* Indicates connectivity vaults. */ }; @@ -74,15 +73,6 @@ struct remote_mp { bool fault; /* Indicates a connectivity fault. */ }; -/* Remote MAIDs keep track of incoming CCM messages which have a different MAID - * than this CFM instance. */ -struct remote_maid { - uint8_t maid[CCM_MAID_LEN]; /* The remote MAID. */ - struct hmap_node node; /* In 'cfm' 'x_remote_maids'. */ - - long long recv_time; /* Most recent receive time for this 'remote_maid'. */ -}; - struct cfm *cfm_create(void); void cfm_destroy(struct cfm *); @@ -108,4 +98,6 @@ bool cfm_should_process_flow(const struct flow *); void cfm_process_heartbeat(struct cfm *, const struct ofpbuf *packet); +void cfm_dump_ds(const struct cfm *, struct ds *); + #endif /* cfm.h */