|
OpenSDN source code
|
#include <nexthop_ksync.h>


Classes | |
| class | KSyncComponentNH |
Public Member Functions | |
| NHKSyncEntry (NHKSyncObject *obj, const NHKSyncEntry *entry, uint32_t index) | |
| NHKSyncEntry (NHKSyncObject *obj, const NextHop *nh) | |
| virtual | ~NHKSyncEntry () |
| const NextHop * | nh () |
| NextHop::Type | type () const |
| InterfaceKSyncEntry * | interface () const |
| std::vector< KSyncEntryPtr > | interface_list () const |
| std::vector< int32_t > | encap_valid_list () const |
| InterfaceKSyncEntry * | crypt_interface () const |
| KSyncDBObject * | GetObject () const |
| virtual bool | IsLess (const KSyncEntry &rhs) const |
| virtual std::string | ToString () const |
| virtual KSyncEntry * | UnresolvedReference () |
| virtual bool | Sync (DBEntry *e) |
| virtual int | AddMsg (char *buf, int buf_len) |
| virtual int | ChangeMsg (char *buf, int buf_len) |
| virtual int | DeleteMsg (char *buf, int buf_len) |
| void | FillObjectLog (sandesh_op::type op, KSyncNhInfo &info) const |
| uint32_t | nh_id () const |
| void | SetEncap (InterfaceKSyncEntry *if_ksync, std::vector< int8_t > &encap, const int32_t index=-1) |
| bool | is_bridge () const |
| bool | is_vxlan_routing () const |
| int | MsgLen () |
| uint8_t | SetEcmpFieldsToUse () |
| bool | KSyncEntrySandesh (Sandesh *resp) |
| COMPOSITETYPE | CompositeType () const |
Public Member Functions inherited from KSyncNetlinkDBEntry | |
| KSyncNetlinkDBEntry () | |
| KSyncNetlinkDBEntry (uint32_t index) | |
| virtual | ~KSyncNetlinkDBEntry () |
| bool | Add () |
| bool | Change () |
| bool | Delete () |
Public Member Functions inherited from KSyncDBEntry | |
| KSyncDBEntry () | |
| KSyncDBEntry (uint32_t index) | |
| virtual | ~KSyncDBEntry () |
| void | SetDBEntry (DBEntry *db_entry) |
| DBEntry * | GetDBEntry () |
Public Member Functions inherited from KSyncEntry | |
| std::string | StateString () const |
| std::string | AckOperationString (KSyncEvent ack_event) const |
| std::string | EventString (KSyncEvent event) const |
| KSyncEntry () | |
| KSyncEntry (uint32_t index) | |
| virtual | ~KSyncEntry () |
| void | Reset () |
| void | Reset (uint32_t index) |
| bool | operator< (const KSyncEntry &rhs) const |
| virtual bool | ShouldReEvalBackReference () const |
| bool | IsResolved () |
| bool | IsInSync () const |
| bool | IsResolvedAndInSync () |
| True only when the entry is resolved AND kernel-acknowledged (IN_SYNC). More... | |
| virtual bool | IsDataResolved () |
| virtual void | Response () |
| virtual bool | AllowDeleteStateComp () |
| virtual void | ErrorHandler (int err, uint32_t seqno, KSyncEvent event) const |
| virtual std::string | VrouterError (uint32_t error) const |
| virtual bool | pre_alloc_rx_buffer () const |
| virtual uint32_t | GetTableIndex () const |
| virtual void | StaleTimerExpired () |
| size_t | GetIndex () const |
| KSyncState | GetState () const |
| bool | del_add_pending () const |
| uint32_t | GetRefCount () const |
| bool | Seen () const |
| bool | stale () const |
| void | SetSeen () |
| bool | IsDeleted () |
| bool | IsActive () |
| void | set_del_add_pending (bool pending) |
| void | RecordTransition (KSyncState from, KSyncState to, KSyncEvent event) |
Public Member Functions inherited from DBState | |
| virtual | ~DBState () |
Static Public Attributes | |
| static const int | kDefaultNhMsgSize = 4096 |
| static const int | MAX_VR_PHY_INTF = 3 |
Static Public Attributes inherited from KSyncEntry | |
| static const size_t | kInvalidIndex = 0xFFFFFFFF |
| static const int | kDefaultMsgSize = 512 |
Private Types | |
| typedef std::vector< KSyncComponentNH > | KSyncComponentNHList |
Private Member Functions | |
| void | SetKSyncNhListSandeshData (KSyncNhListSandeshData *data) const |
| int | Encode (sandesh_op::type op, char *buf, int buf_len) |
| DISALLOW_COPY_AND_ASSIGN (NHKSyncEntry) | |
Additional Inherited Members | |
Public Types inherited from KSyncDBEntry | |
| typedef std::list< DBEntry * > | DupEntryList |
Public Types inherited from KSyncEntry | |
| enum | KSyncState { INIT , TEMP , ADD_DEFER , CHANGE_DEFER , IN_SYNC , SYNC_WAIT , NEED_SYNC , DEL_DEFER_SYNC , DEL_DEFER_REF , DEL_DEFER_DEL_ACK , DEL_ACK_WAIT , RENEW_WAIT , FREE_WAIT } |
| enum | KSyncEvent { ADD_CHANGE_REQ , ADD_ACK , CHANGE_ACK , DEL_REQ , DEL_ADD_REQ , DEL_ACK , RE_EVAL , INT_PTR_REL , INVALID } |
| typedef boost::intrusive_ptr< KSyncEntry > | KSyncEntryPtr |
Static Public Member Functions inherited from KSyncEntry | |
| static std::string | VrouterErrorToString (uint32_t error) |
Protected Member Functions inherited from KSyncEntry | |
| void | SetIndex (size_t index) |
| void | SetState (KSyncState state) |
Definition at line 27 of file nexthop_ksync.h.
|
private |
Definition at line 93 of file nexthop_ksync.h.
| NHKSyncEntry::NHKSyncEntry | ( | NHKSyncObject * | obj, |
| const NHKSyncEntry * | entry, | ||
| uint32_t | index | ||
| ) |
Definition at line 33 of file nexthop_ksync.cc.
| NHKSyncEntry::NHKSyncEntry | ( | NHKSyncObject * | obj, |
| const NextHop * | nh | ||
| ) |
Definition at line 67 of file nexthop_ksync.cc.
|
virtual |
Definition at line 253 of file nexthop_ksync.cc.
|
virtual |
Implements KSyncNetlinkDBEntry.
Definition at line 1446 of file nexthop_ksync.cc.

