forked from luck/tmp_suning_uos_patched
cnic: Fix port_mode setting
CHIP_2_PORT_MODE was not set correctly. Signed-off-by: Michael Chan <mchan@broadcom.com> Reviewed-by: Matt Carlson <mcarlson@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
973e574e26
commit
b7d40315c9
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user