X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fioam%2Flib-vxlan-gpe%2Fvxlan_gpe_ioam.c;h=108b0c0765b2ee40bcdbde34a0cb1779be475ed4;hb=b2c31b685fd2cf28436ca32bc93e23eb24c74878;hp=5a59e75bf0164d8c3e62830317bac1550c92ae1b;hpb=62c25abaa3e93be5815172d391295a6ab0390122;p=vpp.git diff --git a/src/plugins/ioam/lib-vxlan-gpe/vxlan_gpe_ioam.c b/src/plugins/ioam/lib-vxlan-gpe/vxlan_gpe_ioam.c index 5a59e75bf01..108b0c0765b 100644 --- a/src/plugins/ioam/lib-vxlan-gpe/vxlan_gpe_ioam.c +++ b/src/plugins/ioam/lib-vxlan-gpe/vxlan_gpe_ioam.c @@ -187,11 +187,10 @@ vxlan_gpe_clear_output_feature_on_all_intfs (vlib_main_t * vm) vnet_main_t *vnm = vnet_get_main (); vnet_interface_main_t *im = &vnm->interface_main; - pool_foreach (si, im->sw_interfaces, ( - { - vxlan_gpe_set_clear_output_feature_on_intf - (vm, si->sw_if_index, 0); - })); + pool_foreach (si, im->sw_interfaces) + { + vxlan_gpe_set_clear_output_feature_on_intf (vm, si->sw_if_index, 0); + } return; } @@ -377,17 +376,12 @@ vxlan_gpe_refresh_output_feature_on_all_dest (void) i = vec_len (hm->bool_ref_by_sw_if_index); vec_free (hm->bool_ref_by_sw_if_index); vec_validate_init_empty (hm->bool_ref_by_sw_if_index, i, ~0); - pool_foreach (t, hm->dst_tunnels, ( - { - vxlan_gpe_enable_disable_ioam_for_dest - (hm->vlib_main, - t->dst_addr, - t->outer_fib_index, - (t->fp_proto == FIB_PROTOCOL_IP4), 1 - /* is_add */ - ); - } - )); + pool_foreach (t, hm->dst_tunnels) + { + vxlan_gpe_enable_disable_ioam_for_dest + (hm->vlib_main, t->dst_addr, t->outer_fib_index, + (t->fp_proto == FIB_PROTOCOL_IP4), 1 /* is_add */ ); + } return; } @@ -621,16 +615,14 @@ int vxlan_gpe_ioam_disable_for_dest return 0; } - pool_foreach (t, hm->dst_tunnels, ( - { - vxlan_gpe_enable_disable_ioam_for_dest - (hm->vlib_main, - t->dst_addr, - t->outer_fib_index, - (t->fp_proto == - FIB_PROTOCOL_IP4), 1 /* is_add */ ); - } - )); + pool_foreach (t, hm->dst_tunnels) + { + vxlan_gpe_enable_disable_ioam_for_dest + (hm->vlib_main, + t->dst_addr, + t->outer_fib_index, + (t->fp_proto == FIB_PROTOCOL_IP4), 1 /* is_add */ ); + } vxlan_gpe_clear_output_feature_on_select_intfs (); return (0);