[PATCH net-next 15/31] iw_cxgb4: save the correct map length for fast_reg_page_lists.

2014-02-26 Thread Hariprasad Shenai
From: Steve Wise sw...@opengridcomputing.com We cannot save the mapped length using the rdma max_page_list_len field of the ib_fast_reg_page_list struct because the core code uses it. This results in an incorrect unmap of the page list in c4iw_free_fastreg_pbl(). I found this with dma map

[PATCH net-next 22/31] iw_cxgb4: lock around accept/reject downcalls.

2014-02-26 Thread Hariprasad Shenai
From: Steve Wise sw...@opengridcomputing.com There is a race between ULP threads doing an accept/reject, and the ingress processing thread handling close/abort for the same connection. The accept/reject path needs to hold the lock to serialize these paths. Signed-off-by: Steve Wise

[PATCH net-next 19/31] iw_cxgb4: connect_request_upcall fixes.

2014-02-26 Thread Hariprasad Shenai
From: Steve Wise sw...@opengridcomputing.com When processing an MPA Start Request, if the listening endpoint is DEAD, then abort the connection. If the IWCM returns an error, then we must abort the connection and release resources. Also abort_connection() should not post a CLOSE event, so clean

[PATCH] RDMA/cxgb4: Add missing neigh_release in LE-Workaround path

2014-02-06 Thread Hariprasad Shenai
From: Kumar Sanghvi kuma...@chelsio.com Signed-off-by: Kumar Sanghvi kuma...@chelsio.com Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/infiniband/hw/cxgb4/cm.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/infiniband/hw/cxgb4/cm.c b

[PATCH net v2 1/8] cxgb4: Reserve stid 0 for T4/T5 adapters

2013-12-18 Thread Hariprasad Shenai
. This patch ensures that STID 0 is never used if the stid range starts from zero. Based on original work by Santosh Rastapur sant...@chelsio.com Signed-off-by: Kumar Sanghvi kuma...@chelsio.com Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 6

[PATCH net v2 4/8] cxgb4: Account for stid entries properly in case of IPv6

2013-12-18 Thread Hariprasad Shenai
Sanghvi kuma...@chelsio.com Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio

[PATCH net v2 5/8] cxgb4: Add API to correctly calculate tuple fields

2013-12-18 Thread Hariprasad Shenai
field for T5 is 40 bits so we need to prototype cxgb4_select_ntuple() to calculate and return u64 values. Based on original work by Casey Leedom lee...@chelsio.com Signed-off-by: Kumar Sanghvi kuma...@chelsio.com Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet

[PATCH net v2 6/8] RDMA/cxgb4: Calculate the filter server TID properly

2013-12-18 Thread Hariprasad Shenai
From: Kumar Sanghvi kuma...@chelsio.com Based on original work by Santosh Rastapur sant...@chelsio.com Signed-off-by: Kumar Sanghvi kuma...@chelsio.com Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/infiniband/hw/cxgb4/cm.c | 4 +--- 1 file changed, 1 insertion(+), 3

[PATCH net v2 3/8] cxgb4: Assign filter server TIDs properly

2013-12-18 Thread Hariprasad Shenai
by Santosh Rastapur sant...@chelsio.com Signed-off-by: Kumar Sanghvi kuma...@chelsio.com Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 16 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h | 9 - 2 files changed, 20

[PATCH net 4/9] cxgb4: Account for stid entries properly in case of IPv6

2013-12-16 Thread Hariprasad Shenai
. So, in this patch we increment/decrement TIDs in use by 4 for IPv6 assuming absence of CLIP. Such assumption keeps us on safe side and we don't end up allocating more stids for IPv6 than actually supported. Based on original work by Santosh Rastapur sant...@chelsio.com Signed-off-by: Hariprasad

[PATCH net 8/9] RDMA/cxgb4: Server filters are supported only for IPv4

