[PATCH for-next] RDMA/CMA: Mark IPv4 addresses correctly when the listener is IPv6

2014-11-13 Thread Or Gerlitz
From: Yotam Kenneth yota...@mellanox.com When accepting a new connection with the listener being IPv6, the family of the new connection is set as IPv6. This causes cma_zero_addr function to return true on an non-zero address. As a result, the wrong code path is taken. This causes the connection

RE: [PATCH for-next] RDMA/CMA: Mark IPv4 addresses correctly when the listener is IPv6

2014-11-13 Thread Hefty, Sean
From: Yotam Kenneth yota...@mellanox.com When accepting a new connection with the listener being IPv6, the family of the new connection is set as IPv6. This causes cma_zero_addr function to return true on an non-zero address. As a result, the wrong code path is taken. This causes the

Re: [PATCH net-next] cxgb4i/cxgb4 : Refactor macros to conform to uniform standards

2014-11-13 Thread David Miller
From: Anish Bhatt an...@chelsio.com Date: Wed, 12 Nov 2014 17:15:57 -0800 Refactored all macros used in cxgb4i as part of previously started cxgb4 macro names cleanup. Makes them more uniform and avoids namespace collision. Minor changes in other drivers where required as some of these macros

[RFC PATCH 03/16] ib/mad: Add check for jumbo MADs support on a device

2014-11-13 Thread ira . weiny
From: Ira Weiny ira.we...@intel.com Check for IB_DEVICE_JUMBO_MAD_SUPPORT in the device capabilities and if supported mark the special QPs created. Signed-off-by: Ira Weiny ira.we...@intel.com --- drivers/infiniband/core/mad.c | 26 +++---

[RFC PATCH 04/16] ib/mad: add base version parameter to ib_create_send_mad

2014-11-13 Thread ira . weiny
From: Ira Weiny ira.we...@intel.com In preparation to support the new OPA MAD Base version, add a base version parameter ib_create_send_mad and set it to IB_MGMT_BASE_VERSION for current users. Definition of the new base version and it's processing will occur in later patches. Signed-off-by:

[RFC PATCH 07/16] ib/mad: create a jumbo MAD kmem_cache

2014-11-13 Thread ira . weiny
From: Ira Weiny ira.we...@intel.com Create the jumbo MAD kmem_cache and flag the MAD private structure properly. Signed-off-by: Ira Weiny ira.we...@intel.com --- drivers/infiniband/core/mad.c | 86 +++--- drivers/infiniband/core/mad_priv.h | 4 ++ 2 files

[RFC PATCH 02/16] ib/core: add IB_DEVICE_JUMBO_MAD_SUPPORT device cap flag

2014-11-13 Thread ira . weiny
From: Ira Weiny ira.we...@intel.com Add a device capability flag for OPA devices to signal their support of jumbo MADs. Signed-off-by: Ira Weiny ira.we...@intel.com --- include/rdma/ib_verbs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/rdma/ib_verbs.h

[RFC PATCH 00/16] ib_mad: Add support for Intel Omni-Path Architecture (OPA) MAD processing.

2014-11-13 Thread ira . weiny
The following patch series modifies the kernel MAD processing (ib_mad/ib_umad) and related interfaces to process Intel Omni-Path Architecture MADs on devices which support them. In addition to supporting some IBTA management classes, OPA devices use MADs with lengths up to 2K. These jumbo MADs

[RFC PATCH 06/16] ib/mad: Create jumbo_mad data structures

2014-11-13 Thread ira . weiny
From: Ira Weiny ira.we...@intel.com Define jumbo_mad, jumbo_rmpp_mad, and jumbo_mad_private structures. Create an RMPP Base header to share between ib_rmpp_mad and jumbo_rmpp_mad Update code to use the new structures. Signed-off-by: Ira Weiny ira.we...@intel.com ---

[RFC PATCH 01/16] ib/mad: rename is_data_mad to is_rmpp_data_mad

2014-11-13 Thread ira . weiny
From: Ira Weiny ira.we...@intel.com is_rmpp_data_mad is more descriptive for this function. Reviewed-by: Sean Hefty sean.he...@intel.com Signed-off-by: Ira Weiny ira.we...@intel.com --- drivers/infiniband/core/mad.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

