aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/teib
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2020-12-13 21:47:40 +0100
committerDave Barach <openvpp@barachs.net>2020-12-14 12:14:21 +0000
commitb2c31b685fd2cf28436ca32bc93e23eb24c74878 (patch)
treedc0a1b1ff784445b2cbb0f9b2c07b5bcb4f5a5d0 /src/vnet/teib
parent62c25abaa3e93be5815172d391295a6ab0390122 (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/vnet/teib')
-rw-r--r--src/vnet/teib/teib.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/vnet/teib/teib.c b/src/vnet/teib/teib.c
index 69ed416b41a..dc0c99b1dbe 100644
--- a/src/vnet/teib/teib.c
+++ b/src/vnet/teib/teib.c
@@ -317,10 +317,10 @@ teib_walk (teib_walk_cb_t fn, void *ctx)
index_t tei;
/* *INDENT-OFF* */
- pool_foreach_index(tei, teib_pool,
- ({
+ pool_foreach_index (tei, teib_pool)
+ {
fn(tei, ctx);
- }));
+ }
/* *INDENT-ON* */
}
@@ -330,11 +330,11 @@ teib_walk_itf (u32 sw_if_index, teib_walk_cb_t fn, void *ctx)
index_t tei;
/* *INDENT-OFF* */
- pool_foreach_index(tei, teib_pool,
- ({
+ pool_foreach_index (tei, teib_pool)
+ {
if (sw_if_index == teib_entry_get_sw_if_index(teib_entry_get(tei)))
fn(tei, ctx);
- }));
+ }
/* *INDENT-ON* */
}
@@ -345,12 +345,12 @@ teib_walk_itf_proto (u32 sw_if_index,
index_t tei;
/* *INDENT-OFF* */
- pool_foreach_index(tei, teib_pool,
- ({
+ pool_foreach_index (tei, teib_pool)
+ {
if (sw_if_index == teib_entry_get_sw_if_index(teib_entry_get(tei)) &&
af == teib_entry_get_af(teib_entry_get(tei)))
fn(tei, ctx);
- }));
+ }
/* *INDENT-ON* */
}