X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fnat%2Fnat.c;h=05c7afc2b16f16bb57ce5096b979a95295da33af;hb=f0ca1e8d92114582ec9142bd15a40f1eb0102793;hp=0694c348c1246814e9cb68451af7c9f132f9ae89;hpb=b2c31b685fd2cf28436ca32bc93e23eb24c74878;p=vpp.git diff --git a/src/plugins/nat/nat.c b/src/plugins/nat/nat.c index 0694c348c12..05c7afc2b16 100644 --- a/src/plugins/nat/nat.c +++ b/src/plugins/nat/nat.c @@ -1491,10 +1491,10 @@ nat44_add_del_lb_static_mapping (ip4_address_t e_addr, u16 e_port, if (sm->num_workers > 1) { /* *INDENT-OFF* */ - clib_bitmap_foreach (i, bitmap, - ({ + clib_bitmap_foreach (i, bitmap) + { vec_add1(m->workers, i); - })); + } /* *INDENT-ON* */ } } @@ -1739,7 +1739,7 @@ nat44_lb_static_mapping_add_del_local (ip4_address_t e_addr, u16 e_port, if (sm->num_workers > 1) { /* *INDENT-OFF* */ - clib_bitmap_foreach (i, bitmap, ({ vec_add1(m->workers, i); })); + clib_bitmap_foreach (i, bitmap) { vec_add1(m->workers, i); } /* *INDENT-ON* */ } @@ -2467,13 +2467,13 @@ snat_set_workers (uword * bitmap) vec_free (sm->workers); /* *INDENT-OFF* */ - clib_bitmap_foreach (i, bitmap, - ({ + clib_bitmap_foreach (i, bitmap) + { vec_add1(sm->workers, i); sm->per_thread_data[sm->first_worker_index + i].snat_thread_index = j; sm->per_thread_data[sm->first_worker_index + i].thread_index = i; j++; - })); + } /* *INDENT-ON* */ sm->port_per_thread = (0xffff - 1024) / _vec_len (sm->workers);