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:
>&
> -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
> -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
>
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
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
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
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
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
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
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
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
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
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
.
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
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
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
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|
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
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
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
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
: 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
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
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/
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
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
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 --
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
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
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
-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
(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
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
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
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
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
: 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
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
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
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
.
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
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
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
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
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
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
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
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
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
(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
-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
: 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
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
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
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|
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
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
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
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
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
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
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
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 --
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|
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
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
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
: 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
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
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
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
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/
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
> -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
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
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
>
: 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
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
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
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
.
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
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
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
: 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
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
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
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
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|
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
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
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
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
: 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
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
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
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
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
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/
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
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 - 100 of 172 matches
Mail list logo