5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2025-01-11 13:17:36 +03:00

Network : add tap_rate_limit

Moved from pve-bridge

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2013-03-05 10:23:42 +01:00 committed by Dietmar Maurer
parent 4b0f8c7a67
commit ec9ada188b

View File

@ -38,6 +38,15 @@ sub setup_tc_rate_limit {
}
}
sub tap_rate_limit {
my ($iface, $rate) = @_;
my $debug = 0;
$rate = int($rate*1024*1024);
my $burst = 1024*1024;
setup_tc_rate_limit($iface, $rate, $burst, $debug);
}
sub copy_bridge_config {
my ($br0, $br1) = @_;