Skip to contentSkip to conversation

cxgb3 - Fix low memory conditions

PATCH In review [email protected] 2 participants 2 messages Apr 17, 2007 – Apr 19, 2007

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

PATCH 1/2 cxgb3 - Fix low memory conditions

From: Divy Le Ray <[email protected]>

Reuse the incoming skb when a clientless abort req is recieved.

The release of RDMA connections HW resources might be deferred in low memory situations.
Ensure that no further activity is passed up to the RDMA driver for these connections.

---

 drivers/net/cxgb3/cxgb3_defs.h    |    5 ++-
 drivers/net/cxgb3/cxgb3_offload.c |   69 +++++++++++++++++++++++++++----------
 2 files changed, 55 insertions(+), 19 deletions(-)
drivers/net/cxgb3/cxgb3_defs.h +4 -1
index e14862b..483a594 100644
@@ -67,7 +67,10 @@ static inline union listen_entry *stid2e
 static inline struct t3c_tid_entry *lookup_tid(const struct tid_info *t,
 					       unsigned int tid)
 {
-	return tid < t->ntids ? &(t->tid_tab[tid]) : NULL;
+	struct t3c_tid_entry *t3c_tid = tid < t->ntids ?
+	    &(t->tid_tab[tid]) : NULL;
+
+	return (t3c_tid && t3c_tid->client) ? t3c_tid : NULL;
 }
 
 /*
drivers/net/cxgb3/cxgb3_offload.c +51 -18

135 lines not on this page · raw message

#1 lore raw
Quoted 8 lines · [email protected] wrote:

From: Divy Le Ray <[email protected]>

Reuse the incoming skb when a clientless abort req is recieved.

The release of RDMA connections HW resources might be deferred in
low memory situations. Ensure that no further activity is passed up to the RDMA driver for these connections.

Quoted 6 lines

---

 drivers/net/cxgb3/cxgb3_defs.h    |    5 ++-
 drivers/net/cxgb3/cxgb3_offload.c |   69 +++++++++++++++++++++++++++----------
 2 files changed, 55 insertions(+), 19 deletions(-)

applied 1-2