cxgb3 - Fix low memory conditions
Subsystems (2)
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.
Signed-off-by Divy Le Ray <[email protected]>
---
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
@@ -67,7 +67,10 @@ static inline union listen_entry *stid2estatic 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
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
Signed-off-by Divy Le Ray <[email protected]>---
drivers/net/cxgb3/cxgb3_defs.h | 5 ++- drivers/net/cxgb3/cxgb3_offload.c | 69 +++++++++++++++++++++++++++---------- 2 files changed, 55 insertions(+), 19 deletions(-)
applied 1-2