From 288e8930ee7f1cf4980c06c167ef4e0cdf559528 Mon Sep 17 00:00:00 2001 From: Juraj Sloboda Date: Tue, 6 Dec 2016 21:25:19 +0100 Subject: Make table chain deletion optional in classifier API (VPP-206) Change-Id: If30c0f6d5de34943bc399b3412c2d10847538c3c Signed-off-by: Juraj Sloboda --- vpp/vpp-api/api.c | 2 +- vpp/vpp-api/custom_dump.c | 2 +- vpp/vpp-api/vpe.api | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'vpp') diff --git a/vpp/vpp-api/api.c b/vpp/vpp-api/api.c index 7e90f74d..967e6327 100644 --- a/vpp/vpp-api/api.c +++ b/vpp/vpp-api/api.c @@ -2499,7 +2499,7 @@ static void vl_api_classify_add_del_table_t_handler (cm, mp->mask, nbuckets, memory_size, skip_n_vectors, match_n_vectors, next_table_index, miss_next_index, &table_index, - current_data_flag, current_data_offset, mp->is_add); + current_data_flag, current_data_offset, mp->is_add, mp->del_chain); out: /* *INDENT-OFF* */ diff --git a/vpp/vpp-api/custom_dump.c b/vpp/vpp-api/custom_dump.c index 82195f60..bfebf49f 100644 --- a/vpp/vpp-api/custom_dump.c +++ b/vpp/vpp-api/custom_dump.c @@ -1179,7 +1179,7 @@ static void *vl_api_classify_add_del_table_t_print if (mp->is_add == 0) { s = format (s, "table %d ", ntohl (mp->table_index)); - s = format (s, "del "); + s = format (s, "%s ", mp->del_chain ? "del-chain" : "del"); } else { diff --git a/vpp/vpp-api/vpe.api b/vpp/vpp-api/vpe.api index b1760fd1..537f5688 100644 --- a/vpp/vpp-api/vpe.api +++ b/vpp/vpp-api/vpe.api @@ -1211,6 +1211,7 @@ define bd_ip_mac_add_del_reply @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request @param is_add- if non-zero add the table, else delete it + @param del_chain - if non-zero delete the whole chain of tables @param table_index - if add, reuturns index of the created table, else specifies the table to delete @param nbuckets - number of buckets when adding a table @param memory_size - memory size when adding a table @@ -1235,6 +1236,7 @@ define classify_add_del_table u32 client_index; u32 context; u8 is_add; + u8 del_chain; u32 table_index; u32 nbuckets; u32 memory_size; -- cgit