Hi Alex,

> I found that the VLAN interfaces specified in /etc/network/interfaces had
> not been created. This is the output when attempting to bring up a vlan
> interface manually:
> 
> $ ifup eth0.220
> /bin/sh: 1: cannot create /sys/class/net/eth0/create_child: Permission
> denied
> ifup: ignoring unknown interface eth0.220=eth0.220
> 
> The server has a Mellanox ConnectX-3 Pro card, which has two interfaces that
> are configurable to run in either Infiniband or Ethernet mode. I am running
> both ports in Ethernet mode, but ifupdown is treating the interfaces as
> Infiniband and trying to add an Infiniband partition to the interface
> instead of an Ethernet VLAN. This fails, and the expected VLAN interfaces
> are never created.
> 
> I have attached a patch which resolves the issue by only attempting to
> create Infiniband partitions when an interface has type ARPHRD_INFINIBAND,
> i.e. that is its current opera

you are right that these cards can run in either mode and that the pure 
presence of /sys/class/net/<dev>/device/infiniband might not suffice to qualify 
as port in IB mode.

I cannot currently test with a card running in Ethernet mode, but I will ask 
Benjamin who eventually contributed this patch, to test your patch in our IB 
environment.

From a first glance it looks good and your check for ARPHRD_INFINIBAND sounds 
plausible. The question remains if the card port configuration is reliably 
available at early boot.


Arno Töll

Reply via email to