Re: CFP: 4th RDMA Mini-Summit at LPC 2019

2019-05-28 Thread Leon Romanovsky
REMINDER On Tue, May 14, 2019 at 03:23:21PM +0300, Leon Romanovsky wrote: > This is a call for proposals for the 4th RDMA mini-summit at the Linux > Plumbers Conference in Lisbon, Portugal, which will be happening on > September 9-11h, 2019. > > We are looking for topics with

Re: [PATCH rdma-next v2 05/17] RDMA/counter: Add set/clear per-port auto mode support

2019-05-29 Thread Leon Romanovsky
On Wed, May 22, 2019 at 01:56:08PM -0300, Jason Gunthorpe wrote: > On Mon, Apr 29, 2019 at 11:34:41AM +0300, Leon Romanovsky wrote: > > From: Mark Zhang > > > > Add an API to support set/clear per-port auto mode. > > > > Signed-off-by: Mark Zhang > > Revie

Re: [PATCH rdma-next v2 05/17] RDMA/counter: Add set/clear per-port auto mode support

2019-05-29 Thread Leon Romanovsky
On Wed, May 29, 2019 at 01:12:18PM +0300, Leon Romanovsky wrote: > On Wed, May 22, 2019 at 01:56:08PM -0300, Jason Gunthorpe wrote: > > On Mon, Apr 29, 2019 at 11:34:41AM +0300, Leon Romanovsky wrote: > > > From: Mark Zhang > > > > > > Add an API to

Re: [PATCH rdma-next v2 13/17] RDMA/core: Get sum value of all counters when perform a sysfs stat read

2019-05-29 Thread Leon Romanovsky
On Wed, May 22, 2019 at 02:26:36PM -0300, Jason Gunthorpe wrote: > On Mon, Apr 29, 2019 at 11:34:49AM +0300, Leon Romanovsky wrote: > > diff --git a/drivers/infiniband/core/device.c > > b/drivers/infiniband/core/device.c > > index c56ffc61ab1e..8ae4906a60e7 100644 > &g

Re: [PATCH rdma-next v2 13/17] RDMA/core: Get sum value of all counters when perform a sysfs stat read

2019-05-29 Thread Leon Romanovsky
On Wed, May 22, 2019 at 02:10:42PM -0300, Jason Gunthorpe wrote: > On Mon, Apr 29, 2019 at 11:34:49AM +0300, Leon Romanovsky wrote: > > From: Mark Zhang > > > > Since a QP can only be bound to one counter, then if it is bound to a > > separate counter, for backward

Re: [PATCH rdma-next v2 13/17] RDMA/core: Get sum value of all counters when perform a sysfs stat read

2019-05-29 Thread Leon Romanovsky
On Mon, Apr 29, 2019 at 11:34:49AM +0300, Leon Romanovsky wrote: > From: Mark Zhang > > Since a QP can only be bound to one counter, then if it is bound to a > separate counter, for backward compatibility purpose, the statistic > value must be: > * stat of default counter >

Re: [PATCH rdma-next v2 11/17] RDMA/netlink: Implement counter dumpit calback

2019-05-29 Thread Leon Romanovsky
On Wed, May 22, 2019 at 02:21:37PM -0300, Jason Gunthorpe wrote: > On Mon, Apr 29, 2019 at 11:34:47AM +0300, Leon Romanovsky wrote: > > From: Mark Zhang > > > > This patch adds the ability to return all available counters > > together with their properties and hwstats.

Re: [PATCH rdma-next v2 17/17] RDMA/nldev: Allow get default counter statistics through RDMA netlink

