From 84e4ffeaf1c0988752d755faf8b5934f0a0df873 Mon Sep 17 00:00:00 2001 From: Pavel Date: Wed, 17 Feb 2016 15:10:04 +0100 Subject: Added MTU information to sw_interface_dump Change-Id: Ie69837fd6903b715cb7b840b67c869a9b12c84a7 Signed-off-by: Pavel --- vpp/api/api.c | 1 + vpp/api/vpe.api | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'vpp/api') diff --git a/vpp/api/api.c b/vpp/api/api.c index e30240c4..f51fa0a3 100644 --- a/vpp/api/api.c +++ b/vpp/api/api.c @@ -2374,6 +2374,7 @@ static void send_sw_interface_details (vpe_api_main_t * am, VNET_HW_INTERFACE_FLAG_DUPLEX_SHIFT); mp->link_speed = ((hi->flags & VNET_HW_INTERFACE_FLAG_SPEED_MASK) >> VNET_HW_INTERFACE_FLAG_SPEED_SHIFT); + mp->link_mtu = ntohs(hi->max_packet_bytes); strncpy ((char *) mp->interface_name, (char *) interface_name, ARRAY_LEN(mp->interface_name)-1); diff --git a/vpp/api/vpe.api b/vpp/api/vpe.api index 05ba5567..2af4f503 100644 --- a/vpp/api/vpe.api +++ b/vpp/api/vpe.api @@ -51,6 +51,7 @@ define want_interface_events_reply { @param interface_name - name of the interface @param link_duplex - 1 if half duplex, 2 if full duplex @param link_speed - 1 = 10M, 2 = 100M, 4 = 1G, 8 = 10G, 16 = 40G, 32 = 100G + @param link_MTU - max. transmittion unit @param sub_if_id - A number 0-N to uniquely identify this subif on super if @param sub_dot1ad - 0 = dot1q, 1=dot1ad @param sub_number_of_tags - Number of tags (0 - 2) @@ -88,6 +89,9 @@ manual_java define sw_interface_details { /* 1 = 10M, 2 = 100M, 4 = 1G, 8 = 10G, 16 = 40G, 32 = 100G */ u8 link_speed; + + /* MTU */ + u16 link_mtu; /* Subinterface ID. A number 0-N to uniquely identify this subinterface under the super interface*/ u32 sub_id; -- cgit 1.2.3-korg