aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-01-15 00:24:57 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-15 11:28:11 -0500
commitad33ea3a8d2ec324dc0f46b6ae404d824d2b349b (patch)
tree8b088afdb21903ffb85979abbc8947932de1eba9 /drivers
parent4f40f2cba244e04c0f385c5ce60498b513b335dd (diff)
bnx2x: Missing mask when calculating flow control
Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/bnx2x_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c
index 75b2624cd60b..9b1555820f52 100644
--- a/drivers/net/bnx2x_main.c
+++ b/drivers/net/bnx2x_main.c
@@ -1899,7 +1899,8 @@ static int bnx2x_set_spio(struct bnx2x *bp, int spio_num, u32 mode)
1899 1899
1900static void bnx2x_calc_fc_adv(struct bnx2x *bp) 1900static void bnx2x_calc_fc_adv(struct bnx2x *bp)
1901{ 1901{
1902 switch (bp->link_vars.ieee_fc) { 1902 switch (bp->link_vars.ieee_fc &
1903 MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK) {
1903 case MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_NONE: 1904 case MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_NONE:
1904 bp->port.advertising &= ~(ADVERTISED_Asym_Pause | 1905 bp->port.advertising &= ~(ADVERTISED_Asym_Pause |
1905 ADVERTISED_Pause); 1906 ADVERTISED_Pause);