Re: IB/core: Use GID table in AH creation and dmac resolution

2015-11-03 Thread Somnath Kotur
Thanks Dan and Matan. We will take a look and revert on this Thanks Som On Wed, Nov 4, 2015 at 9:31 AM, Somnath Kotur wrote: > Thanks Dan and Matan. > > We will take a look and revert on this > > Thanks > Som > > On Tue, Nov 3, 2015 at 7:14 PM, Matan Barak wrote: >&

RE: [PATCH for-next V5 12/12] RDMA/ocrdma: Changes in driver to incorporate the moving of GID Table mgmt to IB/Core.

2015-06-10 Thread Somnath Kotur
> -Original Message- > From: Jason Gunthorpe [mailto:jguntho...@obsidianresearch.com] > Sent: Thursday, June 11, 2015 9:41 AM > To: Matan Barak > Cc: Doug Ledford; Or Gerlitz; Moni Shoua; Sean Hefty; Somnath Kotur; linux- > r...@vger.kernel.org; Somnath Kotur; Devesh Sharma > Su

RE: [PATCH v3 for-next 01/33] IB/core: Add RoCE GID cache

2015-04-14 Thread Somnath Kotur
> -Original Message- > From: Hefty, Sean [mailto:sean.he...@intel.com] > Sent: Tuesday, April 14, 2015 11:02 PM > To: Matan Barak; Somnath Kotur; rol...@kernel.org > Cc: linux-rdma@vger.kernel.org > Subject: RE: [PATCH v3 for-next 01/33] IB/core: Add RoCE GID cache >

RE: [PATCH v3 for-next 01/33] IB/core: Add RoCE GID cache

2015-04-07 Thread Somnath Kotur
Hi Sean, > -Original Message- > From: Hefty, Sean [mailto:sean.he...@intel.com] > Sent: Wednesday, April 08, 2015 6:00 AM > To: Somnath Kotur; rol...@kernel.org > Cc: linux-rdma@vger.kernel.org; Matan Barak > Subject: RE: [PATCH v3 for-next 01/33] IB/core: Add RoCE G

RE: [PATCH v3 for-next 01/33] IB/core: Add RoCE GID cache

2015-03-26 Thread Somnath Kotur
Hi Matan/Moni, Could either of you please respond to both of Bart's queries? Thanks Somnath > -Original Message- > From: Bart Van Assche [mailto:bart.vanass...@sandisk.com] > Sent: Thursday, March 26, 2015 5:13 AM > To: Somnath Kotur; rol...@kerne

[PATCH v3 for-next 28/33] IB/mlx4: Translate cache gid index to real index

2015-03-24 Thread Somnath Kotur
From: Moni Shoua When QP is modified with path the given sgid_index is not necessarily the index that HW knows. This is due to optimizations that can save place in the HW table. Therefore, translation is required. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband

[PATCH v3 for-next 22/33] IB/mlx4: Lock with RCU instead of RTNL

2015-03-24 Thread Somnath Kotur
problem. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/hw/mlx4/main.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index d8b227e..32cd009 100644 --- a/drivers

[PATCH v3 for-next 17/33] RDMA/ocrdma: changes to support RoCE-v2 in UD path

2015-03-24 Thread Somnath Kotur
IB_WC_WITH_NETWORK_HDR_TYPE flag in wc->wc_flags. Signed-off-by: Somnath Kotur Signed-off-by: Devesh Sharma --- drivers/infiniband/hw/ocrdma/ocrdma.h | 1 + drivers/infiniband/hw/ocrdma/ocrdma_ah.c| 69 - drivers/infiniband/hw/ocrdma/ocrdma_sli.h | 5 ++- driv

[PATCH v3 for-next 24/33] IB/mlx4: Advertise RoCE support in port capabilities

2015-03-24 Thread Somnath Kotur
From: Moni Shoua The port capability flags should indicate the support in RoCE modes (V1 or V2) of the port. The mlx4 driver sets these flags according to the capabilities reported by the HW. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/hw/mlx4/main.c

[PATCH v3 for-next 25/33] IB/mlx4: Implement ib_device callback - get_netdev

2015-03-24 Thread Somnath Kotur
From: Moni Shoua This is a new callback that is required for RoCEv2 support. In port aggregation mode it is required to return the netdev of the active port so support in mlx4 core driver to figure out that port identity is required. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur

[PATCH v3 for-next 33/33] IB/cma: Join and leave multicast groups with IGMP

2015-03-24 Thread Somnath Kotur
From: Moni Shoua Since RoCEv2 is a protocol over IP header it is required to send IGMP join and leave requests to the network when joining and leaving multicast groups. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/core/cma.c | 78

[PATCH v3 for-next 26/33] IB/mlx4: Implement ib_device callback - modify_gid

