From: Michael Rasmussen Date: Fri, 21 Oct 2016 18:14:51 +0000 (+0200) Subject: Add support for infiniband nics X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=309085272ba8494c5e0cb4824b29967c748f6e7f Add support for infiniband nics Signed-off-by: Michael Rasmussen --- 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') {