tap: add function to set speed 84/28684/3
authorAlexander Chernavin <achernavin@netgate.com>
Fri, 4 Sep 2020 13:24:20 +0000 (09:24 -0400)
committerNeale Ranns <nranns@cisco.com>
Mon, 9 Nov 2020 09:46:58 +0000 (09:46 +0000)
commita6c34a19dffc75a15aea5356b551d2b6bba570c0
tree6ce7b2aa481d205f30c55080ce1bedb0630be661
parentf6422ffbc82c55f50d06c8c7a2e230db7001ee35
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
src/vnet/devices/tap/tap.c
src/vnet/devices/tap/tap.h