diff options
author | Damjan Marion <damarion@cisco.com> | 2020-12-13 21:47:40 +0100 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2020-12-14 12:14:21 +0000 |
commit | b2c31b685fd2cf28436ca32bc93e23eb24c74878 (patch) | |
tree | dc0a1b1ff784445b2cbb0f9b2c07b5bcb4f5a5d0 /src/plugins/lb/api.c | |
parent | 62c25abaa3e93be5815172d391295a6ab0390122 (diff) |
misc: move to new pool_foreach macros
Type: refactor
Change-Id: Ie67dc579e88132ddb1ee4a34cb69f96920101772
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/lb/api.c')
-rw-r--r-- | src/plugins/lb/api.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/lb/api.c b/src/plugins/lb/api.c index 176da24ce16..e44f815cb9c 100644 --- a/src/plugins/lb/api.c +++ b/src/plugins/lb/api.c @@ -177,7 +177,7 @@ vl_api_lb_vip_dump_t_handler lb_vip_t *vip = 0; /* construct vip list */ - pool_foreach(vip, lbm->vips, { + pool_foreach (vip, lbm->vips) { /* Hide placeholder VIP */ if (vip != lbm->vips) { msg_size = sizeof (*rmp); @@ -199,7 +199,7 @@ vl_api_lb_vip_dump_t_handler vl_api_send_msg (reg, (u8 *) rmp); } - }); + } } @@ -216,7 +216,7 @@ static void send_lb_as_details /* construct as list under this vip */ lb_as_t *as; - pool_foreach(as_index, vip->as_indexes, { + pool_foreach (as_index, vip->as_indexes) { /* Hide placeholder As for specific VIP */ if (*as_index != 0) { as = &lbm->ass[*as_index]; @@ -237,7 +237,7 @@ static void send_lb_as_details vl_api_send_msg (reg, (u8 *) rmp); asindex++; } - }); + } } @@ -261,8 +261,8 @@ vl_api_lb_as_dump_t_handler dump_all = (prefix.ip6.as_u64[0] == 0) && (prefix.ip6.as_u64[1] == 0); /* *INDENT-OFF* */ - pool_foreach(vip, lbm->vips, - ({ + pool_foreach (vip, lbm->vips) + { if ( dump_all || ((prefix.as_u64[0] == vip->prefix.as_u64[0]) && (prefix.as_u64[1] == vip->prefix.as_u64[1]) @@ -271,7 +271,7 @@ vl_api_lb_as_dump_t_handler { send_lb_as_details(reg, mp->context, vip); } - })); + } /* *INDENT-ON* */ } |