|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
30 #include <vnet/bonding/bond.api_enum.h>
31 #include <vnet/bonding/bond.api_types.h>
33 #define REPLY_MSG_ID_BASE msg_id_base
43 vl_api_bond_delete_reply_t *rmp;
60 ap->
id = ntohl (mp->
id);
69 ap->
lb = ntohl (mp->
lb);
92 ap->
id = ntohl (mp->
id);
101 ap->
lb = ntohl (mp->
lb);
168 vl_api_sw_interface_set_bond_weight_reply_t *rmp;
179 REPLY_MACRO (VL_API_SW_INTERFACE_SET_BOND_WEIGHT_REPLY);
186 vl_api_bond_detach_slave_reply_t *rmp;
203 vl_api_bond_detach_member_reply_t *rmp;
229 mp->
id = htonl (bond_if->
id);
234 mp->
lb = htonl (bond_if->
lb);
281 mp->
id = htonl (bond_if->
id);
286 mp->
lb = htonl (bond_if->
lb);
303 u32 filter_sw_if_index;
310 if (filter_sw_if_index != ~0)
319 if ((filter_sw_if_index == ~0) ||
430 #include <vnet/bonding/bond.api.c>
static void vl_api_sw_bond_interface_dump_t_handler(vl_api_sw_bond_interface_dump_t *mp)
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t sw_if_index
void bond_create_if(vlib_main_t *vm, bond_create_if_args_t *args)
Reply for slave dump request.
vl_api_interface_index_t sw_if_index
#define VALIDATE_SW_IF_INDEX(mp)
static vl_api_registration_t * vl_api_client_index_to_registration(u32 index)
string interface_name[64]
static void vl_api_sw_member_interface_dump_t_handler(vl_api_sw_member_interface_dump_t *mp)
vl_api_interface_index_t sw_if_index
static void vl_api_bond_detach_slave_t_handler(vl_api_bond_detach_slave_t *mp)
vl_api_interface_index_t sw_if_index[default=0xffffffff]
static void vl_api_sw_interface_bond_dump_t_handler(vl_api_sw_interface_bond_dump_t *mp)
Initialize a new bond interface with the given paramters.
#define REPLY_MACRO2(t, body)
vl_api_mac_address_t mac_address
#define clib_memcpy(d, s, n)
static void vl_api_send_msg(vl_api_registration_t *rp, u8 *elem)
vl_api_interface_index_t sw_if_index
string interface_name[64]
static void vl_api_bond_add_member_t_handler(vl_api_bond_add_member_t *mp)
Initialize a new bond interface with the given paramters.
vl_api_interface_index_t sw_if_index
int bond_delete_if(vlib_main_t *vm, u32 sw_if_index)
static clib_error_t * bond_api_hookup(vlib_main_t *vm)
vl_api_interface_index_t sw_if_index
u32 id[default=0xFFFFFFFF]
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
member interface details struct
string interface_name[64]
Reply for bond create reply.
vl_api_interface_index_t sw_if_index
Dump bond interfaces request.
void bond_set_intf_weight(vlib_main_t *vm, bond_set_intf_weight_args_t *args)
static void bond_send_sw_bond_interface_details(vpe_api_main_t *am, vl_api_registration_t *reg, bond_interface_details_t *bond_if, u32 context)
static void bond_send_member_interface_details(vpe_api_main_t *am, vl_api_registration_t *reg, member_interface_details_t *member_if, u32 context)
An API client registration, only in vpp/vlib.
static void setup_message_id_table(api_main_t *am)
static void vl_api_bond_enslave_t_handler(vl_api_bond_enslave_t *mp)
static void bond_send_sw_interface_details(vpe_api_main_t *am, vl_api_registration_t *reg, bond_interface_details_t *bond_if, u32 context)
void bond_detach_member(vlib_main_t *vm, bond_detach_member_args_t *args)
Dump bond interfaces request.
vl_api_interface_index_t sw_if_index
VLIB_API_INIT_FUNCTION(bond_api_hookup)
vl_api_interface_index_t bond_sw_if_index
static void vl_api_bond_delete_t_handler(vl_api_bond_delete_t *mp)
#define BAD_SW_IF_INDEX_LABEL
vl_api_interface_index_t sw_if_index
vl_api_interface_index_t bond_sw_if_index
vl_api_mac_address_t mac_address
#define vec_free(V)
Free vector's memory (no header).
static void vl_api_sw_interface_set_bond_weight_t_handler(vl_api_sw_interface_set_bond_weight_t *mp)
Reply for bond dump request.
Reply for bond create2 reply.
string interface_name[64]
Reply for member dump request.
int bond_dump_member_ifs(member_interface_details_t **out_memberifs, u32 bond_sw_if_index)
static void vl_api_bond_detach_member_t_handler(vl_api_bond_detach_member_t *mp)
#define vec_foreach(var, vec)
Vector iterator.
u32 id[default=0xFFFFFFFF]
void mac_address_decode(const u8 *in, mac_address_t *out)
Conversion functions to/from (decode/encode) API types to VPP internal types.
int bond_dump_ifs(bond_interface_details_t **out_bondifs)
vl_api_interface_index_t sw_if_index
#define REPLY_MSG_ID_BASE
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
static void vl_api_sw_interface_slave_dump_t_handler(vl_api_sw_interface_slave_dump_t *mp)
static vlib_main_t * vlib_get_main(void)
Initialize a new bond interface with the given paramters.
static void vl_api_bond_create_t_handler(vl_api_bond_create_t *mp)
BOND interface details struct.
static void bond_send_sw_member_interface_details(vpe_api_main_t *am, vl_api_registration_t *reg, member_interface_details_t *member_if, u32 context)
Interface set bond weight.
vl_api_interface_index_t sw_if_index
Reply for bond add_member reply.
void bond_add_member(vlib_main_t *vm, bond_add_member_args_t *args)
Initialize a new bond interface with the given paramters.
vl_api_interface_index_t sw_if_index
static void vl_api_bond_create2_t_handler(vl_api_bond_create2_t *mp)
vl_api_interface_index_t sw_if_index
Reply for bond dump request.
vl_api_interface_index_t sw_if_index
vpe_api_main_t vpe_api_main
void * vl_msg_api_alloc(int nbytes)
Reply for bond enslave reply.