Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Flavio Leitner and committed by
David S. Miller
fa919833 33c34c5e

+2 -2
+2 -2
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c
··· 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; ··· 1445 1447 adapter->module_type = module; 1446 1448 adapter->link_autoneg = autoneg; 1447 1449 adapter->link_speed = link_speed; 1450 + 1451 + netxen_advert_link_change(adapter, link_status); 1448 1452 } 1449 1453 1450 1454 static void