2019-05-29 Thread Leon Romanovsky
On Wed, May 22, 2019 at 02:30:11PM -0300, Jason Gunthorpe wrote: > On Mon, Apr 29, 2019 at 11:34:53AM +0300, Leon Romanovsky wrote: > > From: Mark Zhang > > > > This patch adds the ability to return the hwstats of per-port default > > counters (which can also be

Re: [PATCH rdma-next v2 13/17] RDMA/core: Get sum value of all counters when perform a sysfs stat read

2019-05-30 Thread Leon Romanovsky
On Thu, May 30, 2019 at 06:01:46AM +, Mark Zhang wrote: > On 5/29/2019 11:44 PM, Jason Gunthorpe wrote: > > On Wed, May 29, 2019 at 02:05:24PM +0300, Leon Romanovsky wrote: > >> On Wed, May 22, 2019 at 02:26:36PM -0300, Jason Gunthorpe wrote: > >>> On Mon, Ap

Re: [pull request][for-next 0/9] Generic DIM lib for netdev and RDMA

2019-06-06 Thread Leon Romanovsky
On Wed, Jun 05, 2019 at 11:24:31PM +, Saeed Mahameed wrote: > Hi Dave, Doug & Jason > > This series improves DIM - Dynamically-tuned Interrupt > Moderation- to be generic for netdev and RDMA use-cases. > > From Tal and Yamin: > The first 7 patches provide the necessary refactoring to current ne

Re: [pull request][for-next 0/9] Generic DIM lib for netdev and RDMA

2019-06-06 Thread Leon Romanovsky
On Thu, Jun 06, 2019 at 10:19:41AM +0300, Max Gurtovoy wrote: > > On 6/6/2019 10:14 AM, Leon Romanovsky wrote: > > On Wed, Jun 05, 2019 at 11:24:31PM +, Saeed Mahameed wrote: > > > Hi Dave, Doug & Jason > > > > > > This series improves DIM - Dynamica

[PATCH rdma-next 2/3] RDMA/mlx5: Consider eswitch encap mode

2019-06-06 Thread Leon Romanovsky
at on flow tables') Signed-off-by: Maor Gottlieb Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/main.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index 5fd5db2b397

[PATCH mlx5-next 1/3] net/mlx5: Expose eswitch encap mode

2019-06-06 Thread Leon Romanovsky
From: Maor Gottlieb Add API to get the current Eswitch encap mode. It will be used in downstream patches to check if flow table can be created with encap support or not. Signed-off-by: Maor Gottlieb Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 10

[PATCH rdma-next 0/3] Expose ENCAP mode to mlx5_ib

2019-06-06 Thread Leon Romanovsky
From: Leon Romanovsky Hi, This is short series from Maor to expose and use enacap mode inside mlx5_ib. Thanks Maor Gottlieb (3): net/mlx5: Expose eswitch encap mode RDMA/mlx5: Consider eswitch encap mode RDMA/mlx5: Enable decap and packet reformat on FDB drivers/infiniband/hw/mlx5

[PATCH rdma-next 3/3] RDMA/mlx5: Enable decap and packet reformat on FDB

2019-06-06 Thread Leon Romanovsky
From: Maor Gottlieb If FDB flow tables support decap operation, enable it on creation, This allows to perform decapsulation of tunnelled packets by steering rules. If FDB flow tables support reformat operation, enable it on creation as well. Signed-off-by: Maor Gottlieb Signed-off-by: Leon

Re: [PATCH mlx5-next 1/3] net/mlx5: Expose eswitch encap mode

2019-06-08 Thread Leon Romanovsky
On Thu, Jun 06, 2019 at 01:08:46PM +, Parav Pandit wrote: > > > > -Original Message- > > From: linux-rdma-ow...@vger.kernel.org > ow...@vger.kernel.org> On Behalf Of Leon Romanovsky > > Sent: Thursday, June 6, 2019 4:36 PM > > To: Doug Ledford

Re: [PATCH mlx5-next 1/3] net/mlx5: Expose eswitch encap mode

2019-06-08 Thread Leon Romanovsky
gt; > > Signed-off-by: Maor Gottlieb > > Signed-off-by: Leon Romanovsky > Reviewed-by: Petr Vorel Thanks Petr for review, I'll add your tags and resend. > > Kind regards, > Petr

Re: [PATCH iproute2-rc 1/8] rdma: Update uapi headers to add statistic counter support

2019-07-15 Thread Leon Romanovsky
On Mon, Jul 15, 2019 at 01:52:38PM -0700, Stephen Hemminger wrote: > On Wed, 10 Jul 2019 10:24:48 +0300 > Leon Romanovsky wrote: > > > From: Mark Zhang > > > > Update rdma_netlink.h to kernel commit 6e7be47a5345 ("RDMA/nldev: > > Allow get default c

Re: [PATCH iproute2-rc 8/8] rdma: Document counter statistic

2019-07-16 Thread Leon Romanovsky
On Tue, Jul 16, 2019 at 11:19:26AM +0300, Gal Pressman wrote: > On 10/07/2019 10:24, Leon Romanovsky wrote: > > +.SH "EXAMPLES" > > +.PP > > +rdma statistic show > > +.RS 4 > > +Shows the state of the default counter of all RDMA devices on the system.

Re: [PATCH iproute2-rc 2/8] rdma: Add "stat qp show" support

2019-07-17 Thread Leon Romanovsky
On Tue, Jul 16, 2019 at 12:01:28PM -0700, Stephen Hemminger wrote: > On Wed, 10 Jul 2019 10:24:49 +0300 > Leon Romanovsky wrote: > > > From: Mark Zhang > > > > This patch presents link, id, task name, lqpn, as well as all sub > > counters of a QP counter.

[PATCH iproute2-rc v1 0/7] Statistics counter support

2019-07-17 Thread Leon Romanovsky
From: Leon Romanovsky Changelog v0->v1: * Fixed typo in manual page (Gal) * Rebased on top of d035cc1b "ip tunnel: warn when changing IPv6 tunnel without tunnel name" * Dropped update header file because it was a

[PATCH iproute2-rc v1 2/7] rdma: Add get per-port counter mode support

2019-07-17 Thread Leon Romanovsky
re bound to a counter manually. Examples: $ rdma statistic qp mode 0/1: mlx5_0/1: qp auto off 1/1: mlx5_1/1: qp auto off 2/1: mlx5_2/1: qp auto type on 3/1: mlx5_3/1: qp auto off $ rdma statistic qp mode link mlx5_0 0/1: mlx5_0/1: qp auto off Signed-off-by: Mark Zhang Signed-off-by: Leon Roman

[PATCH iproute2-rc v1 3/7] rdma: Add rdma statistic counter per-port auto mode support

2019-07-17 Thread Leon Romanovsky
auto off Signed-off-by: Mark Zhang Signed-off-by: Leon Romanovsky --- rdma/stat.c | 87 rdma/utils.c | 1 + 2 files changed, 88 insertions(+) diff --git a/rdma/stat.c b/rdma/stat.c index 0c239851..ad1cc063 100644 --- a/rdma/stat.c +++

[PATCH iproute2-rc v1 5/7] rdma: Add stat manual mode support

2019-07-17 Thread Leon Romanovsky
f-by: Mark Zhang Signed-off-by: Leon Romanovsky --- rdma/stat.c | 192 1 file changed, 192 insertions(+) diff --git a/rdma/stat.c b/rdma/stat.c index ad1cc063..942c1ac3 100644 --- a/rdma/stat.c +++ b/rdma/stat.c @@ -15,6 +15,8 @@ static int

[PATCH iproute2-rc v1 7/7] rdma: Document counter statistic

2019-07-17 Thread Leon Romanovsky
From: Mark Zhang Add document of accessing the QP counter, including bind/unbind a QP to a counter manually or automatically, and dump counter statistics. Signed-off-by: Mark Zhang Signed-off-by: Leon Romanovsky --- man/man8/rdma-dev.8 | 1 + man/man8/rdma-link.8 | 1 + man

[PATCH iproute2-rc v1 1/7] rdma: Add "stat qp show" support

2019-07-17 Thread Leon Romanovsky
dled 0 np_ecn_marked_roce_packets 0 np_cnp_sent 0 Signed-off-by: Mark Zhang Signed-off-by: Leon Romanovsky --- rdma/Makefile | 2 +- rdma/rdma.c | 3 +- rdma/rdma.h | 1 + rdma/stat.c | 268 ++ rdma/utils.c | 7 ++ 5 files changed, 279 inse

[PATCH iproute2-rc v1 4/7] rdma: Make get_port_from_argv() returns valid port in strict port mode

2019-07-17 Thread Leon Romanovsky
From: Mark Zhang When strict_port is set, make get_port_from_argv() returns failure if no valid port is specified. Signed-off-by: Mark Zhang Signed-off-by: Leon Romanovsky --- rdma/utils.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rdma/utils.c b/rdma/utils.c

[PATCH iproute2-rc v1 6/7] rdma: Add default counter show support

2019-07-17 Thread Leon Romanovsky
rp_cnp_handled 0 np_ecn_marked_roce_packets 0 np_cnp_sent 0 rx_icrc_encapsulated 0 Signed-off-by: Mark Zhang Signed-off-by: Leon Romanovsky --- rdma/stat.c | 74 - 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/rdma/stat.c b/rdma

[PATCH mlx5-next] net/mlx5: Fix modify_cq_in alignment

2019-07-23 Thread Leon Romanovsky
wed-by: Yishai Hadas Signed-off-by: Leon Romanovsky --- include/linux/mlx5/mlx5_ifc.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h index b3d5752657d9..ec571fd7fcf8 100644 --- a/include/linux/mlx5/mlx5_ifc.h +++

[PATCH net 1/2] linux/dim: Fix overflow in dim calculation

2019-07-23 Thread Leon Romanovsky
f-by: Yamin Friedman Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/broadcom/bcmsysport.c| 2 +- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +- drivers/net/ethernet/broadcom/genet/bcmgenet.c| 2 +- drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c | 4

[PATCH net 0/2] DIM fixes for 5.3

2019-07-23 Thread Leon Romanovsky
From: Leon Romanovsky Hi, Those two fixes for recently merged DIM patches, both exposed through RDMa DIM usage. Thanks Leon Romanovsky (1): lib/dim: Fix -Wunused-const-variable warnings Yamin Friedman (1): linux/dim: Fix overflow in dim calculation drivers/net/ethernet/broadcom

[PATCH net 2/2] lib/dim: Fix -Wunused-const-variable warnings

2019-07-23 Thread Leon Romanovsky
From: Leon Romanovsky DIM causes to the following warnings during kernel compilation which indicates that tx_profile and rx_profile are supposed to be declared in *.c and not in *.h files. In file included from ./include/rdma/ib_verbs.h:64, from ./include/linux/mlx5/device.h:37

Re: [PATCH net 2/2] lib/dim: Fix -Wunused-const-variable warnings

2019-07-23 Thread Leon Romanovsky
On Tue, Jul 23, 2019 at 05:05:19PM +, Saeed Mahameed wrote: > On Tue, 2019-07-23 at 10:22 +0300, Leon Romanovsky wrote: > > From: Leon Romanovsky > > > > DIM causes to the following warnings during kernel compilation > > which indicates that tx_profile and rx_pro

Re: [PATCH net 1/2] linux/dim: Fix overflow in dim calculation

2019-07-23 Thread Leon Romanovsky
On Tue, Jul 23, 2019 at 05:22:43PM +, Saeed Mahameed wrote: > On Tue, 2019-07-23 at 10:22 +0300, Leon Romanovsky wrote: > > From: Yamin Friedman > > > > While using net_dim, a dim_sample was used without ever initializing > > the > > comps value. Added use o

Re: [PATCH mlx5-next] net/mlx5: Fix modify_cq_in alignment

2019-07-23 Thread Leon Romanovsky
On Tue, Jul 23, 2019 at 11:28:50AM -0700, David Miller wrote: > From: Leon Romanovsky > Date: Tue, 23 Jul 2019 10:12:55 +0300 > > > From: Edward Srouji > > > > Fix modify_cq_in alignment to match the device specification. > > After this fix the 'cq_umem_va

Re: [PATCH mlx5-next] net/mlx5: Fix modify_cq_in alignment

2019-07-23 Thread Leon Romanovsky
On Tue, Jul 23, 2019 at 08:34:07PM +, Saeed Mahameed wrote: > On Tue, 2019-07-23 at 13:02 -0700, David Miller wrote: > > From: Leon Romanovsky > > Date: Tue, 23 Jul 2019 22:04:14 +0300 > > > > > The intention was to have this patch in shared mlx5 branch, which

Re: [PATCH mlx5-next] net/mlx5: Fix modify_cq_in alignment

2019-07-24 Thread Leon Romanovsky
On Wed, Jul 24, 2019 at 08:56:08PM +, Saeed Mahameed wrote: > On Tue, 2019-07-23 at 22:04 +0300, Leon Romanovsky wrote: > > On Tue, Jul 23, 2019 at 11:28:50AM -0700, David Miller wrote: > > > From: Leon Romanovsky > > > Date: Tue, 23 Jul 2019 10:12:55 +0300 > &

[PATCH iproute2-rc 2/2] rdma: Document adaptive-moderation

2019-07-29 Thread Leon Romanovsky
From: Yamin Friedman Add document of setting the adaptive-moderation for the ib device. Signed-off-by: Yamin Friedman Signed-off-by: Leon Romanovsky --- man/man8/rdma-dev.8 | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/man/man8/rdma-dev.8 b/man/man8

[PATCH iproute2-rc 1/2] rdma: Control CQ adaptive moderation (DIM)

2019-07-29 Thread Leon Romanovsky
resource show cq dev mlx5_0 cqn 0 cqe 1023 users 4 poll-ctx UNBOUND_WORKQUEUE adaptive-moderation off comm [ib_core] Signed-off-by: Yamin Friedman Signed-off-by: Leon Romanovsky --- rdma/dev.c| 55 ++- rdma/rdma.h | 1 + rdma/res-cq.c | 15

[PATCH iproute2-rc 0/2] Control CQ adaptive moderation (RDMA DIM)

2019-07-29 Thread Leon Romanovsky
From: Leon Romanovsky Hi, This is supplementary part of RDMA DIM feature [1] accepted for the kernel v5.3. In this patch set Yamin extends rdmatool to get/set as a default this adaptive-moderation setting on IB device level and provides an information about DIM on/off status per-CQ. Thanks [1

[PATCH rdma-next 2/3] IB/mlx5: Expose ODP for DC capabilities to user

2019-08-01 Thread Leon Romanovsky
From: Michael Guralnik Return ODP capabilities for DC to user in alloc_context. Signed-off-by: Michael Guralnik Reviewed-by: Moni Shoua Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/main.c | 6 ++ include/uapi/rdma/mlx5-abi.h | 2 ++ 2 files changed, 8 insertions

[PATCH rdma-next 0/3] ODP support for mlx5 DC QPs

2019-08-01 Thread Leon Romanovsky
From: Leon Romanovsky >From Michael, The series adds support for on-demand paging for DC transport. Adding handling of DC WQE parsing upon page faults and exposing capabilities. As DC is mlx-only transport, the capabilities are exposed to the user using the direct-verbs mechanism. Nam

[PATCH mlx5-next 1/3] IB/mlx5: Query ODP capabilities for DC

2019-08-01 Thread Leon Romanovsky
From: Michael Guralnik Set current capabilities of ODP for DC to max capabilities and cache them in mlx5_ib. Signed-off-by: Michael Guralnik Reviewed-by: Moni Shoua Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/mlx5_ib.h | 1 + drivers/infiniband/hw/mlx5/odp.c

[PATCH rdma-next 3/3] IB/mlx5: Add page fault handler for DC initiator WQE

2019-08-01 Thread Leon Romanovsky
From: Michael Guralnik Parsing DC initiator WQEs upon page fault requires skipping an address vector segment, as in UD WQEs. Signed-off-by: Michael Guralnik Reviewed-by: Moni Shoua Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/odp.c | 9 - 1 file changed, 8

Re: [PATCH rdma-next 2/3] IB/mlx5: Expose ODP for DC capabilities to user

2019-08-01 Thread Leon Romanovsky
On Thu, Aug 01, 2019 at 03:34:24PM +0300, Gal Pressman wrote: > On 01/08/2019 15:21, Leon Romanovsky wrote: > > enum mlx5_user_cmds_supp_uhw { > > @@ -147,6 +148,7 @@ struct mlx5_ib_alloc_ucontext_resp { > > __u32 num_uars_per_page; > > __u32 nu

Re: [PATCH mlx5-next 1/3] IB/mlx5: Query ODP capabilities for DC

2019-08-01 Thread Leon Romanovsky
On Thu, Aug 01, 2019 at 02:25:16PM +, Jason Gunthorpe wrote: > On Thu, Aug 01, 2019 at 03:21:37PM +0300, Leon Romanovsky wrote: > > > diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h > > index ec571fd7fcf8..5eae8d734435 100644 > > +++ b/inclu

Re: [PATCH rdma-next 0/3] ODP support for mlx5 DC QPs

2019-08-01 Thread Leon Romanovsky
On Thu, Aug 01, 2019 at 02:24:37PM +, Jason Gunthorpe wrote: > On Thu, Aug 01, 2019 at 03:21:36PM +0300, Leon Romanovsky wrote: > > From: Leon Romanovsky > > > > From Michael, > > > > The series adds support for on-demand paging for DC transport. > >

Re: [PATCH iproute2-next] rdma: Add driver QP type string

2019-08-04 Thread Leon Romanovsky
eletions(-) > Thanks, Reviewed-by: Leon Romanovsky

[PATCH rdma-next v1 2/3] IB/mlx5: Expose ODP for DC capabilities to user

2019-08-04 Thread Leon Romanovsky
From: Michael Guralnik Return ODP capabilities for DC to user in alloc_context. Signed-off-by: Michael Guralnik Reviewed-by: Moni Shoua Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/main.c | 6 ++ include/uapi/rdma/mlx5-abi.h | 3 +++ 2 files changed, 9 insertions

[PATCH rdma-next v1 3/3] IB/mlx5: Add page fault handler for DC initiator WQE

2019-08-04 Thread Leon Romanovsky
From: Michael Guralnik Parsing DC initiator WQEs upon page fault requires skipping an address vector segment, as in UD WQEs. Signed-off-by: Michael Guralnik Reviewed-by: Moni Shoua Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/odp.c | 9 - 1 file changed, 8

[PATCH rdma-next v1 0/3] ODP support for mlx5 DC QPs

2019-08-04 Thread Leon Romanovsky
From: Leon Romanovsky Changelog v1: * Fixed alignment to u64 in mlx5-abi.h (Gal P.) v0: * https://lore.kernel.org/linux-rdma/20190801122139.25224-1-l...@kernel.org - >From Michael, The series adds support

[PATCH mlx5-next v1 1/3] IB/mlx5: Query ODP capabilities for DC

2019-08-04 Thread Leon Romanovsky
From: Michael Guralnik Set current capabilities of ODP for DC to max capabilities and cache them in mlx5_ib. Signed-off-by: Michael Guralnik Reviewed-by: Moni Shoua Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/mlx5_ib.h | 1 + drivers/infiniband/hw/mlx5/odp.c

Re: [PATCH iproute2-next] rdma: Add driver QP type string

2019-08-05 Thread Leon Romanovsky
On Tue, Aug 06, 2019 at 09:41:37AM +0300, Gal Pressman wrote: > On 05/08/2019 22:08, David Ahern wrote: > > On 8/4/19 2:07 AM, Gal Pressman wrote: > >> RDMA resource tracker now tracks driver QPs as well, add driver QP type > >> string to qp_types_to_str function. > > > > "now" means which kernel r

Re: [PATCH mlx5-next v1 1/3] IB/mlx5: Query ODP capabilities for DC

2019-08-06 Thread Leon Romanovsky
On Mon, Aug 05, 2019 at 06:23:04PM +, Saeed Mahameed wrote: > On Sun, 2019-08-04 at 13:00 +0300, Leon Romanovsky wrote: > > From: Michael Guralnik > > > > Set current capabilities of ODP for DC to max capabilities and cache > > them in mlx5_ib. > > &g

[PATCH mlx5-next v2 1/4] net/mlx5: Set ODP capabilities for DC transport

2019-08-06 Thread Leon Romanovsky
From: Michael Guralnik Query ODP capabilities for DC transport from FW. Signed-off-by: Michael Guralnik Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/main.c | 6 ++ include/linux/mlx5/mlx5_ifc.h | 4 +++- 2 files changed, 9 insertions(+), 1

[PATCH rdma-next v2 0/4] ODP support for mlx5 DC QPs

2019-08-06 Thread Leon Romanovsky
From: Leon Romanovsky Changelog v2: * Fixed reserved_* field wrong name (Saeed M.) * Split first patch to two patches, one for mlx5-next and one for rdma-next. (Saeed M.) v1: * Fixed alignment to u64 in mlx5-abi.h (Gal P.) * https://lore.kernel.org/linux-rdma/20190804100048.32671-1-l

[PATCH rdma-next v2 2/4] IB/mlx5: Query ODP capabilities for DC

2019-08-06 Thread Leon Romanovsky
From: Michael Guralnik Cache current ODP capabilities for DC in mlx5_ib device. Signed-off-by: Michael Guralnik Reviewed-by: Moni Shoua Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/mlx5_ib.h | 1 + drivers/infiniband/hw/mlx5/odp.c | 18 ++ 2 files

[PATCH rdma-next v2 4/4] IB/mlx5: Add page fault handler for DC initiator WQE

2019-08-06 Thread Leon Romanovsky
From: Michael Guralnik Parsing DC initiator WQEs upon page fault requires skipping an address vector segment, as in UD WQEs. Signed-off-by: Michael Guralnik Reviewed-by: Moni Shoua Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/odp.c | 9 - 1 file changed, 8

[PATCH rdma-next v2 3/4] IB/mlx5: Expose ODP for DC capabilities to user

2019-08-06 Thread Leon Romanovsky
From: Michael Guralnik Return ODP capabilities for DC to user in alloc_context. Signed-off-by: Michael Guralnik Reviewed-by: Moni Shoua Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/main.c | 6 ++ include/uapi/rdma/mlx5-abi.h | 3 +++ 2 files changed, 9 insertions

Re: [PATCH rdma-next v2 0/4] ODP support for mlx5 DC QPs

2019-08-06 Thread Leon Romanovsky
On Tue, Aug 06, 2019 at 10:48:03AM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky > > Changelog > v2: > * Fixed reserved_* field wrong name (Saeed M.) > * Split first patch to two patches, one for mlx5-next and one for rdma-next. > (Saeed M.) > v1: > * Fix

[PATCH mlx5-next 1/4] net/mlx5: Use debug message instead of warn

2019-08-08 Thread Leon Romanovsky
From: Yishai Hadas As QP may be created by DEVX, it may be valid to not find the rsn in mlx5 core tree, change the level to be debug. Signed-off-by: Yishai Hadas Reviewed-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/qp.c | 2 +- 1 file

[PATCH rdma-next 0/4] Add XRQ and SRQ support to DEVX interface

2019-08-08 Thread Leon Romanovsky
From: Leon Romanovsky Hi, This small series extends DEVX interface with SRQ and XRQ legacy commands. Thanks Yishai Hadas (4): net/mlx5: Use debug message instead of warn net/mlx5: Add XRQ legacy commands opcodes IB/mlx5: Add legacy events to DEVX list IB/mlx5: Expose XRQ legacy

[PATCH mlx5-next 2/4] net/mlx5: Add XRQ legacy commands opcodes

2019-08-08 Thread Leon Romanovsky
From: Yishai Hadas Add XRQ legacy commands opcodes, will be used via the DEVX interface. Signed-off-by: Yishai Hadas Reviewed-by: Saeed Mahameed Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/cmd.c | 4 include/linux/mlx5/mlx5_ifc.h | 2 ++ 2

[PATCH mlx5-next 3/4] IB/mlx5: Add legacy events to DEVX list

2019-08-08 Thread Leon Romanovsky
-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/devx.c | 8 include/linux/mlx5/device.h | 9 + 2 files changed, 17 insertions(+) diff --git a/drivers/infiniband/hw/mlx5/devx.c b/drivers/infiniband/hw/mlx5/devx.c index fd577ffd7864..3dbdfe0eb5e4 100644 --- a/drivers

[PATCH rdma-next 4/4] IB/mlx5: Expose XRQ legacy commands over the DEVX interface

2019-08-08 Thread Leon Romanovsky
From: Yishai Hadas Expose missing XRQ legacy commands over the DEVX interface. Signed-off-by: Yishai Hadas Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/devx.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/infiniband/hw/mlx5/devx.c b/drivers/infiniband/hw

Re: [PATCH rdma-next 0/4] Add XRQ and SRQ support to DEVX interface

2019-08-08 Thread Leon Romanovsky
On Thu, Aug 08, 2019 at 11:43:54AM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky > > Hi, > > This small series extends DEVX interface with SRQ and XRQ legacy commands. Sorry for typo in cover letter, there is no SRQ here. Thanks > > Thanks > > Yishai Hadas (

Re: [PATCH rdma-next 0/4] Add XRQ and SRQ support to DEVX interface

2019-08-13 Thread Leon Romanovsky
On Mon, Aug 12, 2019 at 11:43:58AM -0400, Doug Ledford wrote: > On Thu, 2019-08-08 at 10:11 +0000, Leon Romanovsky wrote: > > On Thu, Aug 08, 2019 at 11:43:54AM +0300, Leon Romanovsky wrote: > > > From: Leon Romanovsky > > > > > > Hi, > > > > >

Re: [PATCH mlx5-next v1 1/5] PCI: Add sysfs callback to allow MSI-X table size change of SR-IOV VFs

2021-01-12 Thread Leon Romanovsky
On Tue, Jan 12, 2021 at 01:59:51PM -0800, Alexander Duyck wrote: > On Mon, Jan 11, 2021 at 10:39 PM Leon Romanovsky wrote: > > > > On Mon, Jan 11, 2021 at 11:30:33AM -0800, Alexander Duyck wrote: > > > On Sun, Jan 10, 2021 at 7:12 AM Leon Romanovsky wrote: > > >

Re: [PATCH mlx5-next v1 2/5] PCI: Add SR-IOV sysfs entry to read number of MSI-X vectors

2021-01-12 Thread Leon Romanovsky
On Tue, Jan 12, 2021 at 01:34:50PM -0800, Alexander Duyck wrote: > On Mon, Jan 11, 2021 at 10:56 PM Leon Romanovsky wrote: > > > > On Mon, Jan 11, 2021 at 11:30:39AM -0800, Alexander Duyck wrote: > > > On Sun, Jan 10, 2021 at 7:10 AM Leon Romanovsky wrote: > > >

Re: [PATCH mlx5-next v1 1/5] PCI: Add sysfs callback to allow MSI-X table size change of SR-IOV VFs

2021-01-13 Thread Leon Romanovsky
On Wed, Jan 13, 2021 at 10:50:52AM -0700, Alex Williamson wrote: > On Sun, 10 Jan 2021 17:07:23 +0200 > Leon Romanovsky wrote: > > > From: Leon Romanovsky > > > > Extend PCI sysfs interface with a new callback that allows configure > > the number of MSI-X vecto

Re: [PATCH mlx5-next v1 2/5] PCI: Add SR-IOV sysfs entry to read number of MSI-X vectors

2021-01-13 Thread Leon Romanovsky
On Wed, Jan 13, 2021 at 02:44:45PM -0800, Alexander Duyck wrote: > On Tue, Jan 12, 2021 at 10:19 PM Leon Romanovsky wrote: > > > > On Tue, Jan 12, 2021 at 01:34:50PM -0800, Alexander Duyck wrote: > > > On Mon, Jan 11, 2021 at 10:56 PM Leon Romanovsky wrote: > > &g

Re: [PATCH mlx5-next v1 1/5] PCI: Add sysfs callback to allow MSI-X table size change of SR-IOV VFs

2021-01-13 Thread Leon Romanovsky
On Wed, Jan 13, 2021 at 12:00:00PM -0800, Alexander Duyck wrote: > On Tue, Jan 12, 2021 at 10:09 PM Leon Romanovsky wrote: > > > > On Tue, Jan 12, 2021 at 01:59:51PM -0800, Alexander Duyck wrote: > > > On Mon, Jan 11, 2021 at 10:39 PM Leon Romanovsky wrote: > > &g

[PATCH mlx5-next v2 0/5] Dynamically assign MSI-X vectors count

2021-01-14 Thread Leon Romanovsky
From: Leon Romanovsky Changelog v2: * Patch 1: * Renamed vf_msix_vec sysfs knob to be sriov_vf_msix_count * Added PF and VF device locks during set MSI-X call to protect from parallel driver bind/unbind operations. * Removed extra checks when reading sriov_vf_msix, because users will

[PATCH mlx5-next v2 4/5] net/mlx5: Dynamically assign MSI-X vectors count

2021-01-14 Thread Leon Romanovsky
From: Leon Romanovsky The number of MSI-X vectors is PCI property visible through lspci, that field is read-only and configured by the device. The static assignment of an amount of MSI-X vectors doesn't allow utilize the newly created VF because it is not known to the device the future loa

[PATCH mlx5-next v2 2/5] PCI: Add SR-IOV sysfs entry to read total number of dynamic MSI-X vectors

2021-01-14 Thread Leon Romanovsky
From: Leon Romanovsky Some SR-IOV capable devices provide an ability to configure specific number of MSI-X vectors on their VF prior driver is probed on that VF. In order to make management easy, provide new read-only sysfs file that returns a total number of possible to configure MSI-X vectors

[PATCH mlx5-next v2 3/5] net/mlx5: Add dynamic MSI-X capabilities bits

2021-01-14 Thread Leon Romanovsky
From: Leon Romanovsky These new fields declare the number of MSI-X vectors that is possible to allocate on the VF through PF configuration. Value must be in range defined by min_dynamic_vf_msix_table_size and max_dynamic_vf_msix_table_size. The driver should continue to query its MSI-X table

[PATCH mlx5-next v2 5/5] net/mlx5: Allow to the users to configure number of MSI-X vectors

2021-01-14 Thread Leon Romanovsky
From: Leon Romanovsky Implement ability to configure MSI-X for the SR-IOV VFs. Signed-off-by: Leon Romanovsky --- .../net/ethernet/mellanox/mlx5/core/main.c| 1 + .../ethernet/mellanox/mlx5/core/mlx5_core.h | 1 + .../net/ethernet/mellanox/mlx5/core/pci_irq.c | 4 +- .../net/ethernet

[PATCH mlx5-next v2 1/5] PCI: Add sysfs callback to allow MSI-X table size change of SR-IOV VFs

2021-01-14 Thread Leon Romanovsky
From: Leon Romanovsky Extend PCI sysfs interface with a new callback that allows configure the number of MSI-X vectors for specific SR-IO VF. This is needed to optimize the performance of newly bound devices by allocating the number of vectors based on the administrator knowledge of targeted VM

Re: [PATCH mlx5-next v1 1/5] PCI: Add sysfs callback to allow MSI-X table size change of SR-IOV VFs

2021-01-14 Thread Leon Romanovsky
On Thu, Jan 14, 2021 at 08:51:22AM -0800, Alexander Duyck wrote: > On Wed, Jan 13, 2021 at 11:16 PM Leon Romanovsky wrote: > > > > On Wed, Jan 13, 2021 at 12:00:00PM -0800, Alexander Duyck wrote: > > > On Tue, Jan 12, 2021 at 10:09 PM Leon Romanovsky wrote: > > &g

Re: [PATCH mlx5-next v1 2/5] PCI: Add SR-IOV sysfs entry to read number of MSI-X vectors

2021-01-14 Thread Leon Romanovsky
On Thu, Jan 14, 2021 at 08:40:14AM -0800, Alexander Duyck wrote: > On Wed, Jan 13, 2021 at 10:50 PM Leon Romanovsky wrote: > > > > On Wed, Jan 13, 2021 at 02:44:45PM -0800, Alexander Duyck wrote: > > > On Tue, Jan 12, 2021 at 10:19 PM Leon Romanovsky wrote: > > &g

Re: [PATCH mlx5-next v1 2/5] PCI: Add SR-IOV sysfs entry to read number of MSI-X vectors

2021-01-14 Thread Leon Romanovsky
On Thu, Jan 14, 2021 at 11:24:12AM -0800, Alexander Duyck wrote: > On Thu, Jan 14, 2021 at 10:29 AM Jason Gunthorpe wrote: > > > > On Thu, Jan 14, 2021 at 09:55:24AM -0800, Alexander Duyck wrote: > > > On Thu, Jan 14, 2021 at 8:49 AM Jason Gunthorpe wrote: > > > > > > > > On Thu, Jan 14, 2021 at

Re: [PATCH mlx5-next v1 2/5] PCI: Add SR-IOV sysfs entry to read number of MSI-X vectors

2021-01-15 Thread Leon Romanovsky
On Fri, Jan 15, 2021 at 10:06:19AM -0400, Jason Gunthorpe wrote: > On Thu, Jan 14, 2021 at 05:56:20PM -0800, Alexander Duyck wrote: > > > That said, it only works at the driver level. So if the firmware is > > the one that is having to do this it also occured to me that if this > > update happened

Re: [PATCH mlx5-next v1 2/5] PCI: Add SR-IOV sysfs entry to read number of MSI-X vectors

2021-01-16 Thread Leon Romanovsky
On Fri, Jan 15, 2021 at 05:48:59PM -0800, Alexander Duyck wrote: > On Fri, Jan 15, 2021 at 7:53 AM Leon Romanovsky wrote: > > > > On Fri, Jan 15, 2021 at 10:06:19AM -0400, Jason Gunthorpe wrote: > > > On Thu, Jan 14, 2021 at 05:56:20PM -0800, Alexander Duyck wrote: >

Re: [PATCH mlx5-next v2 1/5] PCI: Add sysfs callback to allow MSI-X table size change of SR-IOV VFs

2021-01-16 Thread Leon Romanovsky
On Thu, Jan 14, 2021 at 05:05:43PM -0700, Alex Williamson wrote: > On Thu, 14 Jan 2021 12:31:36 +0200 > Leon Romanovsky wrote: > > > From: Leon Romanovsky > > > > Extend PCI sysfs interface with a new callback that allows configure > > the number of MSI-X vecto

Re: [PATCH mlx5-next v2 2/5] PCI: Add SR-IOV sysfs entry to read total number of dynamic MSI-X vectors

2021-01-16 Thread Leon Romanovsky
On Thu, Jan 14, 2021 at 05:05:36PM -0700, Alex Williamson wrote: > On Thu, 14 Jan 2021 12:31:37 +0200 > Leon Romanovsky wrote: > > > From: Leon Romanovsky > > > > Some SR-IOV capable devices provide an ability to configure specific > > number of MSI-X vectors o

Re: [PATCH mlx5-next v2 0/5] Dynamically assign MSI-X vectors count

2021-01-16 Thread Leon Romanovsky
On Thu, Jan 14, 2021 at 09:51:28AM -0800, Jakub Kicinski wrote: > On Thu, 14 Jan 2021 12:31:35 +0200 Leon Romanovsky wrote: > > The number of MSI-X vectors is PCI property visible through lspci, that > > field is read-only and configured by the device. > > > > The static

Re: [PATCH mlx5-next v2 1/5] PCI: Add sysfs callback to allow MSI-X table size change of SR-IOV VFs

2021-01-16 Thread Leon Romanovsky
On Sat, Jan 16, 2021 at 10:23:31AM +0200, Leon Romanovsky wrote: > On Thu, Jan 14, 2021 at 05:05:43PM -0700, Alex Williamson wrote: > > On Thu, 14 Jan 2021 12:31:36 +0200 > > Leon Romanovsky wrote: > > > > > From: Leon Romanovsky > > > > > > Ext

Re: [PATCH mlx5-next v2 0/5] Dynamically assign MSI-X vectors count

2021-01-16 Thread Leon Romanovsky
On Sun, Jan 17, 2021 at 07:44:09AM +0200, Leon Romanovsky wrote: > On Thu, Jan 14, 2021 at 09:51:28AM -0800, Jakub Kicinski wrote: > > On Thu, 14 Jan 2021 12:31:35 +0200 Leon Romanovsky wrote: > > > The number of MSI-X vectors is PCI property visible through lspci, that > &

[PATCH mlx5-next v3 5/5] net/mlx5: Allow to the users to configure number of MSI-X vectors

2021-01-17 Thread Leon Romanovsky
From: Leon Romanovsky Implement ability to configure MSI-X for the SR-IOV VFs. Signed-off-by: Leon Romanovsky --- .../net/ethernet/mellanox/mlx5/core/main.c| 1 + .../ethernet/mellanox/mlx5/core/mlx5_core.h | 1 + .../net/ethernet/mellanox/mlx5/core/sriov.c | 38

[PATCH mlx5-next v3 2/5] PCI: Add SR-IOV sysfs entry to read total number of dynamic MSI-X vectors

2021-01-17 Thread Leon Romanovsky
From: Leon Romanovsky Some SR-IOV capable devices provide an ability to configure specific number of MSI-X vectors on their VF prior driver is probed on that VF. In order to make management easy, provide new read-only sysfs file that returns a total number of possible to configure MSI-X vectors

[PATCH mlx5-next v3 4/5] net/mlx5: Dynamically assign MSI-X vectors count

2021-01-17 Thread Leon Romanovsky
From: Leon Romanovsky The number of MSI-X vectors is PCI property visible through lspci, that field is read-only and configured by the device. The static assignment of an amount of MSI-X vectors doesn't allow utilize the newly created VF because it is not known to the device the future loa

[PATCH mlx5-next v3 1/5] PCI: Add sysfs callback to allow MSI-X table size change of SR-IOV VFs

2021-01-17 Thread Leon Romanovsky
From: Leon Romanovsky Extend PCI sysfs interface with a new callback that allows configure the number of MSI-X vectors for specific SR-IO VF. This is needed to optimize the performance of newly bound devices by allocating the number of vectors based on the administrator knowledge of targeted VM

[PATCH mlx5-next v3 0/5] Dynamically assign MSI-X vectors count

2021-01-17 Thread Leon Romanovsky
From: Leon Romanovsky Changelog v3: * Renamed pci_set_msix_vec_count to be pci_vf_set_msix_vec_count. * Added VF msix_cap check to hide sysfs entry if device doesn't support msix. * Changed "-" to be ":" in the mlx5 patch to silence CI warnings about missing k

[PATCH mlx5-next v3 3/5] net/mlx5: Add dynamic MSI-X capabilities bits

2021-01-17 Thread Leon Romanovsky
From: Leon Romanovsky These new fields declare the number of MSI-X vectors that is possible to allocate on the VF through PF configuration. Value must be in range defined by min_dynamic_vf_msix_table_size and max_dynamic_vf_msix_table_size. The driver should continue to query its MSI-X table

[PATCH rdma-rc] Revert "RDMA/mlx5: Fix devlink deadlock on net namespace deletion"

2021-01-17 Thread Leon Romanovsky
n net namespace deletion") Signed-off-by: Parav Pandit Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/main.c | 6 ++ .../net/ethernet/mellanox/mlx5/core/lib/mlx5.h | 5 + include/linux/mlx5/driver.h| 18 -- 3 files

Re: [PATCH mlx5-next v1 2/5] PCI: Add SR-IOV sysfs entry to read number of MSI-X vectors

2021-01-17 Thread Leon Romanovsky
On Sun, Jan 17, 2021 at 07:16:30PM -0800, Alexander Duyck wrote: > On Sat, Jan 16, 2021 at 12:20 AM Leon Romanovsky wrote: > > > > On Fri, Jan 15, 2021 at 05:48:59PM -0800, Alexander Duyck wrote: > > > On Fri, Jan 15, 2021 at 7:53 AM Leon Romanovsky wrote: > > >

Re: [PATCH mlx5-next v1 2/5] PCI: Add SR-IOV sysfs entry to read number of MSI-X vectors

2021-01-18 Thread Leon Romanovsky
On Mon, Jan 18, 2021 at 09:20:08AM +0200, Leon Romanovsky wrote: > On Sun, Jan 17, 2021 at 07:16:30PM -0800, Alexander Duyck wrote: > > On Sat, Jan 16, 2021 at 12:20 AM Leon Romanovsky wrote: > > > > > > On Fri, Jan 15, 2021 at 05:48:59PM -0800, Alexander Duyck wrote: &

Re: [PATCH mlx5-next v1 2/5] PCI: Add SR-IOV sysfs entry to read number of MSI-X vectors

2021-01-18 Thread Leon Romanovsky
On Mon, Jan 18, 2021 at 06:03:22PM +0100, Greg KH wrote: > On Sun, Jan 10, 2021 at 05:07:24PM +0200, Leon Romanovsky wrote: > > From: Leon Romanovsky > > > > Some SR-IOV capable devices provide an ability to configure specific > > number of MSI-X vectors on their VF pri

Re: [PATCH mlx5-next v1 2/5] PCI: Add SR-IOV sysfs entry to read number of MSI-X vectors

2021-01-18 Thread Leon Romanovsky
On Mon, Jan 18, 2021 at 10:21:03AM -0800, Alexander Duyck wrote: > On Mon, Jan 18, 2021 at 5:28 AM Leon Romanovsky wrote: > > > > On Mon, Jan 18, 2021 at 09:20:08AM +0200, Leon Romanovsky wrote: > > > On Sun, Jan 17, 2021 at 07:16:30PM -0800, Alexander Duyck wrote: > &g

Re: [PATCH mlx5-next v2 0/5] Dynamically assign MSI-X vectors count

2021-01-18 Thread Leon Romanovsky
On Mon, Jan 18, 2021 at 10:07:32AM -0800, Jakub Kicinski wrote: > On Sun, 17 Jan 2021 09:24:41 +0200 Leon Romanovsky wrote: > > On Sun, Jan 17, 2021 at 07:44:09AM +0200, Leon Romanovsky wrote: > > > On Thu, Jan 14, 2021 at 09:51:28AM -0800, Jakub Kicinski wrote: > > >

  1   2   3   4   5   6   7   8   9   10   >