[pve-devel] [Support for infiniband in pve-manager] Add support for infiniband nics
Michael Rasmussen
mir at datanom.net
Wed Oct 19 23:29:14 CEST 2016
Signed-off-by: Michael Rasmussen <mir at datanom.net>
---
src/PVE/INotify.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm
index 7fb3490..a15b27d 100644
--- a/src/PVE/INotify.pm
+++ b/src/PVE/INotify.pm
@@ -801,7 +801,7 @@ sub __read_etc_network_interfaces {
if ($proc_net_dev) {
while (defined ($line = <$proc_net_dev>)) {
- if ($line =~ m/^\s*(eth\d+|en[^:.]+):.*/) {
+ if ($line =~ m/^\s*(eth\d+|en[^:.]+|ib\d+):.*/) {
$ifaces->{$1}->{exists} = 1;
}
}
@@ -974,7 +974,7 @@ sub __read_etc_network_interfaces {
$ifaces->{$1}->{exists} = 0;
$d->{exists} = 0;
}
- } elsif ($iface =~ m/^(?:eth\d+|en[^:.]+)$/) {
+ } elsif ($iface =~ m/^(?:eth\d+|en[^:.]+|ib\d+)$/) {
if (!$d->{ovs_type}) {
$d->{type} = 'eth';
} elsif ($d->{ovs_type} eq 'OVSPort') {
--
2.1.4
----
This mail was virus scanned and spam checked before delivery.
This mail is also DKIM signed. See header dkim-signature.
More information about the pve-devel
mailing list