X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=vnet%2Fvnet%2Fdpo%2Fdrop_dpo.c;h=048518c918bab2e6e6c4a99345d6e5b5ae57dfdf;hb=5e575b1d59a5a4c1590ca09d6383a876fb9fdd25;hp=62f56488a01b75fddaf529b6c9a8b35337c9db35;hpb=553d808fc44e61846e4cda108083dd88beb338e3;p=vpp.git diff --git a/vnet/vnet/dpo/drop_dpo.c b/vnet/vnet/dpo/drop_dpo.c index 62f56488a01..048518c918b 100644 --- a/vnet/vnet/dpo/drop_dpo.c +++ b/vnet/vnet/dpo/drop_dpo.c @@ -55,7 +55,7 @@ format_drop_dpo (u8 *s, va_list *ap) CLIB_UNUSED(index_t index) = va_arg(ap, index_t); CLIB_UNUSED(u32 indent) = va_arg(ap, u32); - return (format(s, "dpo-drop")); + return (format(s, "dpo-drop %U", format_dpo_proto, index)); } const static dpo_vft_t drop_vft = { @@ -86,11 +86,17 @@ const static char* const drop_mpls_nodes[] = "mpls-drop", NULL, }; +const static char* const drop_ethernet_nodes[] = +{ + "error-drop", + NULL, +}; const static char* const * const drop_nodes[DPO_PROTO_NUM] = { [DPO_PROTO_IP4] = drop_ip4_nodes, [DPO_PROTO_IP6] = drop_ip6_nodes, [DPO_PROTO_MPLS] = drop_mpls_nodes, + [DPO_PROTO_ETHERNET] = drop_ethernet_nodes, }; void