diff options
author | Michael Chan <mchan@broadcom.com> | 2011-07-13 13:24:18 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-14 11:46:07 -0400 |
commit | b7d40315c9643034ac4b5c9dda480d0124416f89 (patch) | |
tree | e5b4479eb74b6340e714de6b0d0407d75e6c467d /drivers/net/cnic.c | |
parent | 973e574e26cc8f4704e5d7f112fd566386e37f04 (diff) |
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>
Diffstat (limited to 'drivers/net/cnic.c')
-rw-r--r-- | drivers/net/cnic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/cnic.c b/drivers/net/cnic.c index 23d6108c64c6..a881e42c0add 100644 --- a/drivers/net/cnic.c +++ b/drivers/net/cnic.c | |||
@@ -4834,7 +4834,7 @@ static int cnic_start_bnx2x_hw(struct cnic_dev *dev) | |||
4834 | cp->port_mode = CHIP_4_PORT_MODE; | 4834 | cp->port_mode = CHIP_4_PORT_MODE; |
4835 | cp->pfid = func >> 1; | 4835 | cp->pfid = func >> 1; |
4836 | } else { | 4836 | } else { |
4837 | cp->port_mode = CHIP_4_PORT_MODE; | 4837 | cp->port_mode = CHIP_2_PORT_MODE; |
4838 | cp->pfid = func & 0x6; | 4838 | cp->pfid = func & 0x6; |
4839 | } | 4839 | } |
4840 | } else { | 4840 | } else { |