2013-12-16 Thread Hariprasad Shenai
From: Kumar Sanghvi kuma...@chelsio.com Signed-off-by: Hariprasad Shenai haripra...@chelsio.com Signed-off-by: Kumar Sanghvi kuma...@chelsio.com --- drivers/infiniband/hw/cxgb4/cm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers

[PATCH net 7/9] RDMA/cxgb4: Calculate the filter server TID properly

2013-12-16 Thread Hariprasad Shenai
From: Kumar Sanghvi kuma...@chelsio.com Based on original work by Santosh Rastapur sant...@chelsio.com Signed-off-by: Hariprasad Shenai haripra...@chelsio.com Signed-off-by: Kumar Sanghvi kuma...@chelsio.com --- drivers/infiniband/hw/cxgb4/cm.c | 4 +--- 1 file changed, 1 insertion(+), 3

[PATCH net 5/9] cxgb4: Assign filter server TIDs properly

2013-12-16 Thread Hariprasad Shenai
by Santosh Rastapur sant...@chelsio.com Signed-off-by: Hariprasad Shenai haripra...@chelsio.com Signed-off-by: Kumar Sanghvi kuma...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 16 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h | 9 - 2 files changed, 20

[PATCH net 2/9] cxgb4: Reserve stid 0 for T4/T5 adapters

2013-12-16 Thread Hariprasad Shenai
. This patch ensures that STID 0 is never used if the stid range starts from zero. Based on original work by Santosh Rastapur sant...@chelsio.com Signed-off-by: Hariprasad Shenai haripra...@chelsio.com Signed-off-by: Kumar Sanghvi kuma...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 6

[PATCH net 6/9] cxgb4: Add API to correctly calculate tuple fields

2013-12-16 Thread Hariprasad Shenai
field for T5 is 40 bits so we need to prototype cxgb4_select_ntuple() to calculate and return u64 values. Based on original work by Casey Leedom lee...@chelsio.com Signed-off-by: Hariprasad Shenai haripra...@chelsio.com Signed-off-by: Kumar Sanghvi kuma...@chelsio.com --- drivers/net/ethernet

[PATCH net 9/9] RDMA/cxgb4: Use cxgb4_select_ntuple to correctly calculate ntuple fields

2013-12-16 Thread Hariprasad Shenai
From: Kumar Sanghvi kuma...@chelsio.com Signed-off-by: Hariprasad Shenai haripra...@chelsio.com Signed-off-by: Kumar Sanghvi kuma...@chelsio.com --- drivers/infiniband/hw/cxgb4/cm.c | 71 ++-- 1 file changed, 17 insertions(+), 54 deletions(-) diff --git

[PATCH net 3/9] cxgb4: Include TCP as protocol when creating server filters

2013-12-16 Thread Hariprasad Shenai
to ULDs like iw_cxgb4. So, include the protocol information in the server filter properly. Based on original work by Casey Leedom lee...@chelsio.com Signed-off-by: Hariprasad Shenai haripra...@chelsio.com Signed-off-by: Kumar Sanghvi kuma...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4

[PATCH net 1/9] cxgb4: Properly account for server filter entries

2013-12-16 Thread Hariprasad Shenai
From: Kumar Sanghvi kuma...@chelsio.com When creating server filters via LE-Workaround path, properly track the server filter entries, and don't confuse them with regular server entries. Based on original work by Hariprasad Shenai haripra...@chelsio.com Signed-off-by: Hariprasad Shenai haripra

[PATCH net 0/9] Fixes for server entries and server filter entries for Chelsio T4/T5

2013-12-16 Thread Hariprasad Shenai
Hi All, This patch series provides miscelleneous fixes for Chelsio T4/T5 adapters related to server entries and server filter entries. Also, fixes a bug in ULD (Upper Level Driver) like iw_cxgb4 where-in it calculates wrong tuple values on T5 adapter. So, a new API cxgb4_select_ntuple is

<    1   2   3   4