Re: [PATCH 2/2] IB/core: add missing string for the display of SDR rates in sysfs

2012-04-02 Thread Or Gerlitz
On Mon, Apr 2, 2012 at 8:42 PM, Roland Dreier rol...@kernel.org wrote: On Mon, Apr 2, 2012 at 7:45 AM, Or Gerlitz ogerl...@mellanox.com wrote:        switch (attr.active_speed) {        case IB_SPEED_SDR: +               speed = SDR;                rate = 25;                break

Re: [PATCH 2/2] IB/core: add missing string for the display of SDR rates in sysfs

2012-04-02 Thread Or Gerlitz
On Mon, Apr 2, 2012 at 8:42 PM, Roland Dreier rol...@kernel.org wrote: On Mon, Apr 2, 2012 at 7:45 AM, Or Gerlitz ogerl...@mellanox.com wrote:        switch (attr.active_speed) {        case IB_SPEED_SDR: +               speed = SDR;                rate = 25;                break

Re: [PATCH] IB/core: Don't return EINVAL from sysfs rate attribute for invalid speeds

2012-04-02 Thread Or Gerlitz
On Mon, Apr 2, 2012 at 10:35 PM, Roland Dreier rol...@kernel.org wrote: I think I'd rather just add this, to get back closer to the original behavior even for non-fixed drivers (but I'll still merge the mlx4 patch, since that makes sense too). okay, makes sense -- To unsubscribe from this

Re: [PATCH 1/2] IB/mlx4: fix the case of invalid speed value returned when the port is down

2012-04-04 Thread Or Gerlitz
On 4/2/2012 10:27 PM, Roland Dreier wrote: This looks reasonable, applied Thanks, so we're in a situation where there are / will be fixes for 3.4 and new code for 3.5 is coming, how about that suggestion I made lately - for-next to contain code for the next kernel (e.g 3.5 at this point)

Re: [PATCH] IB: mlx4: Fix mem leaks in ib_link_query_port()

2012-04-15 Thread Or Gerlitz
previously allocated. Acked-by: Or Gerlitz ogerl...@mellanox.com Roland, could you push that? Or. -- To unsubscribe from this list: send the line unsubscribe linux-rdma in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] IB: mlx4: Fix mem leaks in ib_link_query_port()

