acl: fix unresolved symbol for format_fib_prefix in vat plugin
[vpp.git] / src / vnet / bonding / node.h
index 1479209..ddd48fe 100644 (file)
@@ -83,6 +83,7 @@ typedef struct
   u8 mode;
   u8 lb;
   u8 numa_only;
+  u8 gso;
   /* return */
   u32 sw_if_index;
   int rv;
@@ -188,9 +189,6 @@ typedef struct
   /* Slaves that are in DISTRIBUTING state */
   u32 *active_slaves;
 
-  /* rapidly find an active slave */
-  uword *active_slave_by_sw_if_index;
-
   lacp_port_info_t partner;
   lacp_port_info_t actor;
   u8 individual_aggregator;
@@ -199,6 +197,7 @@ typedef struct
      on local numa node works for lacp mode if have at least one,
      otherwise it works as usual. */
   u8 numa_only;
+  u8 gso;
 
   /* How many slaves on local numa node are there in lacp mode? */
   word n_numa_slaves;
@@ -353,6 +352,12 @@ typedef struct
 typedef void (*lacp_enable_disable_func) (vlib_main_t * vm, bond_if_t * bif,
                                          slave_if_t * sif, u8 enable);
 
+typedef struct
+{
+  u32 partner_state;
+  u32 actor_state;
+} lacp_stats_t;
+
 typedef struct
 {
   /* pool of bonding interfaces */
@@ -380,7 +385,7 @@ typedef struct
 
   bond_per_thread_data_t *per_thread_data;
 
-  u32 **stats;
+  lacp_stats_t **stats;
 } bond_main_t;
 
 /* bond packet trace capture */