Commit b7d40315 authored by Michael Chan's avatar Michael Chan Committed by David S. Miller

cnic: Fix port_mode setting

CHIP_2_PORT_MODE was not set correctly.
Signed-off-by: default avatarMichael Chan <mchan@broadcom.com>
Reviewed-by: default avatarMatt Carlson <mcarlson@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment