mlx4: Extanding port_mask functionality
Port mask now has additional state. Port can be set as "none". In this case neither the mlx4_en or mlx4_ib drivers take ownership of the port. In multifunction mode there is an option to set the vfs as single ported devices. (in single function mode, both physical ports belong to same function) Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
623ed84b1f
commit
65dab25deb
@@ -140,10 +140,8 @@ static void mlx4_set_port_mask(struct mlx4_dev *dev)
|
||||
{
|
||||
int i;
|
||||
|
||||
dev->caps.port_mask = 0;
|
||||
for (i = 1; i <= dev->caps.num_ports; ++i)
|
||||
if (dev->caps.port_type[i] == MLX4_PORT_TYPE_IB)
|
||||
dev->caps.port_mask |= 1 << (i - 1);
|
||||
dev->caps.port_mask[i] = dev->caps.port_type[i];
|
||||
}
|
||||
|
||||
static int mlx4_dev_cap(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap)
|
||||
|
Reference in New Issue
Block a user