Skip to contentSkip to conversation

cxgb4: fix initial addition of MAC address

PATCH Applied Dimitris Michailidis 2 participants 6 messages May 18, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 90d375b..1f59971 100644
@@ -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
#2 lore raw

PATCH 3/3 cxgb4: notify upper drivers if the device is already up when they load

In reply to Dimitris Michailidis

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
index 87161ce..58045b0 100644
@@ -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
#1 lore raw

PATCH 2/3 cxgb4: keep interrupts available when the ports are brought down

In reply to Dimitris Michailidis

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
index d3a5c34..dd1770e 100644
@@ -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
maintainer Applied
#4 lore raw

Re: [PATCH 2/3] cxgb4: keep interrupts available when the ports are brought down

In reply to Dimitris Michailidis

From: 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_map unnecessary so remove it.

Applied.