|
virtual |
Implements KSyncNetlinkDBEntry.
Definition at line 1454 of file nexthop_ksync.cc.

|
inline |
Definition at line 72 of file nexthop_ksync.h.
|
inline |
Definition at line 47 of file nexthop_ksync.h.
|
virtual |
Implements KSyncNetlinkDBEntry.
Definition at line 1462 of file nexthop_ksync.cc.

|
private |
|
inline |
Definition at line 44 of file nexthop_ksync.h.
|
private |
| void NHKSyncEntry::FillObjectLog | ( | sandesh_op::type | op, |
| KSyncNhInfo & | info | ||
| ) | const |
|
virtual |
Implements KSyncEntry.
Definition at line 256 of file nexthop_ksync.cc.
|
inline |
Definition at line 38 of file nexthop_ksync.h.
|
inline |
Definition at line 41 of file nexthop_ksync.h.
|
inline |
Definition at line 63 of file nexthop_ksync.h.
|
inline |
Definition at line 64 of file nexthop_ksync.h.
|
virtual |
Implements KSyncEntry.
Definition at line 260 of file nexthop_ksync.cc.

| bool NHKSyncEntry::KSyncEntrySandesh | ( | Sandesh * | resp | ) |
|
inlinevirtual |
Reimplemented from KSyncNetlinkDBEntry.
Definition at line 66 of file nexthop_ksync.h.
|
inline |
Definition at line 36 of file nexthop_ksync.h.
|
inline |
Definition at line 60 of file nexthop_ksync.h.
| uint8_t NHKSyncEntry::SetEcmpFieldsToUse | ( | ) |
| void NHKSyncEntry::SetEncap | ( | InterfaceKSyncEntry * | if_ksync, |
| std::vector< int8_t > & | encap, | ||
| const int32_t | index = -1 |
||
| ) |
|
private |
Definition at line 1691 of file nexthop_ksync.cc.
|
virtual |
Implements KSyncDBEntry.
Definition at line 542 of file nexthop_ksync.cc.
|
virtual |
Implements KSyncEntry.
Definition at line 452 of file nexthop_ksync.cc.

