Re: [PATCH net v2 0/8] Fixes for server entries and server filter entries for Chelsio T4/T5

2013-12-18 Thread Stephen Hemminger
While running namespace checks I found several this: Subject: cxgb4: make functions static and remove dead code Cleanup by making local functions static. The code to load config file is unreachable in net-next, probably came from some out of tree driver. Signed-off-by: Stephen Hemminger ---

[PATCH] ib_qib: fix QP check when looping back to/from QP1

2013-12-18 Thread Ira Weiny
The GSI QP type is compatible with and should be allowed to send data to/from any UD QP. This was found when testing ibacm on the same node as an SA. Cc: Reviewed-by: Marciniszyn, Mike Signed-off-by: Ira Weiny --- drivers/infiniband/hw/qib/qib_ud.c |9 - 1 files changed, 8 inser

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

2013-12-18 Thread Hariprasad Shenai
From: Kumar Sanghvi Based on original work by Santosh Rastapur Signed-off-by: Kumar Sanghvi Signed-off-by: Hariprasad Shenai --- drivers/infiniband/hw/cxgb4/cm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cx

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

2013-12-18 Thread Hariprasad Shenai
From: Kumar Sanghvi The LE workaround code is incorrectly reusing the TCAM TIDs (meant for allocation by firmware in case of hash collisions) for filter servers. This patch assigns the filter server TIDs properly starting from sftid_base index. Based on original work by Santosh Rastapur Signed

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

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

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

2013-12-18 Thread Hariprasad Shenai
From: Kumar Sanghvi Adds API cxgb4_select_ntuple so as to enable Upper Level Drivers to correctly calculate the tuple fields. Adds constant definitions for TP_VLAN_PRI_MAP for the Compressed Filter Tuple field widths and structures and uses them. Also, the CPL Parameters field for T5 is 40 bits

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

2013-12-18 Thread Hariprasad Shenai
From: Kumar Sanghvi Signed-off-by: Kumar Sanghvi Signed-off-by: Hariprasad Shenai --- 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/infiniband/hw/cxgb4/cm.c index 02c7515..bfd4ed7 100644 --- a/d

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

2013-12-18 Thread Hariprasad Shenai
From: Kumar Sanghvi IPv6 uses 2 TIDs with CLIP enabled and 4 TIDs without CLIP. Currently we are incrementing STIDs in use by 1 for both IPv4 and IPv6 which is wrong. Further, driver currently does not have interface to query if CLIP is programmed for particular IPv6 address. So, in this patch w

[PATCH net v2 2/8] cxgb4: Include TCP as protocol when creating server filters

2013-12-18 Thread Hariprasad Shenai
From: Kumar Sanghvi We were creating LE Workaround Server Filters without specifying IPPROTO_TCP (6) in the filters (when F_PROTOCOL is set in TP_VLAN_PRI_MAP). This meant that UDP packets with matching IP Addresses/Ports would get caught up in the filter and be delivered to ULDs like iw_cxgb4. S

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

2013-12-18 Thread Hariprasad Shenai
From: Kumar Sanghvi When creating offload server entries, an IPv6 passive connection request can trigger a reply with a null STID, whereas the driver would expect the reply 'STID to match the value used for the request. This happens due to h/w limitation on T4 and T5. This patch ensures that STI

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

2013-12-18 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 exported