From: Eilon Greenstein Date: Thu, 15 Jan 2009 05:24:57 +0000 (-0800) Subject: bnx2x: Missing mask when calculating flow control X-Git-Tag: v2.6.29-rc2~11^2~19 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ad33ea3a8d2ec324dc0f46b6ae404d824d2b349b;p=linux-2.6-omap-h63xx.git bnx2x: Missing mask when calculating flow control Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller --- diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index 75b2624cd60..9b1555820f5 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) static void bnx2x_calc_fc_adv(struct bnx2x *bp) { - switch (bp->link_vars.ieee_fc) { + switch (bp->link_vars.ieee_fc & + MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_MASK) { case MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_NONE: bp->port.advertising &= ~(ADVERTISED_Asym_Pause | ADVERTISED_Pause);