aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorDmitry Kravkov <dmitry@broadcom.com>2011-03-06 05:49:15 -0500
committerDavid S. Miller <davem@davemloft.net>2011-03-06 21:06:03 -0500
commit9fdc3e9566b3ae691aefc3aa7b8dca6cac32c95e (patch)
tree0fa310fd7294dd9acb3387febdff2bb75c8c7639 /drivers/net
parentc4154f25c85a44c8ff331c3d28e8d9d2f710a553 (diff)
bnx2x: fix link notification
Report link to OS and other PFs after HW is fully reconfigured according to new link parameters. (Affected only Multi Function modes). Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/bnx2x/bnx2x_main.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/bnx2x/bnx2x_main.c b/drivers/net/bnx2x/bnx2x_main.c
index 469ca60195c4..aa032339e321 100644
--- a/drivers/net/bnx2x/bnx2x_main.c
+++ b/drivers/net/bnx2x/bnx2x_main.c
@@ -2163,13 +2163,6 @@ static void bnx2x_link_attn(struct bnx2x *bp)
2163 bnx2x_stats_handle(bp, STATS_EVENT_LINK_UP); 2163 bnx2x_stats_handle(bp, STATS_EVENT_LINK_UP);
2164 } 2164 }
2165 2165
2166 /* indicate link status only if link status actually changed */
2167 if (prev_link_status != bp->link_vars.link_status)
2168 bnx2x_link_report(bp);
2169
2170 if (IS_MF(bp))
2171 bnx2x_link_sync_notify(bp);
2172
2173 if (bp->link_vars.link_up && bp->link_vars.line_speed) { 2166 if (bp->link_vars.link_up && bp->link_vars.line_speed) {
2174 int cmng_fns = bnx2x_get_cmng_fns_mode(bp); 2167 int cmng_fns = bnx2x_get_cmng_fns_mode(bp);
2175 2168
@@ -2181,6 +2174,13 @@ static void bnx2x_link_attn(struct bnx2x *bp)
2181 DP(NETIF_MSG_IFUP, 2174 DP(NETIF_MSG_IFUP,
2182 "single function mode without fairness\n"); 2175 "single function mode without fairness\n");
2183 } 2176 }
2177
2178 if (IS_MF(bp))
2179 bnx2x_link_sync_notify(bp);
2180
2181 /* indicate link status only if link status actually changed */
2182 if (prev_link_status != bp->link_vars.link_status)
2183 bnx2x_link_report(bp);
2184} 2184}
2185 2185
2186void bnx2x__link_status_update(struct bnx2x *bp) 2186void bnx2x__link_status_update(struct bnx2x *bp)