infiniband-diags: move get_msg to common code
PATCH 1/1 infiniband-diags: move get_msg to common code
iblinkinfo and ibqueryerrors should share this.
Signed-off-by Ira Weiny <[email protected]>
--- include/ibdiag_common.h | 4 ++ src/ibdiag_common.c | 76 +++++++++++++++++++++++++++++++++++++++++++++ src/iblinkinfo.c | 77 +--------------------------------------------- src/ibqueryerrors.c | 79 +---------------------------------------------- 4 files changed, 82 insertions(+), 154 deletions(-)
include/ibdiag_common.h +4 -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;
@@ -130,4 +131,7 @@ void sa_report_err(int status); comp_mask |= IB_##name##_COMPMASK_##mask; \ } +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 +76 -0
79 lines not on this page · raw message
src/iblinkinfo.c +1 -76
89 lines not on this page · raw message
src/ibqueryerrors.c +1 -78
91 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