Commit fa919833e354b2e62b3c7d26920d1685ddc81eb2
Committed by
David S. Miller
1 parent
33c34c5e93
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
netxen: fix link notification order
First update the adapter variables with the current speed and mode before fire the notification. Otherwise, the get_settings() may provide old values. Signed-off-by: Flavio Leitner <fbl@redhat.com> Acked-by: Rajesh Borundia <rajesh.borundia@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c
... | ... | @@ -1437,8 +1437,6 @@ |
1437 | 1437 | netdev->name, cable_len); |
1438 | 1438 | } |
1439 | 1439 | |
1440 | - netxen_advert_link_change(adapter, link_status); | |
1441 | - | |
1442 | 1440 | /* update link parameters */ |
1443 | 1441 | if (duplex == LINKEVENT_FULL_DUPLEX) |
1444 | 1442 | adapter->link_duplex = DUPLEX_FULL; |
... | ... | @@ -1447,6 +1445,8 @@ |
1447 | 1445 | adapter->module_type = module; |
1448 | 1446 | adapter->link_autoneg = autoneg; |
1449 | 1447 | adapter->link_speed = link_speed; |
1448 | + | |
1449 | + netxen_advert_link_change(adapter, link_status); | |
1450 | 1450 | } |
1451 | 1451 | |
1452 | 1452 | static void |