2012-04-16 Thread Or Gerlitz
On 4/16/2012 8:05 AM, Roland Dreier wrote: thanks, applied (looks like a 3.4 regression so I'll send the fix to Linus with my next batch) not sure to follow on the next branch part, it is a regression introduced in 3.4-rc1 so it should be in your fixes branch and submitted within a batch

Re: Infiniband stack allows references to freed memory

2012-04-17 Thread Or Gerlitz
On 2/2/2012 3:21 AM, David Miller wrote: From: Roland Dreierrol...@kernel.org I'm happy to do it but I'm still not quite sure I understand what the end state is. Is it just a matter of peeking into the skb contents to get at the daddr, looking up the neigh based on that and then continuing to

[PATCH fixes] IB/core: fix generation of unmatched responses for unhandled MADs

2012-04-23 Thread Or Gerlitz
From: Jack Morgenstein ja...@dev.mellanox.co.il Commit 0b307043049f34211affdde46f82e7abbe8c4590 IB/mad: Return error response for unsupported MADs introduced two problems: 1. If the unsupported MAD is a Directed-route get/set, it fails to set the D bit in the response MAD status field. This

Re: [PATCH fixes] IB/core: fix generation of unmatched responses for unhandled MADs

2012-04-28 Thread Or Gerlitz
On 4/25/2012 2:13 AM, Roland Dreier wrote: Thanks, applied as two patches, since AFAICT the two fixes are not tied to each other. yep, makes sense, so what's in CT - is it consider that? Or. -- To unsubscribe from this list: send the line unsubscribe linux-rdma in the body of a message to

possible circular locking dependency detected in uverbs

2012-04-29 Thread Or Gerlitz
I got this today with the IB git for-next, with some other patches applied (the ones I will send next, but they they don't seem to be related?), and libibverbs/mlx4 from their git heads. Or. == [ INFO: possible circular locking dependency

[PATCH for-next 2/7] IB/core: enhance the qp use counter to track multicast attach/detach

2012-04-29 Thread Or Gerlitz
ib_open_qp() to share XRC TGT QPs. Signed-off-by: Or Gerlitz ogerl...@mellanox.com --- drivers/infiniband/core/verbs.c | 14 -- include/rdma/ib_verbs.h |2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband

[PATCH for-next 0/7] IB: initial batch of patches for 3.5

2012-04-29 Thread Or Gerlitz
) available for ULPs Jack Morgenstein (1): net/mlx4_core: change bitmap allocator to work in round-robin fashion Or Gerlitz (2): IB/iser: Fix buggy error flow in iser ep connection establishment IB/core: enhance the qp use counter to track multicast attach/detach Oren Duer (1): IB/mlx4

[PATCH for-next 1/7] IB/iser: Fix buggy error flow in iser ep connection establishment

2012-04-29 Thread Or Gerlitz
endpoint object that caused kernel NULL pointer dereference. Fix that by plugging correctly to the IB conn reference counting. Signed-off-by: Or Gerlitz ogerl...@mellanox.com --- drivers/infiniband/ulp/iser/iscsi_iser.c |5 ++--- drivers/infiniband/ulp/iser/iser_verbs.c |3 ++- 2 files changed

[PATCH for-next 3/7] net/mlx4_core: change bitmap allocator to work in round-robin fashion

2012-04-29 Thread Or Gerlitz
From: Jack Morgenstein ja...@dev.mellanox.co.il Under most circumstances, the bitmap allocator does not allocate the same full 24-bit qp-number immediately after a qp is destroyed. This operates by using the upper bits of a 24-bit qp number, beyond the number of QPs that are actually available

[PATCH for-next 5/7] net/mlx4: add new cap flags field to track more capabilities

2012-04-29 Thread Or Gerlitz
From: Shlomo Pongratz shlo...@mellanox.com This patch adds a 64 bits flags2 features variable to export further features of the hardware. The original flags field, tracks feature whose support bits are advertized by the firmware in offsets 0x40 and 0x44 of the query device capabilities command,

[PATCH for-next 6/7] IB/mlx4: replace KERN_yyy printk call with pr_yyy ones

2012-04-29 Thread Or Gerlitz
From: Shlomo Pongratz shlo...@mellanox.com Signed-off-by: Shlomo Pongratz shlo...@mellanox.com --- drivers/infiniband/hw/mlx4/cq.c | 10 +- drivers/infiniband/hw/mlx4/main.c | 12 ++-- drivers/infiniband/hw/mlx4/mr.c |2 +- drivers/infiniband/hw/mlx4/qp.c | 12

[PATCH for-next 7/7] IB/mlx4: increase the number of vectors (EQs) available for ULPs

2012-04-29 Thread Or Gerlitz
From: Shlomo Pongratz shlo...@mellanox.com Enable IB ULPs to use a larger portion of the device EQs (which map to IRQs). The mlx4_ib driver follows the mlx4_core framework of the EQs to be divided among the device ports. In this scheme, for each IB port, the number of allocated EQs follows the

[PATCH for-next 4/7] IB/mlx4: put priority bits in WQE of IBoE MLX QP

2012-04-29 Thread Or Gerlitz
used for the connection. Signed-off-by: Oren Duer o...@mellanox.co.il Signed-off-by: Or Gerlitz ogerl...@mellanox.com --- drivers/infiniband/hw/mlx4/qp.c |6 +++--- include/linux/mlx4/qp.h |3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/infiniband/hw

Re: [PATCH fixes] IB/core: fix generation of unmatched responses for unhandled MADs

2012-05-01 Thread Or Gerlitz
On Mon, Apr 30, 2012 at 11:46 PM, Roland Dreier rol...@kernel.org wrote: I'm tempted to send a lmgtfy.com link, but afaict == as far as I can tell. Oh, sure, will go there next time... thanks for the quick response on the uverbs lockdep thing, any chance you'll be able to look soon on the batch

Re: [PATCH for-next 1/7] IB/iser: Fix buggy error flow in iser ep connection establishment

2012-05-03 Thread Or Gerlitz
On Thu, May 3, 2012 at 8:55 PM, Roland Dreier rol...@kernel.org wrote: thanks, applied. Hi, I don't see this one nor the patches to the Chelsio driver in your kernel.org tree, for-next branch, did you push it? Or. -- To unsubscribe from this list: send the line unsubscribe linux-rdma in the

[PATCH for-next 5/7] IB/mlx4: Add support for RSS and TSS QP groups

2012-05-08 Thread Or Gerlitz
From: Shlomo Pongratz shlo...@mellanox.com Depending on the mlx4 device capabilities, support the RSS IB device capability, using Topelitz or XOR hash functions. Support creating QP groups where all RX and TX QPs have contiguous QP numbers. Signed-off-by: Shlomo Pongratz shlo...@mellanox.com ---

[PATCH for-next 4/7] IB/core: Add RSS and TSS QP groups

2012-05-08 Thread Or Gerlitz
From: Shlomo Pongratz shlo...@mellanox.com RSS (Receive Side Scaling) TSS (Transmit Side Scaling, better known as MQ/Multi-Queue) are common networking techniques which allow to use contemporary NICs that support multiple receive and transmit descriptor queues (multi-queue), see also

[PATCH for-next 7/7] IB/ipoib: Add RSS and TSS support for datagram mode

2012-05-08 Thread Or Gerlitz
From: Shlomo Pongratz shlo...@mellanox.com This patch add RSS (Receive Side Scaling) and TSS (multi-queue transmit) support for IPoIB. The RSS and TSS implementation utilizes the new QP groups concept. The number of RSS and TSS rings is a function of the number of cores, and the low level driver

Re: [PATCH for-next 4/7] IB/mlx4: put priority bits in WQE of IBoE MLX QP

2012-05-09 Thread Or Gerlitz
On 5/8/2012 9:48 PM, Roland Dreier wrote: thanks, applied. Hi Roland, I don't see this patch neither the other two you accepted last night in your kernel.org tree for-next branch, maybe this has something to do with the rebase to -rc6 you made? Or. -- To unsubscribe from this list: send

Re: [PATCH for-next 4/7] IB/mlx4: put priority bits in WQE of IBoE MLX QP

2012-05-09 Thread Or Gerlitz
On 5/8/2012 9:48 PM, Roland Dreier wrote: thanks, applied. Hi Roland, I don't see this patch nor the other two you accepted last night in your kernel.org tree for-next branch, maybe this has something to do with the rebase to -rc6 you made? Or. -- To unsubscribe from this list: send the

Re: [PATCH for-next 4/7] IB/core: Add RSS and TSS QP groups

2012-05-09 Thread Or Gerlitz
On 5/8/2012 7:22 PM, Or Gerlitz wrote: --- a/drivers/infiniband/hw/ehca/ehca_qp.c +++ b/drivers/infiniband/hw/ehca/ehca_qp.c @@ -464,6 +464,9 @@ static struct ehca_qp *internal_create_qp( int is_llqp = 0, has_srq = 0, is_user = 0; int qp_type, max_send_sge, max_recv_sge, ret

[PATCH for-next V0.1 4/7] IB/core: Add RSS and TSS QP groups

2012-05-09 Thread Or Gerlitz
From: Shlomo Pongratz shlo...@mellanox.com RSS (Receive Side Scaling) TSS (Transmit Side Scaling, better known as MQ/Multi-Queue) are common networking techniques which allow to use contemporary NICs that support multiple receive and transmit descriptor queues (multi-queue), see also

[PATCH for-next 0/6] IB: 2nd batch of fixes for 3.5

2012-05-10 Thread Or Gerlitz
IB_SA_COMP_MASK macro IB/mlx4: bug fix for mlx4_ib_add error flow Or Gerlitz (1): net/mlx4: Adjust initial value of vl_cap in mlx4_SET_PORT Yishai Hadas (1): IB/core: fix mismatch between locked and pinned pages drivers/infiniband/core/umem.c |2 +- drivers/infiniband/hw/mlx4/cq.c

[PATCH for-next V1 1/6] net/mlx4_core: Change bitmap allocator to work in round-robin fashion

2012-05-10 Thread Or Gerlitz
From: Jack Morgenstein ja...@dev.mellanox.co.il Under most circumstances, the bitmap allocator does not allocate the same full 24-bit qp-number immediately after a qp is destroyed. This operates by using the upper bits of a 24-bit qp number, beyond the number of QPs that are actually available

[PATCH for-next 4/6] IB/core: Fix IB_SA_COMP_MASK macro

2012-05-10 Thread Or Gerlitz
From: Jack Morgenstein ja...@dev.mellanox.co.il It needs parentheses around the argument, so that it can be used with complex arguments (e.g., n+5 say). Signed-off-by: Jack Morgenstein ja...@dev.mellanox.co.il --- include/rdma/ib_mad.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

[PATCH for-next 2/6] IB/core: fix mismatch between locked and pinned pages

2012-05-10 Thread Or Gerlitz
From: Yishai Hadas yish...@mellanox.com Commit bc3e53f68 mm: distinguish between mlocked and pinned pages introduced a separate counter for pinned pages and used it over the IB stack. Specifically, in ib_umem_get the pinned counter is incremented, but ib_umem_release wrongly decrements the locked

Re: [PATCH for-next V0.1 4/7] IB/core: Add RSS and TSS QP groups

2012-05-10 Thread Or Gerlitz
RSS (Receive Side Scaling) TSS (Transmit Side Scaling, better known as MQ/Multi-Queue) are common networking techniques which allow to use contemporary NICs that support multiple receive and transmit descriptor queues (multi-queue), see also Documentation/networking/scaling.txt This patch

Re: [PATCH for-next 3/6] IB/mlx4: Fix parameter checking in create_cq

2012-05-11 Thread Or Gerlitz
sebastien dugue sebastien.du...@bull.net wrote: @@ -172,6 +172,7 @@ struct ib_cq *mlx4_ib_create_cq(struct ib_device *ibdev, int entries, int vector       struct mlx4_uar *uar;       int err; +     entries      = roundup_pow_of_two(entries + 1);       if (entries 1 || entries

Re: [PATCH for-next 2/6] IB/core: fix mismatch between locked and pinned pages

2012-05-13 Thread Or Gerlitz
On 5/11/2012 9:38 PM, Roland Dreier wrote: applied, with Christoph's reviewed-by and a Cc: stable tag. Thanks everyone. Hi Roland, Okay, thanks, I see that you still haven't pushed these updates to the infiniband tree, will be helpful if you can do that soon, such that we'll be able to

Re: Old SDR IB HBA

2012-05-15 Thread Or Gerlitz
On Tue, May 15, 2012 at 10:16 PM, Alexey Shvetsov ale...@gentoo.org wrote: Is it normal that kenrnel reports 8.5G speed on old SDR mellanox HBA? yes, there used to be a bug that could cause that, what kernel produced this output? c-2-1 1 # ibstatus Infiniband device 'mthca0' port 1 status:  

Re: Old SDR IB HBA

2012-05-16 Thread Or Gerlitz
On 5/15/2012 10:31 PM, Alexey Shvetsov wrote: Affected kernel version 3.3 yep, there's a bug in the IB core sysfs code which is fixed in 3.4 that can cause that 8.5Gbs to be displayed... The bug was introduced in 3.2 or 3.3 and fixed in 3.4, see commit

Re: [PATCH for-next 4/7] IB/core: Add RSS and TSS QP groups

2012-05-17 Thread Or Gerlitz
On 5/8/2012 7:22 PM, Or Gerlitz wrote: From: Shlomo Pongratzshlo...@mellanox.com RSS (Receive Side Scaling) TSS (Transmit Side Scaling, better known as MQ/Multi-Queue) are common networking techniques which allow to use contemporary NICs that support multiple receive and transmit descriptor

Re: [PATCH RESEND for-next 3/7] IB/mlx4: increase the number of vectors (EQs) available for ULPs

2012-05-17 Thread Or Gerlitz
On 5/16/2012 11:42 PM, Or Gerlitz wrote: Also, another long pending patch is the one to allow for multiple IPoIB childs @ http://marc.info/?l=linux-rdmam=132630202116857w=2 , which will be of use by the eIPoIB - the Ethernet IPoIB driver which was presented in the last OFA conference

sessions held on the Sonoma/Monterey conferences over the years

2012-05-17 Thread Or Gerlitz
Hi everybody, FWIW, word has reached me that OFA decided lately to have their site is free for all without subscription! I find the sessions held on the Sonoma/Monterey conferences over the years to be very helpful, there's even a search engine, well done, Ken, many thanks! go

Re: [PATCH for-next 5/6] net/mlx4: Adjust initial value of vl_cap in mlx4_SET_PORT

2012-05-20 Thread Or Gerlitz
On 5/19/2012 3:40 AM, Roland Dreier wrote: +#define CX3_PPF_DEV_ID 0x1003 +static int vl_cap_start(struct mlx4_dev *dev) +{ + /* for non CX3 devices, start with 4 VLs to avoid errors in syslog */ + if (dev-pdev-device != CX3_PPF_DEV_ID) + return 4; + return 8; +}

[PATCH 3/3] net/mlx4_core: Fix setting VL_cap in mlx4_SET_PORT wrapper flow

2012-05-24 Thread Or Gerlitz
Signed-off-by: Or Gerlitz ogerl...@mellanox.com --- drivers/net/ethernet/mellanox/mlx4/port.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx4/port.c b/drivers/net/ethernet/mellanox/mlx4/port.c index 1fe2c7a..a8fb529 100644

[PATCH libmlx4 1/2] Report correct resource limits to a new user context

2012-05-24 Thread Or Gerlitz
...@dev.mellanox.co.il Signed-off-by: Sagi Grimberg sa...@mellanox.co.il Signed-off-by: Or Gerlitz ogerl...@mellanox.com --- src/mlx4.c | 13 + src/mlx4.h |3 +++ 2 files changed, 16 insertions(+), 0 deletions(-) diff --git a/src/mlx4.c b/src/mlx4.c index 8cf249a..4989c46 100644

Re: [PATCH 2/3] IB/mlx4: Fix max_wqe capacity report for query device

2012-05-24 Thread Or Gerlitz
On Thu, May 24, 2012 at 6:42 PM, Hefty, Sean sean.he...@intel.com wrote: I believe that I was *just* hitting into this bug. Good, so we came just in time. I don't understand the part about breaking the ABI.  Why wouldn't you just return the correct values from the kernel?  Are the values

Re: [PATCH 2/3] IB/mlx4: Fix max_wqe capacity report for query device

2012-05-27 Thread Or Gerlitz
On 5/25/2012 6:04 AM, Or Gerlitz wrote: I don't understand the part about breaking the ABI. Why wouldn't you just return the correct values from the kernel? Are the values being returned now usable? Addressing the 2nd part of your question, the patch makes sure that the values returned now

Re: [PATCH] {NET,IB}/mlx4: 64 byte CQE/EQE support

2012-05-29 Thread Or Gerlitz
On 5/24/2012 5:30 PM, Or Gerlitz wrote: The patch makes sure that older guest drivers who follows the QUERY_DEV_FUNC command (e.g as done in mlx4_core of Linux 3.3/3.4) will notice that they need an update to be able to work with the PPF since the returned pf_context_behaviour will not be zero

Re: [PATCH] {NET,IB}/mlx4: 64 byte CQE/EQE support

2012-05-29 Thread Or Gerlitz
On Tue, May 29, 2012 at 8:45 PM, Roland Dreier rol...@kernel.org wrote: In general I'm kind of sad about the way the hardware works: having to choose the incompatible 64-byte CQE format globally at startup means we're kind of stuck breaking userspace in some cases. yes, indeed, that's the way

Re: [PATCH 3/3] net/mlx4_core: Fix setting VL_cap in mlx4_SET_PORT wrapper flow

2012-06-04 Thread Or Gerlitz
On 6/4/2012 9:05 AM, Roland Dreier wrote: thanks, applied Happy to hear that! any questions/clarifications you still need on patch #2? Or. -- To unsubscribe from this list: send the line unsubscribe linux-rdma in the body of a message to majord...@vger.kernel.org More majordomo info at

[PATCH for-next V1 2/4] IB/mlx4: Add support for RSS and TSS QP groups

2012-06-04 Thread Or Gerlitz
Signed-off-by: Or Gerlitz ogerl...@mellanox.com --- drivers/infiniband/hw/mlx4/main.c|5 + drivers/infiniband/hw/mlx4/mlx4_ib.h | 13 ++ drivers/infiniband/hw/mlx4/qp.c | 342 - 3 files changed, 349 insertions(+), 11 deletions(-) diff --git a/drivers

[PATCH for-next V1 1/4] IB/core: Add RSS and TSS QP groups

2012-06-04 Thread Or Gerlitz
Pongratz shlo...@mellanox.com Signed-off-by: Or Gerlitz ogerl...@mellanox.com --- drivers/infiniband/core/uverbs_cmd.c |1 + drivers/infiniband/core/verbs.c |3 +++ drivers/infiniband/hw/amso1100/c2_provider.c |3 +++ drivers/infiniband/hw/cxgb3/iwch_provider.c |2

[PATCH for-next V1 4/4] IB/ipoib: Add RSS and TSS support for datagram mode

2012-06-04 Thread Or Gerlitz
Signed-off-by: Or Gerlitz ogerl...@mellanox.com --- drivers/infiniband/ulp/ipoib/ipoib.h | 19 +- drivers/infiniband/ulp/ipoib/ipoib_cm.c|5 - drivers/infiniband/ulp/ipoib/ipoib_ib.c| 10 + drivers/infiniband/ulp/ipoib/ipoib_main.c | 144 ++- drivers/infiniband/ulp/ipoib

[PATCH for-next V1 0/4] IB/IPoIB TSS and RSS support for datagram mode

2012-06-04 Thread Or Gerlitz
From: Shlomo Pongratz shlo...@mellanox.com Hi Roland, Sean, everyone! With 3.5-rc1 being out by now, here's V1 of the TSS/RSS patch series, basically its very similar to V0, with taking out what was already accepted and few minor fixes for issues we stepped over testing since the V0 submission.

Re: [PATCH for-next V1 0/4] IB/IPoIB TSS and RSS support for datagram mode

2012-06-04 Thread Or Gerlitz
On Mon, Jun 4, 2012 at 8:06 PM, Hefty, Sean sean.he...@intel.com wrote: Still, the 1st and most thing to handle here is feedback on the QP groups concept suggested by this patch set to support TSS/RSS over verbs. The plan is for this concept to (with little help from a framework for verbs

Re: [PATCH for-next 00/29] Add SRIOV support for IB interfaces

2012-06-12 Thread Or Gerlitz
On 6/12/2012 10:00 AM, Roland Dreier wrote: Jack Morgensteinja...@dev.mellanox.co.il wrote: several of the patches have notations indicating things that will be fixed in V1 Not sure what you want me to do with this -- it seems you yourself are saying this series is not ready to merge yet?

Re: [PATCH for-next V1 0/4] IB/IPoIB TSS and RSS support for datagram mode

2012-06-12 Thread Or Gerlitz
Or Gerlitz or.gerl...@gmail.com wrote: Hefty, Sean sean.he...@intel.com wrote: Conceptually, it seems that there should be more alignment with XRC, which also ends up with an associated group of QPs. Yep, sure, if its possible to align/squeez/unite these QP groups into the XRC interfaces

Re: [PATCH for-next 00/29] Add SRIOV support for IB interfaces

2012-06-17 Thread Or Gerlitz
On 6/14/2012 4:21 PM, Yann Droneaud wrote: How will interact vHCA/HCA regarding Automatic Path Migration (APM) and IPoIB bonding with fail-over (HA), with RDMA_CM and IP usages in mind ? work on vHCA the same way they do on HCA, please let me know if you have anything more special to realize

Re: Linux DMA address

2012-07-02 Thread Or Gerlitz
On 7/2/2012 2:44 PM, Klaus Wacker wrote: [...] So whats the nature of the returned DMA address of ib_dma_map_single and can we assume that it is the same value on different devices on one system? Currently, over all IB drivers/devices except for ipath and qib, ib_dma_map_single is just plain

Re: Linux DMA address

2012-07-03 Thread Or Gerlitz
Let me stress this once again... 1.) Is it possible/allowed to call ib_dma_map_single() on Linux, same buffer address, size and dma_data direction, for two different ib devices? For the data transmission we will have controls in place that not both devices write at the same time into that

Re: [PATCH] ibnetdiscover: fix not showing FDR10 speeds

2012-07-05 Thread Or Gerlitz
ibnetdiscover shows FDR10 speeds as QDR due to bug in setting default parameters How old is this bug? Or. -- To unsubscribe from this list: send the line unsubscribe linux-rdma in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH for-next V1 25/29] net/mlx4_core: Adjustments to SET_PORT for SRIOV-IB

2012-07-05 Thread Or Gerlitz
On Fri, Jul 6, 2012 at 3:09 AM, Roland Dreier rol...@kernel.org wrote: On Tue, Jun 19, 2012 at 1:21 AM, Jack Morgenstein ja...@dev.mellanox.co.il wrote: 1. Slave may not set the IS_SM capability for the port. So I can't run a SM in a guest? nope, guests are untrusted and we don't let them

Re: [PATCH for-next V1 10/29] net/mlx4_core: Implement mechanism for reserved qkeys

2012-07-05 Thread Or Gerlitz
On Fri, Jul 6, 2012 at 2:26 AM, Roland Dreier rol...@kernel.org wrote: Part of my problem is I don't see anywhere that MLX4_RESERVED_QKEY_MASK is actually used in this patch... see in patch 13/29 @ -1209,8 +1375,24 @@ static int __mlx4_ib_modify_qp(struct ib_qp *ibqp, if (attr_mask

Re: [PATCH for-next V1 25/29] net/mlx4_core: Adjustments to SET_PORT for SRIOV-IB

2012-07-05 Thread Or Gerlitz
On Fri, Jul 6, 2012 at 3:09 AM, Roland Dreier rol...@kernel.org wrote: 2. No DEV_MGR in multifunc mode. I can't run an SRP target in a guest? To be precise, you can run the target, but you would need to discover it not through the regular mechnism which makes use of the DM bit of the port.

Re: [PATCH for-next V1 10/29] net/mlx4_core: Implement mechanism for reserved qkeys

2012-07-08 Thread Or Gerlitz
On 7/6/2012 2:26 AM, Roland Dreier wrote: Jack Morgenstein ja...@dev.mellanox.co.il wrote: For security reasons (i.e., to prevent guests from sending MADs to tunnel QPs belonging to other guests), each proxy-tunnel qp pair is assigned a unique, reserved, qkey. These qkeys are available only

Re: [PATCH for-next V1 25/29] net/mlx4_core: Adjustments to SET_PORT for SRIOV-IB

2012-07-08 Thread Or Gerlitz
On Fri, Jul 6, 2012 at 6:09 AM, Roland Dreier rol...@kernel.org wrote: So I can't run a SM in a guest? [...] I can't run an SRP target in a guest? Seems like an unfortunate set of limitations, especially if I want a completely virtualized environment. In my case I might want to test the

[PATCH] IB/ipoib: break linkage to neighbouring system

2012-07-10 Thread Or Gerlitz
and deletes every ipoib_neigh instance that was idle for at least 60 seconds. The deletion is safe since the ipoib_neigh instances are protected using RCU and reference count mechanisms. Signed-off-by: Shlomo Pongratz shlo...@mellanox.com Signed-off-by: Or Gerlitz ogerl...@mellanox.com --- The patch

Re: [PATCH for-next V1 09/29] net/mlx4_core: For SRIOV, initialize ib port-capabilities for all slaves

2012-07-11 Thread Or Gerlitz
On 7/10/2012 7:57 PM, Roland Dreier wrote: thanks, applied thanks, I see now that you've picked also patch #8, so we're making progress... any further thoughts/feedback following the responses I provided on your questions around DM and SM? Or. -- To unsubscribe from this list: send the line

[PATCH for-next 0/6] batch of fixes for 3.6

2012-07-11 Thread Or Gerlitz
Hi Roland, Here's a batch of small fixes from Dotan for 3.6 Or. Dotan Barak (6): IB/mthca: Events received for non-existent QPs should generate a warning IB/mthca: Fill in the attribute sq_sig_type value in query QP IB/mlx4: Fill the masked_atomic_cap attribute in query device

[PATCH for-next 2/6] IB/mthca: Fill in the attribute sq_sig_type value in query QP

2012-07-11 Thread Or Gerlitz
From: Dotan Barak dot...@dev.mellanox.co.il The query QP code was didn't fill that attribute, do that. Signed-off-by: Dotan Barak dot...@dev.mellanox.co.il Reviewed-by: Jack Morgenstein ja...@dev.mellanox.co.il Signed-off-by: Or Gerlitz ogerl...@mellanox.com --- drivers/infiniband/hw/mthca

[PATCH for-next 6/6] net/mlx4_core: Free ICM table in case of error

2012-07-11 Thread Or Gerlitz
From: Dotan Barak dot...@dev.mellanox.co.il In mlx4_init_icm_table, free the allocated table if we failed to allocate memory to its entries. Signed-off-by: Dotan Barak dot...@dev.mellanox.co.il Reviewed-by: Yevgeny Petrilin yevge...@mellanox.co.il Signed-off-by: Or Gerlitz ogerl...@mellanox.com

[PATCH for-next 5/6] IB/cm: Destroy idr as part of the module init error flow

2012-07-11 Thread Or Gerlitz
From: Dotan Barak dot...@dev.mellanox.co.il Clean the idr as part of the error flow since it is a resource too. Signed-off-by: Dotan Barak dot...@dev.mellanox.co.il Reviewed-by: Sean Hefty sean.he...@intel.com Signed-off-by: Or Gerlitz ogerl...@mellanox.com --- drivers/infiniband/core/cm.c

[PATCH for-next 4/6] net/mlx4_core: Remove double function declarations

2012-07-11 Thread Or Gerlitz
From: Dotan Barak dot...@dev.mellanox.co.il Spotted four duplicate declarations in icm.h, remove them. Signed-off-by: Dotan Barak dot...@dev.mellanox.co.il Signed-off-by: Or Gerlitz ogerl...@dev.mellanox.com --- drivers/net/ethernet/mellanox/mlx4/icm.h |6 -- 1 files changed, 0

[PATCH for-next 3/6] IB/mlx4: Fill the masked_atomic_cap attribute in query device

2012-07-11 Thread Or Gerlitz
...@mellanox.com Signed-off-by: Or Gerlitz ogerl...@dev.mellanox.com --- drivers/infiniband/hw/mlx4/main.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index 4f230c2..5f50d4f 100644 --- a/drivers/infiniband

[PATCH for-next 1/6] IB/mthca: Events received for non-existent QPs should generate a warning

2012-07-11 Thread Or Gerlitz
From: Dotan Barak dot...@dev.mellanox.co.il Events received for non-existent QPs should generate a warning along with the event type which was received. Signed-off-by: Dotan Barak dot...@dev.mellanox.co.il Reviewed-by: Jack Morgenstein ja...@dev.mellanox.co.il Signed-off-by: Or Gerlitz ogerl

[PATCH RESEND for-next 0/6] batch of fixes for 3.6

2012-07-11 Thread Or Gerlitz
Hi Roland, Here's a batch of small fixes from Dotan for 3.6 Please ignore the prev posting, it had wrong sign-off address for me. Or. Dotan Barak (6): IB/mthca: Events received for non-existent QPs should generate a warning IB/mthca: Fill in the attribute sq_sig_type value in query QP

[PATCH RESEND for-next 1/6] IB/mthca: Events received for non-existent QPs should generate a warning

2012-07-11 Thread Or Gerlitz
From: Dotan Barak dot...@dev.mellanox.co.il Events received for non-existent QPs should generate a warning along with the event type which was received. Signed-off-by: Dotan Barak dot...@dev.mellanox.co.il Reviewed-by: Jack Morgenstein ja...@dev.mellanox.co.il Signed-off-by: Or Gerlitz ogerl

[PATCH RESEND for-next 2/6] IB/mthca: Fill in the attribute sq_sig_type value in query QP

2012-07-11 Thread Or Gerlitz
From: Dotan Barak dot...@dev.mellanox.co.il The query QP code was didn't fill that attribute, do that. Signed-off-by: Dotan Barak dot...@dev.mellanox.co.il Reviewed-by: Jack Morgenstein ja...@dev.mellanox.co.il Signed-off-by: Or Gerlitz ogerl...@mellanox.com --- drivers/infiniband/hw/mthca

[PATCH RESEND for-next 6/6] net/mlx4_core: Free ICM table in case of error

2012-07-11 Thread Or Gerlitz
From: Dotan Barak dot...@dev.mellanox.co.il In mlx4_init_icm_table, free the allocated table if we failed to allocate memory to its entries. Signed-off-by: Dotan Barak dot...@dev.mellanox.co.il Reviewed-by: Yevgeny Petrilin yevge...@mellanox.co.il Signed-off-by: Or Gerlitz ogerl...@mellanox.com

[PATCH RESEND for-next 4/6] net/mlx4_core: Remove double function declarations

2012-07-11 Thread Or Gerlitz
From: Dotan Barak dot...@dev.mellanox.co.il Spotted four duplicate declarations in icm.h, remove them. Signed-off-by: Dotan Barak dot...@dev.mellanox.co.il Signed-off-by: Or Gerlitz ogerl...@mellanox.com --- drivers/net/ethernet/mellanox/mlx4/icm.h |6 -- 1 files changed, 0 insertions

[PATCH RESEND for-next 5/6] IB/cm: Destroy idr as part of the module init error flow

2012-07-11 Thread Or Gerlitz
From: Dotan Barak dot...@dev.mellanox.co.il Clean the idr as part of the error flow since it is a resource too. Signed-off-by: Dotan Barak dot...@dev.mellanox.co.il Reviewed-by: Sean Hefty sean.he...@intel.com Signed-off-by: Or Gerlitz ogerl...@mellanox.com --- drivers/infiniband/core/cm.c

[PATCH RESEND for-next 3/6] IB/mlx4: Fill the masked_atomic_cap attribute in query device

2012-07-11 Thread Or Gerlitz
...@mellanox.com Signed-off-by: Or Gerlitz ogerl...@mellanox.com --- drivers/infiniband/hw/mlx4/main.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index 4f230c2..5f50d4f 100644 --- a/drivers/infiniband/hw

Re: [PATCH for-next 1/6] IB/mthca: Events received for non-existent QPs should generate a warning

2012-07-11 Thread Or Gerlitz
On 7/11/2012 6:40 PM, Roland Dreier wrote: On Wed, Jul 11, 2012 at 8:33 AM, Or Gerlitz ogerl...@mellanox.com wrote: - mthca_warn(dev, Async event for bogus QP %08x\n, qpn); + mthca_warn(dev, Async event %d for bogus QP %08x\n, + (int

Re: [PATCH libibverbs] memory: commented unused verify() function

2012-07-11 Thread Or Gerlitz
any reason not to remove it all together? Or. -- To unsubscribe from this list: send the line unsubscribe linux-rdma in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] IB/ipoib: break linkage to neighbouring system

2012-07-12 Thread Or Gerlitz
On 7/10/2012 1:01 PM, Or Gerlitz wrote: [...] This patch aims to solve the race conditions found in the IPoIB driver. The patch breaks the connection between the core networking neighbour structure and the ipoib_neigh structure. Except for avoiding the race, it allows to in under a setup where

Re: [PATCH] IB/ipoib: break linkage to neighbouring system

2012-07-13 Thread Or Gerlitz
On Fri, Jul 13, 2012 at 3:58 AM, David Miller da...@davemloft.net wrote: You don't need a R/W lock for that, we have RCU hash tables that get resized dynamically and the lookup still only needs pure RCU protection. Hi Dave, Thanks for the feedback, Shlomo will look into this and if needed,

Re: [PATCH for-next V1 10/29] net/mlx4_core: Implement mechanism for reserved qkeys

2012-07-13 Thread Or Gerlitz
On Wed, Jul 11, 2012 at 9:37 PM, Roland Dreier rol...@kernel.org wrote: thanks, applied cool, so we have now 8 out of 29 merged... any info from our side needed to continue with the review/acceptance process? Or. -- To unsubscribe from this list: send the line unsubscribe linux-rdma in the body

Re: [PATCH] IB/ipoib: break linkage to neighbouring system

2012-07-15 Thread Or Gerlitz
On 7/13/2012 3:58 AM, David Miller wrote: From: Shlomo Pongratz shlo...@mellanox.com Date: Thu, 12 Jul 2012 20:13:28 + The RCU and reference count protect the individual entries in the hash. The R/W lock protects the hash table itself. e.g. deleting the hash table itself, or in the

[PATCH net/for-next V1 1/1] IB/ipoib: break linkage to neighbouring system

2012-07-19 Thread Or Gerlitz
since the ipoib_neigh instances are protected using RCU and reference count mechanisms. Signed-off-by: Shlomo Pongratz shlo...@mellanox.com Signed-off-by: Or Gerlitz ogerl...@mellanox.com --- drivers/infiniband/ulp/ipoib/ipoib.h | 59 ++- drivers/infiniband/ulp/ipoib/ipoib_cm.c

Re: [PATCH net/for-next V1 1/1] IB/ipoib: break linkage to neighbouring system

2012-07-19 Thread Or Gerlitz
It seems that for some reason the cover-letter wasn't sent properly, here's listing of the changes: changes from V0: - following feedback from Mike and Dave, changed the ipoib_neigh hash table to allow for lock-free read side, the model follows the RCU based implementation in

[PATCH net/for-next V1 0/1] IB/ipoib: break linkage to neighbouring system

2012-07-19 Thread Or Gerlitz
changes from V0: - following feedback from Mike and Dave, changed the ipoib_neigh hash table to allow for lock-free read side, the model follows the RCU based implementation in net/core/neighbour.c - since RCU hash table uses unidirectional collision list, now ipoib_neigh_free needs to

[PATCH RESEND net/for-next V1 0/1] changes IPoIB neighbour handling

2012-07-19 Thread Or Gerlitz
Adding netdev, as of the high relevancy, see V0 @ http://marc.info/?l=linux-rdmam=134191474831867w=2 changes from V0: - following feedback from Mike and Dave, changed the ipoib_neigh hash table to allow for lock-free read side, the model follows the RCU based implementation in

[PATCH RESEND net/for-next V1 1/1] IB/ipoib: break linkage to neighbouring system

2012-07-19 Thread Or Gerlitz
since the ipoib_neigh instances are protected using RCU and reference count mechanisms. Signed-off-by: Shlomo Pongratz shlo...@mellanox.com Signed-off-by: Or Gerlitz ogerl...@mellanox.com --- drivers/infiniband/ulp/ipoib/ipoib.h | 59 ++- drivers/infiniband/ulp/ipoib/ipoib_cm.c

Re: [PATCH net/for-next V1 1/1] IB/ipoib: break linkage to neighbouring system

2012-07-19 Thread Or Gerlitz
On 7/19/2012 6:24 PM, Christoph Lameter wrote: On Thu, 19 Jul 2012, Shlomo Pongartz wrote: The garbage collection and stale times follow the default ipv4/6 neigh.default.gc_yyy sysctl values, for example net.ipv4.neigh.default.gc_interval = 30 net.ipv4.neigh.default.gc_stale_time = 60 If

Re: [PATCH 3/5] IB/qib: Add support for per-device/per-port parameters

2012-07-19 Thread Or Gerlitz
On Thu, Jul 19, 2012 at 9:26 PM, Roland Dreier rol...@purestorage.com wrote: I think this is pushing the module parameter facility way past the breaking point of usability. We really need to come up with a better way to get complex structured config info like this into the drive IB's netlink

Re: [PATCH net/for-next V1 1/1] IB/ipoib: break linkage to neighbouring system

2012-07-20 Thread Or Gerlitz
On Thu, Jul 19, 2012 at 4:18 PM, Or Gerlitz ogerl...@mellanox.com wrote: From: Shlomo Pongratz shlo...@mellanox.com Dave Miller da...@davemloft.net provided a detailed description of why the way IPoIB is using neighbours for its own ipoib_neigh struct is buggy: [...] This patch aims to solve

Re: [PATCH 3/5] IB/qib: Add support for per-device/per-port parameters

2012-07-20 Thread Or Gerlitz
On Fri, Jul 20, 2012 at 2:40 PM, Marciniszyn, Mike mike.marcinis...@intel.com If you could give me some code to look at? include/rdma/rdma_netlink.h drivers/infiniband/core/netlink.c -- To unsubscribe from this list: send the line unsubscribe linux-rdma in the body of a message to

Re: [PATCH net/for-next V1 1/1] IB/ipoib: break linkage to neighbouring system

2012-07-21 Thread Or Gerlitz
On 7/19/2012 8:08 PM, David Miller wrote: These numbers come from the IPV6 Neighbour Discovery RFCs. IPV4 replicates the Neighbour Unreachability Detection schemes of IPV6 in pretty much it's entirety, and therefore takes on the same timeout et al. parameters. OK, got it. At this point, I

Re: [PATCH 2/5] IB/qib: Added congestion control agent implementation

2012-07-21 Thread Or Gerlitz
On 7/19/2012 4:04 PM, Mike Marciniszyn wrote: Added a congestion control agent in the driver that handles gets and sets from the congestion control manager in the fabric for the Performance Scale Messagin (PSM) library. Hi Mike, Nice doing. Can you elaborate a little on the role/usage of the

Re: [PATCH net/for-next V1 1/1] IB/ipoib: break linkage to neighbouring system

2012-07-23 Thread Or Gerlitz
On 20/07/2012 18:49, Or Gerlitz wrote: On Thu, Jul 19, 2012 at 4:18 PM, Or Gerlitzogerl...@mellanox.com wrote: From: Shlomo Pongratzshlo...@mellanox.com Dave Millerda...@davemloft.net provided a detailed description of why the way IPoIB is using neighbours for its own ipoib_neigh struct

Re: [PATCH net/for-next V1 1/1] IB/ipoib: break linkage to neighbouring system

2012-07-23 Thread Or Gerlitz
On Mon, Jul 23, 2012 at 8:17 PM, Eric Dumazet eric.duma...@gmail.com wrote: I have no idea of what you are talking about, I have not the patch or a copy of it ;) http://marc.info/?t=13427149132r=1w=2 http://marc.info/?t=13427149135r=1w=2 -- To unsubscribe from this list: send the line

[PATCH net/for-next V2 0/1] change IPoIB neighbour handling

2012-07-24 Thread Or Gerlitz
changes from V1: - applied feeback from Dave on hash usage and identation - applied feedback from Christoph, use values fom the exported arp_tbl for the hash table size and the frequency of garbage collection changes from V0: - following feedback from Mike and Dave, changed the ipoib_neigh

[PATCH net-next V2] IB/ipoib: break linkage to neighbouring system

2012-07-24 Thread Or Gerlitz
...@mellanox.com Signed-off-by: Or Gerlitz ogerl...@mellanox.com --- drivers/infiniband/ulp/ipoib/ipoib.h | 54 ++- drivers/infiniband/ulp/ipoib/ipoib_cm.c| 16 +- drivers/infiniband/ulp/ipoib/ipoib_main.c | 641 +-- drivers/infiniband/ulp/ipoib/ipoib_multicast.c

<    1   2   3   4   5   6   7   8   9   10   >