aboutsummaryrefslogtreecommitdiffstats
path: root/vpp
diff options
context:
space:
mode:
authorPavel <pavel.kotucek@pantheon.tech>2016-02-17 15:10:04 +0100
committerPavel Kotucek <pavel.kotucek@pantheon.tech>2016-02-22 09:45:02 +0100
commit84e4ffeaf1c0988752d755faf8b5934f0a0df873 (patch)
treea3e26cf02b44dc3461d39cc80318b059c66be3b6 /vpp
parente1cfcbcda62a94caffc3cf2a40f3440d3752f9d9 (diff)
Added MTU information to sw_interface_dump
Change-Id: Ie69837fd6903b715cb7b840b67c869a9b12c84a7 Signed-off-by: Pavel <pavel.kotucek@pantheon.tech>
Diffstat (limited to 'vpp')
-rw-r--r--vpp/api/api.c1
-rw-r--r--vpp/api/vpe.api4
2 files changed, 5 insertions, 0 deletions
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;