Add lcp_itf_pair_sync_state_hw() and only walk relevant int+subints, not all interfaces

This commit is contained in:
Pim van Pelt
2021-09-08 19:50:50 +00:00
parent 8b3356cd86
commit ba4d9d1a3c
2 changed files with 48 additions and 12 deletions

View File

@ -203,13 +203,15 @@ void lcp_itf_ip6_add_del_interface_addr (ip6_main_t *im, uword opaque,
u32 address_length,
u32 if_address_index, u32 is_del);
/* Sync all state from VPP to a specific Linux device, or all of them.
/* Sync all state from VPP to a specific Linux device, all sub-interfaces
* of a hardware interface, or all interfaces in the system.
*
* Note: in some circumstances, this syncer will (have to) make changes to
* the VPP interface, for example if its MTU is greater than its parent.
* See the function for rationale.
*/
void lcp_itf_pair_sync_state (lcp_itf_pair_t *lip);
void lcp_itf_pair_sync_state_hw (vnet_hw_interface_t *hi);
void lcp_itf_pair_sync_state_all ();
/*