FD.io VPP  v17.04-9-g99c0734
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...
 
}; 
 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 71 of file fib_entry_delegate.h.

Field Documentation

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

dpo_id_t fib_entry_delegate_t_::fd_dpo

Valid for the forwarding chain delegates.

The LB that is built.

Definition at line 95 of file fib_entry_delegate.h.

fib_node_index_t fib_entry_delegate_t_::fd_entry_index

The FIB entry object to which the delagate is attached.

Definition at line 76 of file fib_entry_delegate.h.

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 100 of file fib_entry_delegate.h.

fib_node_list_t fib_entry_delegate_t_::fd_list

For the cover tracking.

The node list;

Definition at line 105 of file fib_entry_delegate.h.

fib_entry_delegate_type_t fib_entry_delegate_t_::fd_type

The delagate type.

Definition at line 81 of file fib_entry_delegate.h.


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