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:
parent
4b0f8c7a67
commit
ec9ada188b
@ -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) = @_;
|
||||
|
Loading…
Reference in New Issue
Block a user