From c4ae0fffb5d147d71b9f943305c0f28f61655a6f Mon Sep 17 00:00:00 2001 From: Paul Vinciguerra Date: Tue, 28 Apr 2020 17:32:23 -0400 Subject: interface: fix interface_types.api enums Unspecified c enums start at 0. Unspecified api enums start at 1. Type: fix Change-Id: I431c11302c0ad897a968134ce90496af3db7bb86 Signed-off-by: Paul Vinciguerra --- src/vnet/interface_types.api | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/vnet') diff --git a/src/vnet/interface_types.api b/src/vnet/interface_types.api index a6178396e79..2cdcc8bda5a 100644 --- a/src/vnet/interface_types.api +++ b/src/vnet/interface_types.api @@ -25,11 +25,10 @@ enum if_status_flags /* Per protocol MTU */ enum mtu_proto { - MTU_PROTO_API_L3, /* Default payload MTU (without L2 headers) */ - MTU_PROTO_API_IP4, /* Per-protocol MTUs overriding default */ - MTU_PROTO_API_IP6, - MTU_PROTO_API_MPLS, - MTU_PROTO_API_N, + MTU_PROTO_API_L3 = 0, /* Default payload MTU (without L2 headers) */ + MTU_PROTO_API_IP4 = 1, /* Per-protocol MTUs overriding default */ + MTU_PROTO_API_IP6 = 2, + MTU_PROTO_API_MPLS = 3, }; enum link_duplex @@ -65,10 +64,10 @@ enum rx_mode enum if_type { /* A hw interface. */ - IF_API_TYPE_HARDWARE, + IF_API_TYPE_HARDWARE = 0, /* A sub-interface. */ - IF_API_TYPE_SUB, - IF_API_TYPE_P2P, - IF_API_TYPE_PIPE, + IF_API_TYPE_SUB = 1, + IF_API_TYPE_P2P = 2, + IF_API_TYPE_PIPE = 3, }; -- cgit 1.2.3-korg