mlx4: Add alias_guid mechanism
[deliverable/linux.git] / drivers / net / ethernet / mellanox / mlx4 / cmd.c
index a13d8a69b3bc712af6cfef774dd8b272e8ea6a56..ea5c884ab899abe820fef25d15a37f8113976397 100644 (file)
@@ -674,8 +674,10 @@ static int get_full_pkey_table(struct mlx4_dev *dev, u8 port, u16 *table,
 
 static enum ib_port_state vf_port_state(struct mlx4_dev *dev, int port, int vf)
 {
-       /* will be modified when add alias_guid feature */
-       return IB_PORT_DOWN;
+       if (mlx4_get_slave_port_state(dev, vf, port) == SLAVE_PORT_UP)
+               return IB_PORT_ACTIVE;
+       else
+               return IB_PORT_DOWN;
 }
 
 static int mlx4_MAD_IFC_wrapper(struct mlx4_dev *dev, int slave,
This page took 0.025071 seconds and 5 git commands to generate.