2015-03-24 Thread Somnath Kotur
indexes is required. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/hw/mlx4/main.c| 226 +++ drivers/infiniband/hw/mlx4/mlx4_ib.h | 18 +++ include/linux/mlx4/cmd.h | 3 +- include/linux/mlx4/device.h | 3

[PATCH v3 for-next 23/33] net/mlx4: Postpone the registration of net_device

2015-03-24 Thread Somnath Kotur
his may be confusing to listeners of netdev events. This patch is a preparation to the patch that implements the get_netdev() callback in the IB/mlx4 driver. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/net/ethernet/mellanox/mlx4/en_main.c | 36 d

[PATCH v3 for-next 31/33] IB/mlx4: Enable send of RoCE QP1 packets with IP/UDP headers

2015-03-24 Thread Somnath Kotur
. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/hw/mlx4/qp.c | 84 + 1 file changed, 52 insertions(+), 32 deletions(-) diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c index 1141cf0..fb37415 100644

[PATCH v3 for-next 30/33] IB/core: Initialize UD header structure with IP and UDP headers

2015-03-24 Thread Somnath Kotur
From: Moni Shoua ib_ud_header_init() is used to format InfiniBand headers in a buffer up to (but not with) BTH. For RoCEv2 it is required that this function would be able to build also IP and UDP headers. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/core

[PATCH v3 for-next 19/33] RDMA/ocrdma: changes to support user AH creation

2015-03-24 Thread Somnath Kotur
From: Devesh Sharma To support user space AH this uses ahid field to convey l3-type to user space library. The library is responsible for decoding the l3-type out of ahid. Signed-off-by: Somnath Kotur Signed-off-by: Devesh Sharma --- drivers/infiniband/hw/ocrdma/ocrdma_ah.c | 5

[PATCH v3 for-next 21/33] IB/mlx4: Replace spin_lock with rw_semaphore

2015-03-24 Thread Somnath Kotur
From: Moni Shoua Protection on iboe->netdevs is no longer required to be from an atomic context. Replacing a spin_lock with a semaphore is allowed and makes more sense. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/hw/mlx4/main.c|

[PATCH v3 for-next 29/33] net/mlx4_core: Add handling of R-RoCE over IPV4 in qp attach flow

2015-03-24 Thread Somnath Kotur
From: Maor Gottlieb In that case, the IPv4 bit should be enabled in the IB flow spec. Signed-off-by: Maor Gottlieb Signed-off-by: Somnath Kotur --- drivers/net/ethernet/mellanox/mlx4/mcg.c | 14 -- include/linux/mlx4/device.h | 6 ++ 2 files changed, 18

[PATCH v3 for-next 32/33] IB/mlx4: Create and use another QP1 for RoCEv2

2015-03-24 Thread Somnath Kotur
for receive are required. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/hw/mlx4/mlx4_ib.h | 7 ++ drivers/infiniband/hw/mlx4/qp.c | 155 +++ 2 files changed, 144 insertions(+), 18 deletions(-) diff --git a/drivers/infiniband

[PATCH v3 for-next 18/33] RDMA/ocrdma: changes to support RoCE-v2 in RC path

2015-03-24 Thread Somnath Kotur
From: Devesh Sharma To support RoCE-V2 this patch implements following changes 1. Get the GID-type for a given sgid. 2. Based on the gid type get IPv4 L3 address and give those to FW. 3. Provide l3-type to FW. Signed-off-by: Somnath Kotur Signed-off-by: Devesh Sharma --- drivers

[PATCH v3 for-next 20/33] IB/mlx4: Remove gid table management for RoCE

2015-03-24 Thread Somnath Kotur
answer from the cache when link layer is Ethernet. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/hw/mlx4/main.c| 495 +-- drivers/infiniband/hw/mlx4/mlx4_ib.h | 4 - 2 files changed, 14 insertions(+), 485 deletions(-) diff --git

[PATCH v3 for-next 27/33] IB/mlx4: Configure device to work in RoCEv2

2015-03-24 Thread Somnath Kotur
: Somnath Kotur --- drivers/infiniband/hw/mlx4/main.c | 10 +++- drivers/infiniband/hw/mlx4/qp.c | 40 +++ drivers/net/ethernet/mellanox/mlx4/fw.c | 16 - drivers/net/ethernet/mellanox/mlx4/mlx4.h | 3 ++- drivers/net/ethernet/mellanox

[PATCH v3 for-next 01/33] IB/core: Add RoCE GID cache

2015-03-24 Thread Somnath Kotur
using this RoCE GID cache table, providers must implement a modify_gid callback. The table is managed exclusively by this roce_gid_cache and the provider just need to write the data to the hardware. Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/Makefile

[PATCH v3 for-next 02/33] IB/core: Add kref to IB devices

2015-03-24 Thread Somnath Kotur
s not held anymore. Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/device.c | 41 include/rdma/ib_verbs.h | 6 ++ 2 files changed, 47 insertions(+) diff --git a/drivers/infiniband/core/device.c b/drivers/

