* [PATCH] opensm/osm_vendor_ibumad: Use OSM_UMAD_MAX_AGENTS rather than UMAD_CA_MAX_AGENTS
@ 2009-10-19 15:38 Hal Rosenstock
[not found] ` <20091019153846.GA22111-Wuw85uim5zDR7s880joybQ@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Hal Rosenstock @ 2009-10-19 15:38 UTC (permalink / raw)
To: sashak-smomgflXvOZWk0Htik3J/w
Cc: sean.hefty-ral2JQCrhuEAvxtiuMwx3w,
stan.smith-ral2JQCrhuEAvxtiuMwx3w,
linux-rdma-u79uwXL29TY76Z2rM5mHXA
Signed-off-by: Hal Rosenstock <hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
diff --git a/opensm/include/vendor/osm_vendor_ibumad.h b/opensm/include/vendor/osm_vendor_ibumad.h
index e346a2e..f3a48e5 100644
--- a/opensm/include/vendor/osm_vendor_ibumad.h
+++ b/opensm/include/vendor/osm_vendor_ibumad.h
@@ -66,6 +66,8 @@ BEGIN_C_DECLS
#define OSM_DEFAULT_RETRY_COUNT 3
#define OSM_UMAD_MAX_CAS 32
#define OSM_UMAD_MAX_PORTS_PER_CA 2
+#define OSM_UMAD_MAX_AGENTS 32
+
/****s* OpenSM: Vendor UMAD/osm_ca_info_t
* NAME
* osm_ca_info_t
@@ -154,7 +156,7 @@ typedef struct _osm_vendor {
osm_ca_info_t *p_ca_info;
uint32_t timeout;
int max_retries;
- osm_bind_handle_t agents[UMAD_CA_MAX_AGENTS];
+ osm_bind_handle_t agents[OSM_UMAD_MAX_AGENTS];
char ca_names[OSM_UMAD_MAX_CAS][UMAD_CA_NAME_LEN];
vendor_match_tbl_t mtbl;
umad_port_t umad_port;
diff --git a/opensm/libvendor/osm_vendor_ibumad.c b/opensm/libvendor/osm_vendor_ibumad.c
index 8d3c680..b221335 100644
--- a/opensm/libvendor/osm_vendor_ibumad.c
+++ b/opensm/libvendor/osm_vendor_ibumad.c
@@ -288,7 +288,7 @@ static void *umad_receiver(void *p_ptr)
}
}
- if (mad_agent >= UMAD_CA_MAX_AGENTS ||
+ if (mad_agent >= OSM_UMAD_MAX_AGENTS ||
!(p_bind = p_vend->agents[mad_agent])) {
OSM_LOG(p_ur->p_log, OSM_LOG_ERROR, "ERR 5407: "
"invalid mad agent %d - dropping\n", mad_agent);
@@ -738,7 +738,7 @@ static void osm_vendor_close_port(osm_vendor_t * const p_vend)
}
if (p_vend->umad_port_id >= 0) {
- for (i = 0; i < UMAD_CA_MAX_AGENTS; i++)
+ for (i = 0; i < OSM_UMAD_MAX_AGENTS; i++)
if (p_vend->agents[i])
umad_unregister(p_vend->umad_port_id, i);
umad_close_port(p_vend->umad_port_id);
@@ -862,7 +862,7 @@ osm_vendor_bind(IN osm_vendor_t * const p_vend,
goto Exit;
}
- if (p_bind->agent_id >= UMAD_CA_MAX_AGENTS ||
+ if (p_bind->agent_id >= OSM_UMAD_MAX_AGENTS ||
p_vend->agents[p_bind->agent_id]) {
OSM_LOG(p_vend->p_log, OSM_LOG_ERROR, "ERR 5427: "
"bad agent id %u or duplicate agent for class %u vers %u\n",
@@ -890,7 +890,7 @@ osm_vendor_bind(IN osm_vendor_t * const p_vend,
goto Exit;
}
- if (p_bind->agent_id1 >= UMAD_CA_MAX_AGENTS ||
+ if (p_bind->agent_id1 >= OSM_UMAD_MAX_AGENTS ||
p_vend->agents[p_bind->agent_id1]) {
OSM_LOG(p_vend->p_log, OSM_LOG_ERROR, "ERR 5429: "
"bad agent id %u or duplicate agent for class 1 vers %u\n",
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 5+ messages in thread[parent not found: <20091019153846.GA22111-Wuw85uim5zDR7s880joybQ@public.gmane.org>]
* Re: [PATCH] opensm/osm_vendor_ibumad: Use OSM_UMAD_MAX_AGENTS rather than UMAD_CA_MAX_AGENTS [not found] ` <20091019153846.GA22111-Wuw85uim5zDR7s880joybQ@public.gmane.org> @ 2009-10-22 12:21 ` Sasha Khapyorsky 2009-10-22 12:49 ` Hal Rosenstock 0 siblings, 1 reply; 5+ messages in thread From: Sasha Khapyorsky @ 2009-10-22 12:21 UTC (permalink / raw) To: Hal Rosenstock Cc: sean.hefty-ral2JQCrhuEAvxtiuMwx3w, stan.smith-ral2JQCrhuEAvxtiuMwx3w, linux-rdma-u79uwXL29TY76Z2rM5mHXA Hi Hal, Could you add commit message to your patches (this and another)? On 11:38 Mon 19 Oct , Hal Rosenstock wrote: > > Signed-off-by: Hal Rosenstock <hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > --- > diff --git a/opensm/include/vendor/osm_vendor_ibumad.h b/opensm/include/vendor/osm_vendor_ibumad.h > index e346a2e..f3a48e5 100644 > --- a/opensm/include/vendor/osm_vendor_ibumad.h > +++ b/opensm/include/vendor/osm_vendor_ibumad.h > @@ -66,6 +66,8 @@ BEGIN_C_DECLS > #define OSM_DEFAULT_RETRY_COUNT 3 > #define OSM_UMAD_MAX_CAS 32 > #define OSM_UMAD_MAX_PORTS_PER_CA 2 > +#define OSM_UMAD_MAX_AGENTS 32 > + > /****s* OpenSM: Vendor UMAD/osm_ca_info_t > * NAME > * osm_ca_info_t > @@ -154,7 +156,7 @@ typedef struct _osm_vendor { > osm_ca_info_t *p_ca_info; > uint32_t timeout; > int max_retries; > - osm_bind_handle_t agents[UMAD_CA_MAX_AGENTS]; > + osm_bind_handle_t agents[OSM_UMAD_MAX_AGENTS]; Any reason? Sasha > char ca_names[OSM_UMAD_MAX_CAS][UMAD_CA_NAME_LEN]; > vendor_match_tbl_t mtbl; > umad_port_t umad_port; > diff --git a/opensm/libvendor/osm_vendor_ibumad.c b/opensm/libvendor/osm_vendor_ibumad.c > index 8d3c680..b221335 100644 > --- a/opensm/libvendor/osm_vendor_ibumad.c > +++ b/opensm/libvendor/osm_vendor_ibumad.c > @@ -288,7 +288,7 @@ static void *umad_receiver(void *p_ptr) > } > } > > - if (mad_agent >= UMAD_CA_MAX_AGENTS || > + if (mad_agent >= OSM_UMAD_MAX_AGENTS || > !(p_bind = p_vend->agents[mad_agent])) { > OSM_LOG(p_ur->p_log, OSM_LOG_ERROR, "ERR 5407: " > "invalid mad agent %d - dropping\n", mad_agent); > @@ -738,7 +738,7 @@ static void osm_vendor_close_port(osm_vendor_t * const p_vend) > } > > if (p_vend->umad_port_id >= 0) { > - for (i = 0; i < UMAD_CA_MAX_AGENTS; i++) > + for (i = 0; i < OSM_UMAD_MAX_AGENTS; i++) > if (p_vend->agents[i]) > umad_unregister(p_vend->umad_port_id, i); > umad_close_port(p_vend->umad_port_id); > @@ -862,7 +862,7 @@ osm_vendor_bind(IN osm_vendor_t * const p_vend, > goto Exit; > } > > - if (p_bind->agent_id >= UMAD_CA_MAX_AGENTS || > + if (p_bind->agent_id >= OSM_UMAD_MAX_AGENTS || > p_vend->agents[p_bind->agent_id]) { > OSM_LOG(p_vend->p_log, OSM_LOG_ERROR, "ERR 5427: " > "bad agent id %u or duplicate agent for class %u vers %u\n", > @@ -890,7 +890,7 @@ osm_vendor_bind(IN osm_vendor_t * const p_vend, > goto Exit; > } > > - if (p_bind->agent_id1 >= UMAD_CA_MAX_AGENTS || > + if (p_bind->agent_id1 >= OSM_UMAD_MAX_AGENTS || > p_vend->agents[p_bind->agent_id1]) { > OSM_LOG(p_vend->p_log, OSM_LOG_ERROR, "ERR 5429: " > "bad agent id %u or duplicate agent for class 1 vers %u\n", > -- > To unsubscribe from this list: send the line "unsubscribe linux-rdma" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] opensm/osm_vendor_ibumad: Use OSM_UMAD_MAX_AGENTS rather than UMAD_CA_MAX_AGENTS 2009-10-22 12:21 ` Sasha Khapyorsky @ 2009-10-22 12:49 ` Hal Rosenstock [not found] ` <f0e08f230910220549g1035441dj3b89e543c44efd3a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Hal Rosenstock @ 2009-10-22 12:49 UTC (permalink / raw) To: Sasha Khapyorsky Cc: sean.hefty-ral2JQCrhuEAvxtiuMwx3w, stan.smith-ral2JQCrhuEAvxtiuMwx3w, linux-rdma-u79uwXL29TY76Z2rM5mHXA Hi Sasha, On Thu, Oct 22, 2009 at 8:21 AM, Sasha Khapyorsky <sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org> wrote: > Hi Hal, > > Could you add commit message to your patches (this and another)? I thought the subject was sufficient and seems to be included in the commits. Is that true ? What are you looking for here that is not being done ? > On 11:38 Mon 19 Oct , Hal Rosenstock wrote: >> >> Signed-off-by: Hal Rosenstock <hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> --- >> diff --git a/opensm/include/vendor/osm_vendor_ibumad.h b/opensm/include/vendor/osm_vendor_ibumad.h >> index e346a2e..f3a48e5 100644 >> --- a/opensm/include/vendor/osm_vendor_ibumad.h >> +++ b/opensm/include/vendor/osm_vendor_ibumad.h >> @@ -66,6 +66,8 @@ BEGIN_C_DECLS >> #define OSM_DEFAULT_RETRY_COUNT 3 >> #define OSM_UMAD_MAX_CAS 32 >> #define OSM_UMAD_MAX_PORTS_PER_CA 2 >> +#define OSM_UMAD_MAX_AGENTS 32 >> + >> /****s* OpenSM: Vendor UMAD/osm_ca_info_t >> * NAME >> * osm_ca_info_t >> @@ -154,7 +156,7 @@ typedef struct _osm_vendor { >> osm_ca_info_t *p_ca_info; >> uint32_t timeout; >> int max_retries; >> - osm_bind_handle_t agents[UMAD_CA_MAX_AGENTS]; >> + osm_bind_handle_t agents[OSM_UMAD_MAX_AGENTS]; > > Any reason? To make the umad vendor layer "stand on its own". This was discussed in the Windows porting issues. See thread which ends http://lists.openfabrics.org/pipermail/ofw/2009-October/005819.html -- Hal > Sasha > >> char ca_names[OSM_UMAD_MAX_CAS][UMAD_CA_NAME_LEN]; >> vendor_match_tbl_t mtbl; >> umad_port_t umad_port; >> diff --git a/opensm/libvendor/osm_vendor_ibumad.c b/opensm/libvendor/osm_vendor_ibumad.c >> index 8d3c680..b221335 100644 >> --- a/opensm/libvendor/osm_vendor_ibumad.c >> +++ b/opensm/libvendor/osm_vendor_ibumad.c >> @@ -288,7 +288,7 @@ static void *umad_receiver(void *p_ptr) >> } >> } >> >> - if (mad_agent >= UMAD_CA_MAX_AGENTS || >> + if (mad_agent >= OSM_UMAD_MAX_AGENTS || >> !(p_bind = p_vend->agents[mad_agent])) { >> OSM_LOG(p_ur->p_log, OSM_LOG_ERROR, "ERR 5407: " >> "invalid mad agent %d - dropping\n", mad_agent); >> @@ -738,7 +738,7 @@ static void osm_vendor_close_port(osm_vendor_t * const p_vend) >> } >> >> if (p_vend->umad_port_id >= 0) { >> - for (i = 0; i < UMAD_CA_MAX_AGENTS; i++) >> + for (i = 0; i < OSM_UMAD_MAX_AGENTS; i++) >> if (p_vend->agents[i]) >> umad_unregister(p_vend->umad_port_id, i); >> umad_close_port(p_vend->umad_port_id); >> @@ -862,7 +862,7 @@ osm_vendor_bind(IN osm_vendor_t * const p_vend, >> goto Exit; >> } >> >> - if (p_bind->agent_id >= UMAD_CA_MAX_AGENTS || >> + if (p_bind->agent_id >= OSM_UMAD_MAX_AGENTS || >> p_vend->agents[p_bind->agent_id]) { >> OSM_LOG(p_vend->p_log, OSM_LOG_ERROR, "ERR 5427: " >> "bad agent id %u or duplicate agent for class %u vers %u\n", >> @@ -890,7 +890,7 @@ osm_vendor_bind(IN osm_vendor_t * const p_vend, >> goto Exit; >> } >> >> - if (p_bind->agent_id1 >= UMAD_CA_MAX_AGENTS || >> + if (p_bind->agent_id1 >= OSM_UMAD_MAX_AGENTS || >> p_vend->agents[p_bind->agent_id1]) { >> OSM_LOG(p_vend->p_log, OSM_LOG_ERROR, "ERR 5429: " >> "bad agent id %u or duplicate agent for class 1 vers %u\n", >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in >> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> > -- > To unsubscribe from this list: send the line "unsubscribe linux-rdma" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <f0e08f230910220549g1035441dj3b89e543c44efd3a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH] opensm/osm_vendor_ibumad: Use OSM_UMAD_MAX_AGENTS rather than UMAD_CA_MAX_AGENTS [not found] ` <f0e08f230910220549g1035441dj3b89e543c44efd3a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2009-10-22 13:28 ` Sasha Khapyorsky 2009-10-22 13:35 ` Sasha Khapyorsky 1 sibling, 0 replies; 5+ messages in thread From: Sasha Khapyorsky @ 2009-10-22 13:28 UTC (permalink / raw) To: Hal Rosenstock Cc: sean.hefty-ral2JQCrhuEAvxtiuMwx3w, stan.smith-ral2JQCrhuEAvxtiuMwx3w, linux-rdma-u79uwXL29TY76Z2rM5mHXA On 08:49 Thu 22 Oct , Hal Rosenstock wrote: > > I thought the subject was sufficient and seems to be included in the > commits. Is that true ? Subject is just *one* line patch summary and not patch description (as you trying to use it). > What are you looking for here that is not > being done ? Specifically the patch motivation was unclear to me. And this is due to violation of patch submitting recommendations: Look at /usr/src/linux/Documentation/SubmittingPatches , specifically #2 and #15 in Section 1. Sasha -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] opensm/osm_vendor_ibumad: Use OSM_UMAD_MAX_AGENTS rather than UMAD_CA_MAX_AGENTS [not found] ` <f0e08f230910220549g1035441dj3b89e543c44efd3a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2009-10-22 13:28 ` Sasha Khapyorsky @ 2009-10-22 13:35 ` Sasha Khapyorsky 1 sibling, 0 replies; 5+ messages in thread From: Sasha Khapyorsky @ 2009-10-22 13:35 UTC (permalink / raw) To: Hal Rosenstock Cc: sean.hefty-ral2JQCrhuEAvxtiuMwx3w, stan.smith-ral2JQCrhuEAvxtiuMwx3w, linux-rdma-u79uwXL29TY76Z2rM5mHXA On 08:49 Thu 22 Oct , Hal Rosenstock wrote: > >> /****s* OpenSM: Vendor UMAD/osm_ca_info_t > >> * NAME > >> * osm_ca_info_t > >> @@ -154,7 +156,7 @@ typedef struct _osm_vendor { > >> osm_ca_info_t *p_ca_info; > >> uint32_t timeout; > >> int max_retries; > >> - osm_bind_handle_t agents[UMAD_CA_MAX_AGENTS]; > >> + osm_bind_handle_t agents[OSM_UMAD_MAX_AGENTS]; > > > > Any reason? > > To make the umad vendor layer "stand on its own". This was discussed > in the Windows porting issues. See thread which ends > http://lists.openfabrics.org/pipermail/ofw/2009-October/005819.html I (and guess that many other OpenSM source and change log readers) am not subscribed on ofw list and unaware about this discussion. Could you summarize (in the patch change log) what is going on there and what is motivation for this change? Sasha -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-10-22 13:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-19 15:38 [PATCH] opensm/osm_vendor_ibumad: Use OSM_UMAD_MAX_AGENTS rather than UMAD_CA_MAX_AGENTS Hal Rosenstock
[not found] ` <20091019153846.GA22111-Wuw85uim5zDR7s880joybQ@public.gmane.org>
2009-10-22 12:21 ` Sasha Khapyorsky
2009-10-22 12:49 ` Hal Rosenstock
[not found] ` <f0e08f230910220549g1035441dj3b89e543c44efd3a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-10-22 13:28 ` Sasha Khapyorsky
2009-10-22 13:35 ` Sasha Khapyorsky
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox