FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
fib_entry_delegate_t_ Struct Reference

A Delagate is a means to implmenet the Delagation design pattern; the extension of an objects functionality through the composition of, and delgation to, other objects. More...

+ Collaboration diagram for fib_entry_delegate_t_:

Data Fields

fib_node_index_t fd_entry_index
 The FIB entry object to which the delagate is attached. More...
 
fib_entry_delegate_type_t fd_type
 The delagate type. More...
 
union {
   dpo_id_t   fd_dpo
 Valid for the forwarding chain delegates. More...
 
   fib_node_index_t   fd_index
 Valid for the attached import cases. More...
 
   fib_node_list_t   fd_list
 For the cover tracking. More...
 
   fib_bfd_state_t   fd_bfd_state
 BFD state. More...
 
}; 
 A union of data for the different delegate types These delegates are stored in a sparse vector on the entry, so they must all be of the same size. More...
 

Detailed Description

A Delagate is a means to implmenet the Delagation design pattern; the extension of an objects functionality through the composition of, and delgation to, other objects.

These 'other' objects are delegates. Delagates are thus attached to other FIB objects to extend their functionality.

Definition at line 97 of file fib_entry_delegate.h.

Field Documentation

◆ @132

union { ... }

A union of data for the different delegate types These delegates are stored in a sparse vector on the entry, so they must all be of the same size.

We could use indirection here for all types, i.e. store an index, that's ok for large delegates, like the attached export but for the chain delegates it's excessive

◆ fd_bfd_state

fib_bfd_state_t fib_entry_delegate_t_::fd_bfd_state

BFD state.

Definition at line 136 of file fib_entry_delegate.h.

◆ fd_dpo

dpo_id_t fib_entry_delegate_t_::fd_dpo

Valid for the forwarding chain delegates.

The LB that is built.

Definition at line 121 of file fib_entry_delegate.h.

◆ fd_entry_index

fib_node_index_t fib_entry_delegate_t_::fd_entry_index

The FIB entry object to which the delagate is attached.

Definition at line 102 of file fib_entry_delegate.h.

◆ fd_index

fib_node_index_t fib_entry_delegate_t_::fd_index

Valid for the attached import cases.

An index of the importer/exporter

Definition at line 126 of file fib_entry_delegate.h.

◆ fd_list

fib_node_list_t fib_entry_delegate_t_::fd_list

For the cover tracking.

The node list;

Definition at line 131 of file fib_entry_delegate.h.

◆ fd_type

fib_entry_delegate_type_t fib_entry_delegate_t_::fd_type

The delagate type.

Definition at line 107 of file fib_entry_delegate.h.


The documentation for this struct was generated from the following file: