projects
/
pve-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a68760b
)
support bond_xmit_hash_policy
author
Dietmar Maurer
<dietmar@proxmox.com>
Mon, 30 Dec 2013 07:20:52 +0000
(08:20 +0100)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Mon, 30 Dec 2013 07:20:52 +0000
(08:20 +0100)
data/PVE/INotify.pm
patch
|
blob
|
blame
|
history
diff --git
a/data/PVE/INotify.pm
b/data/PVE/INotify.pm
index
30290ca
..
6924895
100644
(file)
--- a/
data/PVE/INotify.pm
+++ b/
data/PVE/INotify.pm
@@
-821,6
+821,8
@@
sub read_etc_network_interfaces {
$d->{$id} = $value;
} elsif ($id eq 'bond_miimon') {
$d->{$id} = $value;
$d->{$id} = $value;
} elsif ($id eq 'bond_miimon') {
$d->{$id} = $value;
+ } elsif ($id eq 'bond_xmit_hash_policy') {
+ $d->{$id} = $value;
} elsif ($id eq 'bond_mode') {
# always use names
foreach my $bm (keys %$bond_modes) {
} elsif ($id eq 'bond_mode') {
# always use names
foreach my $bm (keys %$bond_modes) {
@@
-976,6
+978,12
@@
sub __interface_to_string {
$raw .= "\tbond_mode $v\n";
$done->{'bond_mode'} = 1;
$raw .= "\tbond_mode $v\n";
$done->{'bond_mode'} = 1;
+ if ($d->{'bond_mode'} && $d->{'bond_xmit_hash_policy'} &&
+ ($d->{'bond_mode'} eq 'balance-xor' || $d->{'bond_mode'} eq '802.3ad')) {
+ $raw .= "\tbond_xmit_hash_policy $d->{'bond_xmit_hash_policy'}\n";
+ }
+ $done->{'bond_xmit_hash_policy'} = 1;
+
} elsif ($d->{type} eq 'OVSBridge') {
$raw .= "\tovs_type $d->{type}\n";
} elsif ($d->{type} eq 'OVSBridge') {
$raw .= "\tovs_type $d->{type}\n";