summaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/tap/tap.h
diff options
context:
space:
mode:
authorAlexander Chernavin <achernavin@netgate.com>2020-09-04 09:24:20 -0400
committerNeale Ranns <nranns@cisco.com>2020-11-09 09:46:58 +0000
commita6c34a19dffc75a15aea5356b551d2b6bba570c0 (patch)
tree6ce7b2aa481d205f30c55080ce1bedb0630be661 /src/vnet/devices/tap/tap.h
parentf6422ffbc82c55f50d06c8c7a2e230db7001ee35 (diff)
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 <achernavin@netgate.com> Change-Id: I259a52b736022bdd805e8d92dcd1bfd5c58f6f96
Diffstat (limited to 'src/vnet/devices/tap/tap.h')
-rw-r--r--src/vnet/devices/tap/tap.h2
1 files changed, 1 insertions, 1 deletions
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_ */