cnic: Fix port_mode setting
authorMichael Chan <mchan@broadcom.com>
Wed, 13 Jul 2011 17:24:18 +0000 (17:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Jul 2011 15:46:07 +0000 (08:46 -0700)
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>
drivers/net/cnic.c

index 23d6108c64c693ea919c1b88ca62b2b20937bca3..a881e42c0add44f250ea2b493346042da7345561 100644 (file)
@@ -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 {