* [infiniband-diags] [PATCH] [1/2] remove ibnd_update_node
@ 2009-11-02 19:33 Al Chu
[not found] ` <1257190397.580.30.camel-X2zTWyBD0EhliZ7u+bvwcg@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Al Chu @ 2009-11-02 19:33 UTC (permalink / raw)
To: sashak-smomgflXvOZWk0Htik3J/w; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 532 bytes --]
Hey Sasha,
After talking to Ira about it, we think it's best remove
ibnd_update_node.
A) It's not being used.
B) It probably not implemented properly
C) Some of Ira's original plans for its use require more API functions
to be added, which of course isn't done right now.
So for now, it seems best to just remove it since it's an additional
API function that can lead to confusion.
Al
--
Albert Chu
chu11-i2BcT+NCU+M@public.gmane.org
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory
[-- Attachment #2: 0001-remove-ibnd_update_node.patch --]
[-- Type: text/plain, Size: 3046 bytes --]
From: Albert Chu <chu11-i2BcT+NCU+M@public.gmane.org>
Date: Thu, 29 Oct 2009 18:56:32 -0700
Subject: [PATCH] remove ibnd_update_node
Signed-off-by: Albert Chu <chu11-i2BcT+NCU+M@public.gmane.org>
---
.../libibnetdisc/include/infiniband/ibnetdisc.h | 3 -
infiniband-diags/libibnetdisc/src/ibnetdisc.c | 55 --------------------
2 files changed, 0 insertions(+), 58 deletions(-)
diff --git a/infiniband-diags/libibnetdisc/include/infiniband/ibnetdisc.h b/infiniband-diags/libibnetdisc/include/infiniband/ibnetdisc.h
index bb5df02..6120453 100644
--- a/infiniband-diags/libibnetdisc/include/infiniband/ibnetdisc.h
+++ b/infiniband-diags/libibnetdisc/include/infiniband/ibnetdisc.h
@@ -172,9 +172,6 @@ MAD_EXPORT void ibnd_destroy_fabric(ibnd_fabric_t * fabric);
MAD_EXPORT ibnd_node_t *ibnd_find_node_guid(ibnd_fabric_t * fabric,
uint64_t guid);
MAD_EXPORT ibnd_node_t *ibnd_find_node_dr(ibnd_fabric_t * fabric, char *dr_str);
-MAD_EXPORT ibnd_node_t *ibnd_update_node(struct ibmad_port *ibmad_port,
- ibnd_fabric_t * fabric,
- ibnd_node_t * node);
typedef void (*ibnd_iter_node_func_t) (ibnd_node_t * node, void *user_data);
MAD_EXPORT void ibnd_iter_nodes(ibnd_fabric_t * fabric,
diff --git a/infiniband-diags/libibnetdisc/src/ibnetdisc.c b/infiniband-diags/libibnetdisc/src/ibnetdisc.c
index ebc45ba..ffa35e4 100644
--- a/infiniband-diags/libibnetdisc/src/ibnetdisc.c
+++ b/infiniband-diags/libibnetdisc/src/ibnetdisc.c
@@ -264,61 +264,6 @@ static int _check_ibmad_port(struct ibmad_port *ibmad_port)
return 0;
}
-ibnd_node_t *ibnd_update_node(struct ibmad_port * ibmad_port,
- ibnd_fabric_t * fabric, ibnd_node_t * node)
-{
- char portinfo_port0[IB_SMP_DATA_SIZE];
- void *nd = node->nodedesc;
- int p = 0;
-
- if (_check_ibmad_port(ibmad_port) < 0)
- return NULL;
-
- if (!fabric) {
- IBND_DEBUG("fabric parameter NULL\n");
- return NULL;
- }
-
- if (!node) {
- IBND_DEBUG("node parameter NULL\n");
- return NULL;
- }
-
- if (query_node_info(ibmad_port, fabric, node, &(node->path_portid)))
- return NULL;
-
- if (!smp_query_via(nd, &(node->path_portid), IB_ATTR_NODE_DESC, 0, 0,
- ibmad_port))
- return NULL;
-
- /* update all the port info's */
- for (p = 1; p >= node->numports; p++) {
- get_port_info(ibmad_port, fabric, node->ports[p],
- p, &(node->path_portid));
- }
-
- if (node->type != IB_NODE_SWITCH)
- goto done;
-
- if (!smp_query_via
- (portinfo_port0, &(node->path_portid), IB_ATTR_PORT_INFO, 0, 0,
- ibmad_port))
- return NULL;
-
- node->smalid = mad_get_field(portinfo_port0, 0, IB_PORT_LID_F);
- node->smalmc = mad_get_field(portinfo_port0, 0, IB_PORT_LMC_F);
-
- if (!smp_query_via(node->switchinfo, &(node->path_portid),
- IB_ATTR_SWITCH_INFO, 0, 0, ibmad_port))
- node->smaenhsp0 = 0; /* assume base SP0 */
- else
- mad_decode_field(node->switchinfo, IB_SW_ENHANCED_PORT0_F,
- &node->smaenhsp0);
-
-done:
- return node;
-}
-
ibnd_node_t *ibnd_find_node_dr(ibnd_fabric_t * fabric, char *dr_str)
{
int i = 0;
--
1.5.4.5
^ permalink raw reply related [flat|nested] 3+ messages in thread[parent not found: <1257190397.580.30.camel-X2zTWyBD0EhliZ7u+bvwcg@public.gmane.org>]
* Re: [infiniband-diags] [PATCH] [1/2] remove ibnd_update_node [not found] ` <1257190397.580.30.camel-X2zTWyBD0EhliZ7u+bvwcg@public.gmane.org> @ 2009-11-06 17:00 ` Sasha Khapyorsky 2009-11-06 17:00 ` [PATCH] libibnetdisc: remove man page of removed API Sasha Khapyorsky 1 sibling, 0 replies; 3+ messages in thread From: Sasha Khapyorsky @ 2009-11-06 17:00 UTC (permalink / raw) To: Al Chu; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA On 11:33 Mon 02 Nov , Al Chu wrote: > Hey Sasha, > > After talking to Ira about it, we think it's best remove > ibnd_update_node. > > A) It's not being used. > B) It probably not implemented properly > C) Some of Ira's original plans for its use require more API functions > to be added, which of course isn't done right now. > > So for now, it seems best to just remove it since it's an additional > API function that can lead to confusion. > > Al > > -- > Albert Chu > chu11-i2BcT+NCU+M@public.gmane.org > Computer Scientist > High Performance Systems Division > Lawrence Livermore National Laboratory > From: Albert Chu <chu11-i2BcT+NCU+M@public.gmane.org> > Date: Thu, 29 Oct 2009 18:56:32 -0700 > Subject: [PATCH] remove ibnd_update_node > > > Signed-off-by: Albert Chu <chu11-i2BcT+NCU+M@public.gmane.org> Applied. Thanks. Also removing its man page and libibnetdisc.map entry. 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] 3+ messages in thread
* [PATCH] libibnetdisc: remove man page of removed API [not found] ` <1257190397.580.30.camel-X2zTWyBD0EhliZ7u+bvwcg@public.gmane.org> 2009-11-06 17:00 ` Sasha Khapyorsky @ 2009-11-06 17:00 ` Sasha Khapyorsky 1 sibling, 0 replies; 3+ messages in thread From: Sasha Khapyorsky @ 2009-11-06 17:00 UTC (permalink / raw) To: Al Chu; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA Remove man page for removed ibnd_update_node() API. Also removing its entry from library version script. Signed-off-by: Sasha Khapyorsky <sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org> --- infiniband-diags/libibnetdisc/Makefile.am | 3 +-- .../libibnetdisc/man/ibnd_update_node.3 | 17 ----------------- infiniband-diags/libibnetdisc/src/libibnetdisc.map | 1 - 3 files changed, 1 insertions(+), 20 deletions(-) delete mode 100644 infiniband-diags/libibnetdisc/man/ibnd_update_node.3 diff --git a/infiniband-diags/libibnetdisc/Makefile.am b/infiniband-diags/libibnetdisc/Makefile.am index 7085f14..636d142 100644 --- a/infiniband-diags/libibnetdisc/Makefile.am +++ b/infiniband-diags/libibnetdisc/Makefile.am @@ -44,8 +44,7 @@ man_MANS = man/ibnd_debug.3 \ man/ibnd_find_node_guid.3 \ man/ibnd_iter_nodes.3 \ man/ibnd_iter_nodes_type.3 \ - man/ibnd_show_progress.3 \ - man/ibnd_update_node.3 + man/ibnd_show_progress.3 EXTRA_DIST = $(srcdir)/src/libibnetdisc.map libibnetdisc.ver $(man_MANS) diff --git a/infiniband-diags/libibnetdisc/man/ibnd_update_node.3 b/infiniband-diags/libibnetdisc/man/ibnd_update_node.3 deleted file mode 100644 index 472f3cd..0000000 --- a/infiniband-diags/libibnetdisc/man/ibnd_update_node.3 +++ /dev/null @@ -1,17 +0,0 @@ -.TH IBND_UPDATE_NODE 3 "July 25, 2008" "OpenIB" "OpenIB Programmer's Manual" -.SH "NAME" -ibnd_update_node \- Update the node specified with new data from the fabric. -.SH "SYNOPSIS" -.nf -.B #include <infiniband/ibnetdisc.h> -.sp -.BI "ibnd_node_t *ibnd_update_node(ibnd_node_t *node)" -.SH "DESCRIPTION" -.B ibnd_update_node() -Update the node info, port info, and node description of the node specified. -.SH "RETURN VALUE" -.B ibnd_update_node() -Return NULL on failure, otherwise a valid ibnd_node_t object which is part of the fabric object. -.SH "AUTHORS" -.TP -Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org> diff --git a/infiniband-diags/libibnetdisc/src/libibnetdisc.map b/infiniband-diags/libibnetdisc/src/libibnetdisc.map index bd108ab..13bb65a 100644 --- a/infiniband-diags/libibnetdisc/src/libibnetdisc.map +++ b/infiniband-diags/libibnetdisc/src/libibnetdisc.map @@ -5,7 +5,6 @@ IBNETDISC_1.0 { ibnd_discover_fabric; ibnd_destroy_fabric; ibnd_find_node_guid; - ibnd_update_node; ibnd_find_node_dr; ibnd_is_xsigo_guid; ibnd_is_xsigo_tca; -- 1.6.5.2 -- 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] 3+ messages in thread
end of thread, other threads:[~2009-11-06 17:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-02 19:33 [infiniband-diags] [PATCH] [1/2] remove ibnd_update_node Al Chu
[not found] ` <1257190397.580.30.camel-X2zTWyBD0EhliZ7u+bvwcg@public.gmane.org>
2009-11-06 17:00 ` Sasha Khapyorsky
2009-11-06 17:00 ` [PATCH] libibnetdisc: remove man page of removed API Sasha Khapyorsky
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox