提交 b7d40315 编写于 作者: M Michael Chan 提交者: David S. Miller

cnic: Fix port_mode setting

CHIP_2_PORT_MODE was not set correctly.
Signed-off-by: NMichael Chan <mchan@broadcom.com>
Reviewed-by: NMatt Carlson <mcarlson@broadcom.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 973e574e
......@@ -4834,7 +4834,7 @@ static int cnic_start_bnx2x_hw(struct cnic_dev *dev)
cp->port_mode = CHIP_4_PORT_MODE;
cp->pfid = func >> 1;
} else {
cp->port_mode = CHIP_4_PORT_MODE;
cp->port_mode = CHIP_2_PORT_MODE;
cp->pfid = func & 0x6;
}
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册