|
@@ -601,7 +601,7 @@ static int mlx4_eq_int(struct mlx4_dev *dev, struct mlx4_eq *eq)
|
|
|
continue;
|
|
|
mlx4_dbg(dev, "%s: Sending MLX4_PORT_CHANGE_SUBTYPE_DOWN to slave: %d, port:%d\n",
|
|
|
__func__, i, port);
|
|
|
- s_info = &priv->mfunc.master.vf_oper[slave].vport[port].state;
|
|
|
+ s_info = &priv->mfunc.master.vf_oper[i].vport[port].state;
|
|
|
if (IFLA_VF_LINK_STATE_AUTO == s_info->link_state) {
|
|
|
eqe->event.port_change.port =
|
|
|
cpu_to_be32(
|
|
@@ -640,7 +640,7 @@ static int mlx4_eq_int(struct mlx4_dev *dev, struct mlx4_eq *eq)
|
|
|
continue;
|
|
|
if (i == mlx4_master_func_num(dev))
|
|
|
continue;
|
|
|
- s_info = &priv->mfunc.master.vf_oper[slave].vport[port].state;
|
|
|
+ s_info = &priv->mfunc.master.vf_oper[i].vport[port].state;
|
|
|
if (IFLA_VF_LINK_STATE_AUTO == s_info->link_state) {
|
|
|
eqe->event.port_change.port =
|
|
|
cpu_to_be32(
|