From a6c34a19dffc75a15aea5356b551d2b6bba570c0 Mon Sep 17 00:00:00 2001 From: Alexander Chernavin Date: Fri, 4 Sep 2020 09:24:20 -0400 Subject: tap: add function to set speed A plugin can set the speed on a host interface making it possible for host applications to be aware of the actual interface speed, not the one that the driver reports by default. With this change, add a function to set speed on a host interface. Type: feature Signed-off-by: Alexander Chernavin Change-Id: I259a52b736022bdd805e8d92dcd1bfd5c58f6f96 --- src/vnet/devices/tap/tap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vnet/devices/tap/tap.h') diff --git a/src/vnet/devices/tap/tap.h b/src/vnet/devices/tap/tap.h index 42283281448..2efaa511a49 100644 --- a/src/vnet/devices/tap/tap.h +++ b/src/vnet/devices/tap/tap.h @@ -109,7 +109,7 @@ tap_csum_offload_enable_disable (vlib_main_t * vm, u32 sw_if_index, int enable_disable); int tap_dump_ifs (tap_interface_details_t ** out_tapids); int tap_set_carrier (u32 hw_if_index, u32 carrier_up); - +int tap_set_speed (u32 hw_if_index, u32 speed); #endif /* _VNET_DEVICES_VIRTIO_TAP_H_ */ -- cgit 1.2.3-korg