diff options
author | Florin Coras <fcoras@cisco.com> | 2017-11-05 23:07:07 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2017-11-06 21:45:22 +0000 |
commit | c97a7398fc465c480a3ac66cf4b0f91a034ed564 (patch) | |
tree | 31467dcc219751cd89903e83b66c3315e31be947 /src/vnet/session/mma_template.c | |
parent | a3d933c87f146df801aa3947c25b6f1b2538f847 (diff) |
session: add rule tags
Change-Id: Id5ebb410f509ac4c83d60e48efd54e00035e5ce6
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/mma_template.c')
-rw-r--r-- | src/vnet/session/mma_template.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/vnet/session/mma_template.c b/src/vnet/session/mma_template.c index 6efb2ff61ab..248ced61451 100644 --- a/src/vnet/session/mma_template.c +++ b/src/vnet/session/mma_template.c @@ -94,16 +94,16 @@ RT (mma_rules_table_lookup) (RTT (mma_rules_table) * srt, u32 rv; int i; - ASSERT (rule_index != SESSION_RULES_TABLE_INVALID_INDEX); + ASSERT (rule_index != MMA_TABLE_INVALID_INDEX); rp = RT (mma_rules_table_get_rule) (srt, rule_index); ASSERT (rp); if (!RT (rule_is_match_for_key) (key, rp)) - return SESSION_RULES_TABLE_INVALID_INDEX; + return MMA_TABLE_INVALID_INDEX; for (i = 0; i < vec_len (rp->next_indices); i++) { rv = RT (mma_rules_table_lookup) (srt, key, rp->next_indices[i]); - if (rv != SESSION_RULES_TABLE_INVALID_INDEX) + if (rv != MMA_TABLE_INVALID_INDEX) return (rv); } return (rp->action_index); @@ -118,16 +118,16 @@ RT (mma_rules_table_lookup_rule) (RTT (mma_rules_table) * srt, u32 rv; int i; - ASSERT (rule_index != SESSION_RULES_TABLE_INVALID_INDEX); + ASSERT (rule_index != MMA_TABLE_INVALID_INDEX); rp = RT (mma_rules_table_get_rule) (srt, rule_index); ASSERT (rp); if (!RT (rule_is_match_for_key) (key, rp)) - return SESSION_RULES_TABLE_INVALID_INDEX; + return MMA_TABLE_INVALID_INDEX; for (i = 0; i < vec_len (rp->next_indices); i++) { rv = RT (mma_rules_table_lookup_rule) (srt, key, rp->next_indices[i]); - if (rv != SESSION_RULES_TABLE_INVALID_INDEX) + if (rv != MMA_TABLE_INVALID_INDEX) return (rv); } return rule_index; @@ -214,15 +214,15 @@ RT (mma_rules_table_del_rule) (RTT (mma_rules_table) * srt, u32 rv; int i; - ASSERT (rule_index != SESSION_RULES_TABLE_INVALID_INDEX); + ASSERT (rule_index != MMA_TABLE_INVALID_INDEX); rp = RT (mma_rules_table_get_rule) (srt, rule_index); if (!RT (rule_is_match_for_key) (&rule->match, rp)) - return SESSION_RULES_TABLE_INVALID_INDEX; + return MMA_TABLE_INVALID_INDEX; if (RT (rule_is_exact_match) (rule, rp)) { if (rule_index == srt->root_index) - rp->action_index = SESSION_RULES_TABLE_INVALID_INDEX; + rp->action_index = MMA_TABLE_INVALID_INDEX; return 1; } for (i = 0; i < vec_len (rp->next_indices); i++) @@ -257,7 +257,7 @@ RT (mma_rules_table_del_rule) (RTT (mma_rules_table) * srt, else if (rv == 0) return rv; } - return SESSION_RULES_TABLE_INVALID_INDEX; + return MMA_TABLE_INVALID_INDEX; } /* |