[PATCH 1/2] opensm: fail if configured torus port order references a port not available in all switches

2011-06-01 Thread Jim Schutt
Signed-off-by: Jim Schutt --- opensm/osm_torus.c | 24 1 files changed, 20 insertions(+), 4 deletions(-) diff --git a/opensm/osm_torus.c b/opensm/osm_torus.c index 29c1bb4..47654ce 100644 --- a/opensm/osm_torus.c +++ b/opensm/osm_torus.c @@ -856,9 +856,6 @@ bool parse

[PATCH 2/2] opensm: use OSM_LOG_INFO on duplicate torus port order parsing

2011-06-01 Thread Jim Schutt
Since it doesn't cause OpenSM to exit, it isn't an error. We just want to give the admin information that will allow them to clean up their configuration. Signed-off-by: Jim Schutt --- opensm/osm_torus.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opensm/osm_torus

Re: [PATCH 1v2] opensm: fixed port order configuration in torus routing engine

2011-06-01 Thread Jim Schutt
Alex Netes wrote: Commit 1c2a298b295eba7e24205519abc24e47106d15df broke port order configuration for torus routing engine. order was incorrectly initiated, causing setting LFTs to fail. Signed-off-by: Alex Netes Acked-by: Jim Schutt Also, while reviewing this I noticed a couple things in th

Re: [PATCH] libibmad/[register rpc].c: Fix some bounds checks

2011-06-01 Thread Ira Weiny
On Wed, 1 Jun 2011 06:45:57 -0700 Hal Rosenstock wrote: > > Signed-off-by: Hal Rosenstock Thanks, applied, Ira > --- > diff --git a/src/register.c b/src/register.c > index 0ff8006..1fdb64a 100644 > --- a/src/register.c > +++ b/src/register.c > @@ -77,7 +77,7 @@ static int mgmt_class_vers(int

[PATCH] RDMA/cxgb4: Don't exceed hw IQ depth limit for user CQs.

2011-06-01 Thread Steve Wise
Memory allocated for user CQs gets rounded up to the next page boundary. And after rounding, we recalculate the resulting IQ depth and we need to make sure we don't exceed the HW limits. This bug can result a much smaller CQ allocated than was expected if the HW size field is exceeded, resulting i

[PATCH] Adds SM CHANGE events to mthca and mlx4 drivers

2011-06-01 Thread Michael Heinz
From: Michael Heinz This patch adds events to the handling of SM_LID and SM_SL changes. When such changes occur, a event must be reported and driver stored copies of those addresses must be updated so that applications know the new path to the SM/SA. Signed-off-by: Michael Heinz --- drivers

Re: [PATCH] opensm/osm_ucast_mgr.c: Fix some issues found by Coverity

2011-06-01 Thread Alex Netes
Hi Hal, On 07:30 Tue 31 May , Hal Rosenstock wrote: > > Signed-off-by: Hal Rosenstock > --- Applied, thanks. -- 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/majordom

Re: [PATCH] opensm/osm_ucast_ftree.c: Fix some issues found by Coverity

2011-06-01 Thread Alex Netes
On 07:30 Tue 31 May , Hal Rosenstock wrote: > > Signed-off-by: Hal Rosenstock > --- Applied, thanks. -- 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.ht

[PATCH 1v2] opensm: fixed port order configuration in torus routing engine

2011-06-01 Thread Alex Netes
Commit 1c2a298b295eba7e24205519abc24e47106d15df broke port order configuration for torus routing engine. order was incorrectly initiated, causing setting LFTs to fail. Signed-off-by: Alex Netes --- Changes since v1: 1. Defined order[] as uint8_t 2. Removed error message while parsing port_order.

[PATCH] libibmad/[register rpc].c: Fix some bounds checks

2011-06-01 Thread Hal Rosenstock
Signed-off-by: Hal Rosenstock --- diff --git a/src/register.c b/src/register.c index 0ff8006..1fdb64a 100644 --- a/src/register.c +++ b/src/register.c @@ -77,7 +77,7 @@ static int mgmt_class_vers(int mgmt_class) int mad_class_agent(int mgmt) { - if (mgmt < 1 || mgmt > MAX_CLASS) +