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>
diff --git a/drivers/net/cnic.c b/drivers/net/cnic.c
index 23d6108..a881e42 100644
--- a/drivers/net/cnic.c
+++ b/drivers/net/cnic.c
@@ -4834,7 +4834,7 @@
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 {