Skip to content
Commit 22e7ef9c authored by Roland Dreier's avatar Roland Dreier
Browse files

IB/mlx4: Don't register IB device for adapters with no IB ports



If the mlx4_ib driver finds an adapter that has only ethernet ports, the
current code will register an IB device with 0 ports.  Nothing useful or
sensible can be done with such a device, so just skip registering it.

Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 70cb9253
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment