diff options
author | Andrew Yourtchenko <ayourtch@gmail.com> | 2017-08-22 13:10:01 +0200 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2017-08-24 21:32:18 +0000 |
commit | 778df28c2a1520f58c293700c578bdd73e61cecf (patch) | |
tree | ac94442a99a68605d24eef6802a17e242b6e3d03 /src/vlib/vlib_process_doc.h | |
parent | dff9314f6f5c88b4320ec5de33fb40ac91632a0d (diff) |
vl_api_sw_interface_set_mtu_t_handler: fix assert in vnet_get_hw_interface
The handler was calling the routines with sw_if_index instead of hw_if_index,
fix that by an extra call to vnet_get_sw_interface, and check that the interface
type is VNET_SW_INTERFACE_TYPE_HARDWARE before proceeding.
Change-Id: I4a6f65f44e250ecdb2b72d2693c9d7db5a52b966
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Diffstat (limited to 'src/vlib/vlib_process_doc.h')
0 files changed, 0 insertions, 0 deletions