[PATCH v3 for-next 04/33] IB/core: Add default GID for RoCE GID Cache

2015-03-24 Thread Somnath Kotur
GIDs are also available if the net device is down (in order to support loopback). Moreover, these default GID addresses can't be deleted. Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/core_priv.h | 12 +++ drivers/infiniband/core/roce_gid_ca

[PATCH v3 for-next 00/33] RoCE V1/V2 per GID

2015-03-24 Thread Somnath Kotur
ble send of RoCE QP1 packets with IP/UDP headers IB/mlx4: Create and use another QP1 for RoCEv2 IB/cma: Join and leave multicast groups with IGMP Somnath Kotur (2): IB/Core: Changes to the IB Core infrastructure for RoCEv2 support RDMA/ocrdma: Changes in driver to incorporate the

[PATCH v3 for-next 07/33] IB/core: Add RoCE cache bonding support

2015-03-24 Thread Somnath Kotur
d-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/roce_gid_mgmt.c | 291 ++-- drivers/net/bonding/bond_options.c | 13 -- include/net/bonding.h | 7 + 3 files changed, 282 insertions(+), 29 deletions(-) diff --

[PATCH v3 for-next 09/33] IB/core: Report gid_type and gid_ndev through sysfs

2015-03-24 Thread Somnath Kotur
and//ports//gid_attrs/types/ The corresponds to the index of the respective GID in: /sys/class/infiniband//ports//gids/ Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/core_priv.h | 2 + drivers/infiniband/core/roce_gid_cache.c | 13 +++ drivers/infin

[PATCH v3 for-next 03/33] IB/core: Add RoCE GID population

2015-03-24 Thread Somnath Kotur
table. (c) netdev up/down/change_addr - if a netdev is built onto our RoCE device, we need to add/delete its IPs. When an event is received, multiple entries (each with different GID type) are added. Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/Makefile

[PATCH v3 for-next 11/33] IB/core: Modify ib_verbs and cma in order to use roce_gid_cache

2015-03-24 Thread Somnath Kotur
done by Somnath Kotur Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/addr.c | 3 +- drivers/infiniband/core/cm.c | 30 -- drivers/infiniband/core/cma.c| 9 -- drivers/infiniband/core/core_priv.h | 4

[PATCH v3 for-next 05/33] net/bonding: make DRV macros private

2015-03-24 Thread Somnath Kotur
-off-by: Somnath Kotur --- drivers/net/bonding/bond_main.c| 2 ++ drivers/net/bonding/bond_procfs.c | 1 + drivers/net/bonding/bonding_priv.h | 26 ++ include/net/bonding.h | 7 --- 4 files changed, 29 insertions(+), 7 deletions(-) create mode

[PATCH v3 for-next 08/33] IB/core: GID attribute should be returned from verbs API and cache API

2015-03-24 Thread Somnath Kotur
(b) ib_find_cached_gid (c) ib_find_cached_gid_by_port (d) ib_query_gid It changes the usage of those APIs and use the RoCE GID cache when needed. Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/cache.c| 225 + drivers

[PATCH v3 for-next 13/33] IB/core: Add rdma_network_type to wc

2015-03-24 Thread Somnath Kotur
atan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/verbs.c | 106 ++-- include/rdma/ib_verbs.h | 30 2 files changed, 131 insertions(+), 5 deletions(-) diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/ver

[PATCH v3 for-next 12/33] IB/core: Add gid_type to path and rdma_id_private

2015-03-24 Thread Somnath Kotur
From: Matan Barak When using rdma cm, we want to take the gid_type from the rdma_id_private. This is mandatory before adding an API from user-space/configfs that sets the gid_type of CM connection. Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/cm.c

[PATCH v3 for-next 10/33] IB/core: Support find sgid index using a filter function

2015-03-24 Thread Somnath Kotur
te is problematic, since they may be vastly extended in the future. As a result, we add a find function that gets a user filter function and searches the GID table until a match is found. Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/cache.c

[PATCH v3 for-next 06/33] net: Add info for NETDEV_CHANGEUPPER event

2015-03-24 Thread Somnath Kotur
From: Matan Barak Consumers of NETDEV_CHANGEUPPER event sometimes want to know which upper device was linked/unlinked and which operation was carried. Adding extra information in the notifier info block. Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- include/linux/netdevice.h

[PATCH v3 for-next 16/33] RDMA/ocrdma: Changes in driver to incorporate the moving of GID Table mgmt to IB/Core.

2015-03-24 Thread Somnath Kotur
: Somnath Kotur Signed-off-by: Devesh Sharma --- drivers/infiniband/hw/ocrdma/ocrdma.h | 10 ++ drivers/infiniband/hw/ocrdma/ocrdma_hw.c| 3 + drivers/infiniband/hw/ocrdma/ocrdma_main.c | 233 +--- drivers/infiniband/hw/ocrdma/ocrdma_sli.h | 13 ++ drivers