[RFC PATCH 13/16] ib/mad: create helper function for smi_check_forward_dr_smp

2014-11-13 Thread ira . weiny
From: Ira Weiny ira.we...@intel.com This helper function will be used for processing both IB and OPA SMPs. Signed-off-by: Ira Weiny ira.we...@intel.com --- drivers/infiniband/core/smi.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git

[RFC PATCH 09/16] ib/mad: Implement support for Intel Omni-Path Architecture base version MADs in ib_create_send_mad

2014-11-13 Thread ira . weiny
From: Ira Weiny ira.we...@intel.com If the MAD is an OPA base version; verify the device supports jumbo MADs Set MAD size and sg lengths as appropriate Split RMPP MADs as appropriate Signed-off-by: Ira Weiny ira.we...@intel.com --- drivers/infiniband/core/mad.c | 37

[RFC PATCH 11/16] ib/mad: create helper function for smi_handle_dr_smp_send

2014-11-13 Thread ira . weiny
From: Ira Weiny ira.we...@intel.com This helper function will be used for processing both IB and OPA SMP sends. Signed-off-by: Ira Weiny ira.we...@intel.com --- drivers/infiniband/core/smi.c | 81 +-- 1 file changed, 47 insertions(+), 34 deletions(-)

[RFC PATCH 10/16] ib/mad: Add registration check for Intel Omni-Path Architecture MADs

2014-11-13 Thread ira . weiny
From: Ira Weiny ira.we...@intel.com If the registration specifies an OPA MAD class version and the device does not support jumbo MADs, fail the MAD registration. Signed-off-by: Ira Weiny ira.we...@intel.com --- drivers/infiniband/core/mad.c | 22 ++ 1 file changed, 14

[RFC PATCH 08/16] ib/mad: Add Intel Omni-Path Architecture defines

2014-11-13 Thread ira . weiny
From: Ira Weiny ira.we...@intel.com OPA_MIN_CLASS_VERSION -- OPA Class versions are 0x80 OPA_SMP_CLASS_VERSION -- Defined at 0x80 OPA_MGMT_BASE_VERSION -- Defined at 0x80 Increase max management version to accommodate OPA Signed-off-by: Ira Weiny ira.we...@intel.com ---

[RFC PATCH 14/16] ib/mad: Create helper function for SMI processing

2014-11-13 Thread ira . weiny
From: Ira Weiny ira.we...@intel.com This helper function will be used for processing both IB and OPA SMPs. Signed-off-by: Ira Weiny ira.we...@intel.com --- drivers/infiniband/core/mad.c | 85 +-- 1 file changed, 49 insertions(+), 36 deletions(-) diff

[RFC PATCH 05/16] ib/mad: Add MAD size parameters to process_mad

2014-11-13 Thread ira . weiny
From: Ira Weiny ira.we...@intel.com In support of variable length MADs add in and out MAD size parameters to the process_mad call. The out MAD size parameter is passed by reference such that it can be updated by the agent to indicate the proper response length to be sent by the MAD stack. The

[RFC PATCH 15/16] ib/mad: Implement Intel Omni-Path Architecture SMP processing

2014-11-13 Thread ira . weiny
From: Ira Weiny ira.we...@intel.com Define the new OPA SMP format, create support functions for this format, and call the previously defined helper functions as appropriate. Signed-off-by: Ira Weiny ira.we...@intel.com --- drivers/infiniband/core/mad_priv.h | 2 +

[RFC PATCH 12/16] ib/mad: create helper function for smi_handle_dr_smp_recv

2014-11-13 Thread ira . weiny
From: Ira Weiny ira.we...@intel.com This helper function will be used for processing both IB and OPA SMP recvs. Signed-off-by: Ira Weiny ira.we...@intel.com --- drivers/infiniband/core/smi.c | 80 +-- 1 file changed, 47 insertions(+), 33 deletions(-)

[RFC PATCH 16/16] ib/mad: Implement Intel Omni-Path Architecture General MAD processing

2014-11-13 Thread ira . weiny
From: Ira Weiny ira.we...@intel.com OPA SMP packets must carry a valid pkey process wc.pkey_index returned by agents for response. Handle variable length OPA MADs based on the Base Version Support is provided by: * Adjusting the 'fake' WC for locally routed SMP's to represent