infiniband-diags: move get_msg to common code
PATCH 2/3 infiniband-diags: move get_msg to common code
so that iblinkinfo and ibqueryerrors can share this. This also supports Ext Link Speeds for the message in ibqueryerrors.
Signed-off-by Ira Weiny <[email protected]>
--- include/ibdiag_common.h | 5 ++++ src/ibdiag_common.c | 60 ++++++++++++++++++++++++++++++++++++++++++++++ src/iblinkinfo.c | 61 +---------------------------------------------- src/ibqueryerrors.c | 43 +-------------------------------- 4 files changed, 67 insertions(+), 102 deletions(-)
include/ibdiag_common.h +5 -0
@@ -41,6 +41,7 @@#include <infiniband/iba/ib_types.h> #include <infiniband/mad.h> +#include <infiniband/ibnetdisc.h> extern int ibverbose;extern char *ibd_ca;
@@ -131,4 +132,8 @@ void sa_report_err(int status); comp_mask |= IB_##name##_COMPMASK_##mask; \ } +/* note port must have a non-null remote_port */ +void get_max_msg (char *width_msg,char *speed_msg,int msg_size, +ibnd_port_t * port); +#endif /* _IBDIAG_COMMON_H_ */
src/ibdiag_common.c +60 -0
63 lines not on this page · raw message
src/iblinkinfo.c +1 -60
73 lines not on this page · raw message
src/ibqueryerrors.c +1 -42
55 lines not on this page · raw message
Signature · 6 lines
1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html