[pve-devel] [Support for infiniband in pve-manager] Add support for infiniband nics

Wolfgang Bumiller w.bumiller at proxmox.com
Fri Oct 21 11:25:18 CEST 2016


> On October 21, 2016 at 10:53 AM Michael Rasmussen <mir at datanom.net> wrote:
> 
> 
> Which functions is that?

__write_etc_network_interfaces

> 
> On October 21, 2016 10:23:12 AM GMT+02:00, Wolfgang Bumiller <w.bumiller at proxmox.com> wrote:
> >We should probably add the same to the two cases in the write function.
> >
> >On Wed, Oct 19, 2016 at 11:29:14PM +0200, Michael Rasmussen wrote:
> >> 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
> 
> -- 
> Sent from my Android phone with K-9 Mail. Please excuse my brevity.




More information about the pve-devel mailing list