diff options
| -rw-r--r-- | drivers/net/bnx2x_main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index c4bc006f5104..ee90835fc393 100644 --- a/drivers/net/bnx2x_main.c +++ b/drivers/net/bnx2x_main.c | |||
| @@ -2458,6 +2458,7 @@ static void bnx2x_init_vn_minmax(struct bnx2x *bp, int func) | |||
| 2458 | /* This function is called upon link interrupt */ | 2458 | /* This function is called upon link interrupt */ |
| 2459 | static void bnx2x_link_attn(struct bnx2x *bp) | 2459 | static void bnx2x_link_attn(struct bnx2x *bp) |
| 2460 | { | 2460 | { |
| 2461 | u32 prev_link_status = bp->link_vars.link_status; | ||
| 2461 | /* Make sure that we are synced with the current statistics */ | 2462 | /* Make sure that we are synced with the current statistics */ |
| 2462 | bnx2x_stats_handle(bp, STATS_EVENT_STOP); | 2463 | bnx2x_stats_handle(bp, STATS_EVENT_STOP); |
| 2463 | 2464 | ||
| @@ -2490,8 +2491,9 @@ static void bnx2x_link_attn(struct bnx2x *bp) | |||
| 2490 | bnx2x_stats_handle(bp, STATS_EVENT_LINK_UP); | 2491 | bnx2x_stats_handle(bp, STATS_EVENT_LINK_UP); |
| 2491 | } | 2492 | } |
| 2492 | 2493 | ||
| 2493 | /* indicate link status */ | 2494 | /* indicate link status only if link status actually changed */ |
| 2494 | bnx2x_link_report(bp); | 2495 | if (prev_link_status != bp->link_vars.link_status) |
| 2496 | bnx2x_link_report(bp); | ||
| 2495 | 2497 | ||
| 2496 | if (IS_E1HMF(bp)) { | 2498 | if (IS_E1HMF(bp)) { |
| 2497 | int port = BP_PORT(bp); | 2499 | int port = BP_PORT(bp); |
