cxgb4: fix initial addition of MAC address
Subsystems (2)
PATCH 1/3 cxgb4: fix initial addition of MAC address
The call to add the MAC address during link initialization wasn't adding the address to one of the HW tables. Fix.
--- drivers/net/cxgb4/cxgb4_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/cxgb4/cxgb4_main.c +1 -1
@@ -315,7 +315,7 @@ static int link_start(struct net_device *dev)if (ret ==0 ) { ret =t4_change_mac (pi->adapter,0 , pi->viid, pi->xact_addr_filt, dev->dev_addr, true, - false); + true);if (ret >=0 ) { pi->xact_addr_filt = ret; ret =0 ;
Signature · 1 line
1.5.4
PATCH 2/3 cxgb4: keep interrupts available when the ports are brought down
The PF driver needs to remain alert while its ports are down to service requests or errors from virtual functions or FW so keep interrupts and queues available when the ports are brought down. The change makes open_device_map unnecessary so remove it.
--- drivers/net/cxgb4/cxgb4.h | 1 - drivers/net/cxgb4/cxgb4_main.c | 49 ++++++++++++++++++---------------------- 2 files changed, 22 insertions(+), 28 deletions(-)
drivers/net/cxgb4/cxgb4.h +0 -1
@@ -477,7 +477,6 @@ struct adapter {struct pci_dev *pdev;struct device *pdev_dev;unsigned long registered_device_map; -unsigned long open_device_map;unsigned long flags;const char *name;
drivers/net/cxgb4/cxgb4_main.c +22 -27
100 lines not on this page · raw message
Signature · 1 line
1.5.4
PATCH 3/3 cxgb4: notify upper drivers if the device is already up when they load
Upper layer drivers aren't notified that a device is ready if their modules load after the device becomes ready. Add the missing notification.
--- drivers/net/cxgb4/cxgb4_main.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/net/cxgb4/cxgb4_main.c +3 -0
@@ -2327,6 +2327,9 @@ static void uld_attach(struct adapter *adap, unsigned int uld)register_netevent_notifier (&cxgb4_netevent_nb); netevent_registered = true; } + +if (adap->flags &FULL_INIT_DONE ) + ulds[uld].state_change (handle,CXGB4_STATE_UP ); }static void attach_ulds (struct adapter *adap)
Signature · 1 line
1.5.4
Re: [PATCH 3/3] cxgb4: notify upper drivers if the device is already up when they load
From: Dimitris Michailidis <[email protected]>
Date: Tue, 18 May 2010 13:07:13 -0700
Quoted 4 lines
Upper layer drivers aren't notified that a device is ready if their modules load after the device becomes ready. Add the missing notification.
Signed-off-by Dimitris Michailidis <[email protected]>
Applied.
Re: [PATCH 2/3] cxgb4: keep interrupts available when the ports are brought down
In reply to Dimitris MichailidisFrom: Dimitris Michailidis <[email protected]>
Date: Tue, 18 May 2010 13:07:12 -0700
Quoted 6 lines
The PF driver needs to remain alert while its ports are down to service requests or errors from virtual functions or FW so keep interrupts and queues available when the ports are brought down. The change makes
open_device_mapunnecessary so remove it.Signed-off-by Dimitris Michailidis <[email protected]>
Applied.
From: Dimitris Michailidis <[email protected]>
Date: Tue, 18 May 2010 13:07:11 -0700
Quoted 4 lines
The call to add the MAC address during link initialization wasn't adding the address to one of the HW tables. Fix.
Signed-off-by Dimitris Michailidis <[email protected]>
Applied.