X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fbier%2Fbier_disp_entry.c;h=c1437768dd6782fbd9d1780566a82d75fe3edf46;hb=56bc738dc;hp=2fe2e4ab9095ec37494869206c7b032907570420;hpb=9128637ee8f7b0d903551f165a1447d427e8dd19;p=vpp.git diff --git a/src/vnet/bier/bier_disp_entry.c b/src/vnet/bier/bier_disp_entry.c index 2fe2e4ab909..c1437768dd6 100644 --- a/src/vnet/bier/bier_disp_entry.c +++ b/src/vnet/bier/bier_disp_entry.c @@ -13,11 +13,11 @@ * limitations under the License. */ /** - * bier_dispositon : The BIER dispositon object + * bier_disposition : The BIER disposition object * - * A BIER dispositon object is present in the IP mcast output list - * and represents the dispositon of a BIER bitmask. After BIER header - * dispositon the packet is forward within the appropriate/specifid + * A BIER disposition object is present in the IP mcast output list + * and represents the disposition of a BIER bitmask. After BIER header + * disposition the packet is forward within the appropriate/specified * BIER table */ @@ -315,7 +315,7 @@ bier_disp_entry_dpo_unlock (dpo_id_t *dpo) static void bier_disp_entry_dpo_mem_show (void) { - fib_show_memory_usage("BIER dispositon", + fib_show_memory_usage("BIER disposition", pool_elts(bier_disp_entry_pool), pool_len(bier_disp_entry_pool), sizeof(bier_disp_entry_t)); @@ -375,8 +375,15 @@ show_bier_disp_entry (vlib_main_t * vm, } else { - vlib_cli_output(vm, "%U", format_bier_disp_entry, bdei, 1, - BIER_SHOW_DETAIL); + if (pool_is_free_index(bier_disp_entry_pool, bdei)) + { + vlib_cli_output(vm, "No such BIER disp entry: %d", bdei); + } + else + { + vlib_cli_output(vm, "%U", format_bier_disp_entry, bdei, 1, + BIER_SHOW_DETAIL); + } } return (NULL); }