]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/suse-2.6.27.31/patches.drivers/bnx2x-Flow-control-updated-before-reporting-the-lin.patch
Move xen patchset to new version's subdir.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.drivers / bnx2x-Flow-control-updated-before-reporting-the-lin.patch
1 From 3c96c68b0c67d11b8519bc38233aec586f0211f4 Mon Sep 17 00:00:00 2001
2 From: Eilon Greenstein <eilong@broadcom.com>
3 Date: Wed, 14 Jan 2009 21:25:31 -0800
4 Subject: bnx2x: Flow control updated before reporting the link
5 Acked-by: Karsten Keil <kkeil@novell.com>
6 Reference: bnc#472500
7
8 Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
9 Signed-off-by: David S. Miller <davem@davemloft.net>
10 ---
11 drivers/net/bnx2x_main.c | 3 ++-
12 1 files changed, 2 insertions(+), 1 deletions(-)
13
14 Index: linux-2.6.27-bnx2x_2/drivers/net/bnx2x_main.c
15 ===================================================================
16 --- linux-2.6.27-bnx2x_2.orig/drivers/net/bnx2x_main.c
17 +++ linux-2.6.27-bnx2x_2/drivers/net/bnx2x_main.c
18 @@ -1973,10 +1973,11 @@ static u8 bnx2x_initial_phy_init(struct
19 rc = bnx2x_phy_init(&bp->link_params, &bp->link_vars);
20 bnx2x_release_phy_lock(bp);
21
22 + bnx2x_calc_fc_adv(bp);
23 +
24 if (bp->link_vars.link_up)
25 bnx2x_link_report(bp);
26
27 - bnx2x_calc_fc_adv(bp);
28
29 return rc;
30 }