|
inline |
Definition at line 37 of file nexthop_ksync.h.
|
virtual |
Implements KSyncEntry.
Definition at line 1470 of file nexthop_ksync.cc.

|
private |
Definition at line 124 of file nexthop_ksync.h.
|
private |
Definition at line 118 of file nexthop_ksync.h.
|
private |
Definition at line 123 of file nexthop_ksync.h.
|
private |
Definition at line 112 of file nexthop_ksync.h.
|
private |
Definition at line 134 of file nexthop_ksync.h.
|
private |
Definition at line 136 of file nexthop_ksync.h.
|
private |
Definition at line 135 of file nexthop_ksync.h.
|
private |
Definition at line 111 of file nexthop_ksync.h.
|
private |
Definition at line 102 of file nexthop_ksync.h.
|
private |
Definition at line 106 of file nexthop_ksync.h.
|
private |
Definition at line 140 of file nexthop_ksync.h.
|
private |
Definition at line 104 of file nexthop_ksync.h.
|
private |
Definition at line 126 of file nexthop_ksync.h.
|
private |
Definition at line 139 of file nexthop_ksync.h.
|
private |
Definition at line 132 of file nexthop_ksync.h.
|
private |
Definition at line 125 of file nexthop_ksync.h.
|
private |
Definition at line 100 of file nexthop_ksync.h.
|
private |
Definition at line 138 of file nexthop_ksync.h.
|
private |
Definition at line 116 of file nexthop_ksync.h.
|
private |
Definition at line 115 of file nexthop_ksync.h.
|
private |
Definition at line 110 of file nexthop_ksync.h.
|
private |
Definition at line 117 of file nexthop_ksync.h.
|
private |
Definition at line 128 of file nexthop_ksync.h.
|
static |
Definition at line 29 of file nexthop_ksync.h.
|
private |
Definition at line 96 of file nexthop_ksync.h.
|
private |
Definition at line 99 of file nexthop_ksync.h.
|
private |
Definition at line 133 of file nexthop_ksync.h.
|
private |
Definition at line 130 of file nexthop_ksync.h.
|
static |
Definition at line 30 of file nexthop_ksync.h.
|
private |
Definition at line 131 of file nexthop_ksync.h.
|
private |
Definition at line 113 of file nexthop_ksync.h.
|
private |
Definition at line 122 of file nexthop_ksync.h.
|
private |
Definition at line 127 of file nexthop_ksync.h.
|
private |
Definition at line 129 of file nexthop_ksync.h.
|
private |
Definition at line 109 of file nexthop_ksync.h.
|
private |
Definition at line 121 of file nexthop_ksync.h.
|
private |
Definition at line 107 of file nexthop_ksync.h.
|
private |
Definition at line 101 of file nexthop_ksync.h.
|
private |
Definition at line 105 of file nexthop_ksync.h.
|
private |
Definition at line 103 of file nexthop_ksync.h.
|
private |
Definition at line 137 of file nexthop_ksync.h.
|
private |
Definition at line 120 of file nexthop_ksync.h.
|
private |
Definition at line 97 of file nexthop_ksync.h.
|
private |
Definition at line 108 of file nexthop_ksync.h.
|
private |
Definition at line 119 of file nexthop_ksync.h.
|
private |
Definition at line 114 of file nexthop_ksync.h.
|
private |
Definition at line 98 of file nexthop_ksync.h.