Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 {