[PATCH v3 for-next 14/33] IB/cma: Add configfs for rdma_cm

2015-03-24 Thread Somnath Kotur
e the configfs, one needs to mount it and mkdir inside rdma_cm directory. The patch adds support for a single configuration file, default_roce_mode. The mode can either be IB & RoCEv1 or RoCEv2. Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/Kconfig

[PATCH v3 for-next 15/33] IB/Core: Changes to the IB Core infrastructure for RoCEv2 support

2015-03-24 Thread Somnath Kotur
1. Choose sgid_index and type from all the matching entries in RDMA-CM based on hint from the IP stack. 2. Set hop_limit for the IP Packet based on above hint from IP stack 3. Define a RDMA_NETWORK enum type. Signed-off-by: Somnath Kotur --- drivers/infiniband/core/addr.c | 8

RE: [PATCH v2 for-next 00/32] RoCE V1/v2 per GID

2015-03-19 Thread Somnath Kotur
Hi Roland, Could you please chime in on this patch series? Its been more than a week since we sent out V2? Thanks Som From: linux-rdma-ow...@vger.kernel.org [linux-rdma-ow...@vger.kernel.org] on behalf of Somnath Kotur [somnath.ko

[PATCH v2 for-next 30/32] IB/mlx4: Enable send of RoCE QP1 packets with IP/UDP headers

2015-03-10 Thread Somnath Kotur
. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/hw/mlx4/qp.c | 84 + 1 file changed, 52 insertions(+), 32 deletions(-) diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c index 1141cf0..fb37415 100644

[PATCH v2 for-next 31/32] IB/mlx4: Create and use another QP1 for RoCEv2

2015-03-10 Thread Somnath Kotur
for receive are required. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/hw/mlx4/mlx4_ib.h | 7 ++ drivers/infiniband/hw/mlx4/qp.c | 155 +++ 2 files changed, 144 insertions(+), 18 deletions(-) diff --git a/drivers/infiniband

[PATCH v2 for-next 32/32] IB/cma: Join and leave multicast groups with IGMP

2015-03-10 Thread Somnath Kotur
From: Moni Shoua Since RoCEv2 is a protocol over IP header it is required to send IGMP join and leave requests to the network when joining and leaving multicast groups. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/core/cma.c | 78

[PATCH v2 for-next 25/32] IB/mlx4: Implement ib_device callback - modify_gid

2015-03-10 Thread Somnath Kotur
indexes is required. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/hw/mlx4/main.c| 224 +++ drivers/infiniband/hw/mlx4/mlx4_ib.h | 18 +++ include/linux/mlx4/cmd.h | 3 +- include/linux/mlx4/device.h | 3

[PATCH v2 for-next 10/32] IB/core: Modify ib_verbs and cma in order to use roce_gid_cache

2015-03-10 Thread Somnath Kotur
done by Somnath Kotur Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/addr.c | 3 +- drivers/infiniband/core/cm.c | 30 -- drivers/infiniband/core/cma.c| 9 -- drivers/infiniband/core/core_priv.h | 4

[PATCH v2 for-next 24/32] IB/mlx4: Implement ib_device callback - get_netdev

2015-03-10 Thread Somnath Kotur
From: Moni Shoua This is a new callback that is required for RoCEv2 support. In port aggregation mode it is required to return the netdev of the active port so support in mlx4 core driver to figure out that port identity is required. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur

[PATCH v2 for-next 08/32] IB/core: Report gid_type and gid_ndev through sysfs

2015-03-10 Thread Somnath Kotur
and//ports//gid_attrs/types/ The corresponds to the index of the respective GID in: /sys/class/infiniband//ports//gids/ Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/core_priv.h | 2 + drivers/infiniband/core/roce_gid_cache.c | 13 +++ drivers/infin

[PATCH v2 for-next 13/32] IB/cma: Add configfs for rdma_cm

2015-03-10 Thread Somnath Kotur
e the configfs, one needs to mount it and mkdir inside rdma_cm directory. The patch adds support for a single configuration file, default_roce_mode. The mode can either be IB & RoCEv1 or RoCEv2. Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/Makefile

[PATCH v2 for-next 11/32] IB/core: Add gid_type to path and rdma_id_private

2015-03-10 Thread Somnath Kotur
From: Matan Barak When using rdma cm, we want to take the gid_type from the rdma_id_private. This is mandatory before adding an API from user-space/configfs that sets the gid_type of CM connection. Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/cm.c

[PATCH v2 for-next 07/32] IB/core: GID attribute should be returned from verbs API and cache API

2015-03-10 Thread Somnath Kotur
(b) ib_find_cached_gid (c) ib_find_cached_gid_by_port (d) ib_query_gid It changes the usage of those APIs and use the RoCE GID cache when needed. Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/cache.c| 225 + drivers

[PATCH v2 for-next 05/32] net/bonding: make DRV macros private

2015-03-10 Thread Somnath Kotur
-off-by: Somnath Kotur --- drivers/net/bonding/bond_main.c| 2 ++ drivers/net/bonding/bond_procfs.c | 1 + drivers/net/bonding/bonding_priv.h | 26 ++ include/net/bonding.h | 7 --- 4 files changed, 29 insertions(+), 7 deletions(-) create mode

[PATCH v2 for-next 15/32] RDMA/ocrdma: Changes in driver to incorporate the moving of GID Table mgmt to IB/Core.

2015-03-10 Thread Somnath Kotur
: Somnath Kotur Signed-off-by: Devesh Sharma --- drivers/infiniband/hw/ocrdma/ocrdma.h | 10 ++ drivers/infiniband/hw/ocrdma/ocrdma_hw.c| 3 + drivers/infiniband/hw/ocrdma/ocrdma_main.c | 233 +--- drivers/infiniband/hw/ocrdma/ocrdma_sli.h | 13 ++ drivers

[PATCH v2 for-next 14/32] IB/Core: Changes to the IB Core infrastructure for RoCEv2 support

2015-03-10 Thread Somnath Kotur
1. Choose sgid_index and type from all the matching entries in RDMA-CM based on hint from the IP stack. 2. Set hop_limit for the IP Packet based on above hint from IP stack 3. Define a RDMA_NETWORK enum type. Signed-off-by: Somnath Kotur Signed-off-by: Matan Barak --- drivers/infiniband

[PATCH v2 for-next 00/32] RoCE V1/v2 per GID

2015-03-10 Thread Somnath Kotur
IB/mlx4: Create and use another QP1 for RoCEv2 IB/cma: Join and leave multicast groups with IGMP Somnath Kotur (2): IB/Core: Changes to the IB Core infrastructure for RoCEv2 support RDMA/ocrdma: Changes in driver to incorporate the moving of GID Table mgmt to IB/Core. drivers/infiniband/c

[PATCH v2 for-next 20/32] IB/mlx4: Replace spin_lock with rw_semaphore

2015-03-10 Thread Somnath Kotur
From: Moni Shoua Protection on iboe->netdevs is no longer required to be from an atomic context. Replacing a spin_lock with a semaphore is allowed and makes more sense. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/hw/mlx4/main.c|

[PATCH v2 for-next 29/32] IB/core: Initialize UD header structure with IP and UDP headers

2015-03-10 Thread Somnath Kotur
From: Moni Shoua ib_ud_header_init() is used to format InfiniBand headers in a buffer up to (but not with) BTH. For RoCEv2 it is required that this function would be able to build also IP and UDP headers. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/core

[PATCH v2 for-next 03/32] IB/core: Add RoCE GID population

2015-03-10 Thread Somnath Kotur
table. (c) netdev up/down/change_addr - if a netdev is built onto our RoCE device, we need to add/delete its IPs. When an event is received, multiple entries (each with different GID type) are added. Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/Makefile

[PATCH v2 for-next 04/32] IB/core: Add default GID for RoCE GID Cache

2015-03-10 Thread Somnath Kotur
GIDs are also available if the net device is down (in order to support loopback). Moreover, these default GID addresses can't be deleted. Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/core_priv.h | 10 drivers/infiniband/core/roce_gid_cache.c

[PATCH v2 for-next 12/32] IB/core: Add rdma_network_type to wc

2015-03-10 Thread Somnath Kotur
atan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/verbs.c | 106 ++-- include/rdma/ib_verbs.h | 30 2 files changed, 131 insertions(+), 5 deletions(-) diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/ver

[PATCH v2 for-next 23/32] IB/mlx4: Advertise RoCE support in port capabilities

2015-03-10 Thread Somnath Kotur
From: Moni Shoua The port capability flags should indicate the support in RoCE modes (V1 or V2) of the port. The mlx4 driver sets these flags according to the capabilities reported by the HW. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/hw/mlx4/main.c

[PATCH v2 for-next 09/32] IB/core: Support find sgid index using a filter function

2015-03-10 Thread Somnath Kotur
te is problematic, since they may be vastly extended in the future. As a result, we add a find function that gets a user filter function and searches the GID table until a match is found. Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/cache.c

[PATCH v2 for-next 27/32] IB/mlx4: Translate cache gid index to real index

2015-03-10 Thread Somnath Kotur
From: Moni Shoua When QP is modified with path the given sgid_index is not necessarily the index that HW knows. This is due to optimizations that can save place in the HW table. Therefore, translation is required. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband

[PATCH v2 for-next 06/32] IB/core: Add RoCE cache bonding support

2015-03-10 Thread Somnath Kotur
d-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/roce_gid_mgmt.c | 228 ++-- drivers/net/bonding/bond_options.c | 13 -- include/net/bonding.h | 7 + 3 files changed, 227 insertions(+), 21 deletions(-) diff --

[PATCH v2 for-next 16/32] RDMA/ocrdma: changes to support RoCE-v2 in UD path

2015-03-10 Thread Somnath Kotur
IB_WC_WITH_NETWORK_HDR_TYPE flag in wc->wc_flags. 4. Set hop_limit to enable non RDMA-CM applications for RoCEV2. Signed-off-by: Somnath Kotur Signed-off-by: Devesh Sharma --- drivers/infiniband/hw/ocrdma/ocrdma.h |1 + drivers/infiniband/hw/ocrdma/ocrdma_ah.c|

[PATCH v2 for-next 17/32] RDMA/ocrdma: changes to support RoCE-v2 in RC path

2015-03-10 Thread Somnath Kotur
From: Devesh Sharma To support RoCE-V2 this patch implements following changes 1. Get the GID-type for a given sgid. 2. Based on the gid type get IPv4 L3 address and give those to FW. 3. Provide l3-type to FW. Signed-off-by: Somnath Kotur Signed-off-by: Devesh Sharma --- drivers

[PATCH v2 for-next 21/32] IB/mlx4: Lock with RCU instead of RTNL

2015-03-10 Thread Somnath Kotur
problem. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/hw/mlx4/main.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index d8b227e..32cd009 100644 --- a/drivers

[PATCH v2 for-next 18/32] RDMA/ocrdma: changes to support user AH creation

2015-03-10 Thread Somnath Kotur
From: Devesh Sharma To support user space AH this uses ahid field to convey l3-type to user space library. The library is responsible for decoding the l3-type out of ahid. Signed-off-by: Somnath Kotur Signed-off-by: Devesh Sharma --- drivers/infiniband/hw/ocrdma/ocrdma_ah.c | 5

[PATCH v2 for-next 26/32] IB/mlx4: Configure device to work in RoCEv2

2015-03-10 Thread Somnath Kotur
: Somnath Kotur --- drivers/infiniband/hw/mlx4/main.c | 10 +++- drivers/infiniband/hw/mlx4/qp.c | 40 +++ drivers/net/ethernet/mellanox/mlx4/fw.c | 16 - drivers/net/ethernet/mellanox/mlx4/mlx4.h | 3 ++- drivers/net/ethernet/mellanox

[PATCH v2 for-next 22/32] net/mlx4: Postpone the registration of net_device

2015-03-10 Thread Somnath Kotur
his may be confusing to listeners of netdev events. This patch is a preparation to the patch that implements the get_netdev() callback in the IB/mlx4 driver. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/net/ethernet/mellanox/mlx4/en_main.c | 36 d

[PATCH v2 for-next 28/32] net/mlx4_core: Add handling of R-RoCE over IPV4 in qp attach flow

2015-03-10 Thread Somnath Kotur
From: Maor Gottlieb In that case, the IPv4 bit should be enabled in the IB flow spec. Signed-off-by: Maor Gottlieb Signed-off-by: Somnath Kotur --- drivers/net/ethernet/mellanox/mlx4/mcg.c | 14 -- include/linux/mlx4/device.h | 6 ++ 2 files changed, 18

[PATCH v2 for-next 19/32] IB/mlx4: Remove gid table management for RoCE

2015-03-10 Thread Somnath Kotur
answer from the cache when link layer is Ethernet. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/hw/mlx4/main.c| 495 +-- drivers/infiniband/hw/mlx4/mlx4_ib.h | 4 - 2 files changed, 14 insertions(+), 485 deletions(-) diff --git

[PATCH v2 for-next 02/32] IB/core: Add kref to IB devices

2015-03-10 Thread Somnath Kotur
s not held anymore. Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/device.c | 41 include/rdma/ib_verbs.h | 6 ++ 2 files changed, 47 insertions(+) diff --git a/drivers/infiniband/core/device.c b/drivers/

[PATCH v2 for-next 01/32] IB/core: Add RoCE GID cache

2015-03-10 Thread Somnath Kotur
using this RoCE GID cache table, providers must implement a modify_gid callback. The table is managed exclusively by this roce_gid_cache and the provider just need to write the data to the hardware. Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/Makefile

RE: [PATCH 09/30] IB/core: Modify ib_verbs and cma in order to use roce_gid_cache

2015-02-23 Thread Somnath Kotur
> -Original Message- > From: Matan Barak [mailto:mat...@mellanox.com] > Sent: Monday, February 23, 2015 3:47 PM > To: Devesh Sharma; Somnath Kotur; rol...@kernel.org > Cc: linux-rdma@vger.kernel.org > Subject: Re: [PATCH 09/30] IB/core: Modify ib_verbs and c

RE: [PATCH] RDMA/ocrdma: Changes in driver to incorporate the moving of GID Table mgmt to IB/Core.

2015-02-19 Thread Somnath Kotur
Shachar, Yes, it happened by mistake which I realized and immediately sent out the patch with the correct patch number Thanks Som > -Original Message- > From: Shachar Raindel [mailto:rain...@mellanox.com] > Sent: Thursday, February 19, 2015 2:31 PM > To: Somnat

RE: [PATCH v1 00/30] IB/Core: Adding support for RoCEV2 Specification

2015-02-19 Thread Somnath Kotur
Hi Bart, Here's the link to the git tree with the patches https://github.com/matanb10/linux.git branch name: rocev2_rc4 Thanks Som > -Original Message- > From: Bart Van Assche [mailto:bart.vanass...@sandisk.com] > Sent: Thursday, February 19, 2015 1:47 PM >

[PATCH 14/30] RDMA/ocrdma: Changes in driver to incorporate the moving of GID Table mgmt to IB/Core.

2015-02-18 Thread Somnath Kotur
: Somnath Kotur Signed-off-by: Devesh Sharma --- drivers/infiniband/hw/ocrdma/ocrdma.h | 10 ++ drivers/infiniband/hw/ocrdma/ocrdma_hw.c|3 + drivers/infiniband/hw/ocrdma/ocrdma_main.c | 233 +-- drivers/infiniband/hw/ocrdma/ocrdma_sli.h | 13

[PATCH 29/30] IB/mlx4: Create and use another QP1 for RoCEv2

2015-02-18 Thread Somnath Kotur
for receive are required. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/hw/mlx4/mlx4_ib.h |7 ++ drivers/infiniband/hw/mlx4/qp.c | 154 ++ 2 files changed, 143 insertions(+), 18 deletions(-) diff --git a/drivers/infiniband

[PATCH 27/30] IB/core: Initialize UD header structure with IP and UDP headers

2015-02-18 Thread Somnath Kotur
From: Moni Shoua ib_ud_header_init() is used to format InfiniBand headers in a buffer up to (but not with) BTH. For RoCEv2 it is required that this function would be able to build also IP and UDP headers. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/core

[PATCH 30/30] IB/cma: Join and leave multicast groups with IGMP

2015-02-18 Thread Somnath Kotur
From: Moni Shoua Since RoCEv2 is a protocol over IP header it is required to send IGMP join and leave requests to the network when joining and leaving multicast groups. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/core/cma.c | 78

[PATCH 28/30] IB/mlx4: Enable send of RoCE QP1 packets with IP/UDP headers

2015-02-18 Thread Somnath Kotur
. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/hw/mlx4/qp.c | 84 --- 1 files changed, 52 insertions(+), 32 deletions(-) diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c index f55f4d4..9996527 100644

[PATCH 24/30] IB/mlx4: Implement ib_device callback - modify_gid

2015-02-18 Thread Somnath Kotur
indexes is required. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/hw/mlx4/main.c| 224 ++ drivers/infiniband/hw/mlx4/mlx4_ib.h | 18 +++ include/linux/mlx4/cmd.h |3 +- include/linux/mlx4/device.h

[PATCH 26/30] IB/mlx4: Translate cache gid index to real index

2015-02-18 Thread Somnath Kotur
From: Moni Shoua When QP is modified with path the given sgid_index is not necessarily the index that HW knows. This is due to optimizations that can save place in the HW table. Therefore, translation is required. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband

[PATCH 25/30] IB/mlx4: Configure device to work in RoCEv2

2015-02-18 Thread Somnath Kotur
: Somnath Kotur --- drivers/infiniband/hw/mlx4/main.c | 10 ++- drivers/infiniband/hw/mlx4/qp.c | 39 ++-- drivers/net/ethernet/mellanox/mlx4/fw.c | 16 +++- drivers/net/ethernet/mellanox/mlx4/mlx4.h |3 +- drivers/net/ethernet/mellanox

[PATCH 21/30] net/mlx4: Postpone the registration of net_device

2015-02-18 Thread Somnath Kotur
his may be confusing to listeners of netdev events. This patch is a preparation to the patch that implements the get_netdev() callback in the IB/mlx4 driver. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/net/ethernet/mellanox/mlx4/en_main.c | 36 +++--- d

[PATCH 22/30] IB/mlx4: Advertise RoCE support in port capabilities

2015-02-18 Thread Somnath Kotur
From: Moni Shoua The port capability flags should indicate the support in RoCE modes (V1 or V2) of the port. The mlx4 driver sets these flags according to the capabilities reported by the HW. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/hw/mlx4/main.c

[PATCH 23/30] IB/mlx4: Implement ib_device callback - get_netdev

2015-02-18 Thread Somnath Kotur
From: Moni Shoua This is a new callback that is required for RoCEv2 support. In port aggregation mode it is required to return the netdev of the active port so support in mlx4 core driver to figure out that port identity is required. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur

[PATCH 19/30] IB/mlx4: Replace spin_lock with rw_semaphore

2015-02-18 Thread Somnath Kotur
From: Moni Shoua Protection on iboe->netdevs is no longer required to be from an atomic context. Replacing a spin_lock with a semaphore is allowed and makes more sense. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/hw/mlx4/main.c|

[PATCH 17/30] RDMA/ocrdma: changes to support user AH creation

2015-02-18 Thread Somnath Kotur
From: Devesh Sharma To support user space AH this uses ahid field to convey l3-type to user space library. The library is responsible for decoding the l3-type out of ahid. Signed-off-by: Somnath Kotur Signed-off-by: Devesh Sharma --- drivers/infiniband/hw/ocrdma/ocrdma_ah.c |5

[PATCH 20/30] IB/mlx4: Lock with RCU instead of RTNL

2015-02-18 Thread Somnath Kotur
problem. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/hw/mlx4/main.c | 15 +++ 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index d8b227e..32cd009 100644 --- a

[PATCH 16/30] RDMA/ocrdma: changes to support RoCE-v2 in RC path

2015-02-18 Thread Somnath Kotur
From: Devesh Sharma To support RoCE-V2 this patch implements following changes 1. Get the GID-type for a given sgid. 2. Based on the gid type get IPv4 L3 address and give those to FW. 3. Provide l3-type to FW. Signed-off-by: Somnath Kotur Signed-off-by: Devesh Sharma --- drivers

[PATCH 18/30] IB/mlx4: Remove gid table management for RoCE

2015-02-18 Thread Somnath Kotur
answer from the cache when link layer is Ethernet. Signed-off-by: Moni Shoua Signed-off-by: Somnath Kotur --- drivers/infiniband/hw/mlx4/main.c| 495 +- drivers/infiniband/hw/mlx4/mlx4_ib.h |4 - 2 files changed, 14 insertions(+), 485 deletions(-) diff --git

[PATCH] RDMA/ocrdma: Changes in driver to incorporate the moving of GID Table mgmt to IB/Core.

2015-02-18 Thread Somnath Kotur
: Somnath Kotur Signed-off-by: Devesh Sharma --- drivers/infiniband/hw/ocrdma/ocrdma.h | 10 ++ drivers/infiniband/hw/ocrdma/ocrdma_hw.c|3 + drivers/infiniband/hw/ocrdma/ocrdma_main.c | 233 +-- drivers/infiniband/hw/ocrdma/ocrdma_sli.h | 13

[PATCH 03/30] IB/core: Add RoCE GID population

2015-02-18 Thread Somnath Kotur
table. (c) netdev up/down/change_addr - if a netdev is built onto our RoCE device, we need to add/delete its IPs. When an event is received, multiple entries (each with different GID type) are added. Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/Makefile

[PATCH 05/30] IB/core: Add RoCE cache bonding support

2015-02-18 Thread Somnath Kotur
d-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/roce_gid_mgmt.c | 137 ++- drivers/net/bonding/bond_options.c | 13 --- include/net/bonding.h |7 ++ 3 files changed, 140 insertions(+), 17 deletions(-) diff

RE: [PATCH 00/30] IB/Core: Adding support for RoCEV2 Specification

2015-02-18 Thread Somnath Kotur
ernel.org] On Behalf Of Somnath Kotur > Sent: Thursday, February 19, 2015 3:44 PM > To: rol...@kernel.org > Cc: linux-rdma@vger.kernel.org; Somnath Kotur > Subject: [PATCH 00/30] IB/Core: Adding support for RoCEV2 Specification > > Hi Roland, > > This patch series was cre

