Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
bonding: Add /if/lacp/<bond-sw_if_index>/<slave-sw_if_index>/partner-state
[vpp.git]
/
src
/
vnet
/
bonding
/
node.h
diff --git
a/src/vnet/bonding/node.h
b/src/vnet/bonding/node.h
index
4c91200
..
8ead022
100644
(file)
--- a/
src/vnet/bonding/node.h
+++ b/
src/vnet/bonding/node.h
@@
-350,6
+350,12
@@
typedef struct
typedef void (*lacp_enable_disable_func) (vlib_main_t * vm, bond_if_t * bif,
slave_if_t * sif, u8 enable);
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 */
typedef struct
{
/* pool of bonding interfaces */
@@
-377,7
+383,7
@@
typedef struct
bond_per_thread_data_t *per_thread_data;
bond_per_thread_data_t *per_thread_data;
-
u32
**stats;
+
lacp_stats_t
**stats;
} bond_main_t;
/* bond packet trace capture */
} bond_main_t;
/* bond packet trace capture */