[PATCH 01/30] IB/core: Add RoCE GID cache

2015-02-18 Thread Somnath Kotur
using this RoCE GID cache table, providers must implement a modify_gid callback. The table is managed exclusively by this roce_gid_cache and the provider just need to write the data to the hardware. Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/Mak

[PATCH 02/30] IB/core: Add kref to IB devices

2015-02-18 Thread Somnath Kotur
s not held anymore. Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/device.c | 41 ++ include/rdma/ib_verbs.h |6 + 2 files changed, 47 insertions(+), 0 deletions(-) diff --git a/drivers/infiniband/core/

[PATCH 10/30] IB/core: Add gid_type to path and rdma_id_private

2015-02-18 Thread Somnath Kotur
From: Matan Barak When using rdma cm, we want to take the gid_type from the rdma_id_private. This is mandatory before adding an API from user-space/configfs that sets the gid_type of CM connection. Signed-off-by: Matan Barak Signed-off-by: Somnath Kotur --- drivers/infiniband/core/cm.c

[PATCH 13/30] IB/Core: Changes to the IB Core infrastructure for RoCEv2 support

2015-02-18 Thread Somnath Kotur
1. Choose sgid_index and type from all the matching entries in RDMA-CM based on hint from the IP stack. 2. Set hop_limit for the IP Packet based on above hint from IP stack 3. Define a RDMA_NETWORK enum type. Signed-off-by: Somnath Kotur Signed-off-by: Matan Barak --- drivers/infiniband

  1   2   >