[VSTAT] add Voltaire vendor support and fix several typos
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 1 Aug 2006 10:06:39 +0000 (10:06 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 1 Aug 2006 10:06:39 +0000 (10:06 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@434 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

tools/vstat/user/vstat_main.c

index 86f7edb..2026d80 100644 (file)
@@ -46,6 +46,7 @@
 \r
 \r
 #define VEND_ID_MELLNOX        0x02c9\r
+#define VEND_ID_VOLTAIRE       0x08f1\r
 \r
 \r
 /*******************************************************************\r
@@ -209,7 +210,7 @@ void vstat_print_ca_attr(int idx,  ib_ca_attr_t* ca_attr, BOOLEAN fullPrint){
        printf("\tvendor_id=0x%04x\n", ca_attr->vend_id);\r
        printf("\tvendor_part_id=0x%04x\n", ca_attr->dev_id);\r
        printf("\thw_ver=0x%x\n", ca_attr->revision); //TODO: ???\r
-       if(ca_attr->vend_id == VEND_ID_MELLNOX){\r
+       if(ca_attr->vend_id == VEND_ID_MELLNOX || ca_attr->vend_id == VEND_ID_VOLTAIRE) {\r
                printf("\tfw_ver=%d.%.2d.%.4d\n",\r
                (uint16_t )(ca_attr->fw_ver>>32),\r
                (uint16_t)(ca_attr->fw_ver>>16),\r
@@ -222,17 +223,17 @@ void vstat_print_ca_attr(int idx,  ib_ca_attr_t* ca_attr, BOOLEAN fullPrint){
        if(fullPrint){\r
                printf("\tnum_phys_ports = %d\n",ca_attr->num_ports);\r
                printf("\tmax_num_qp = 0x%x             (Maximum Number of QPs supported)\n", ca_attr->max_qps);\r
-               printf("\tmax_qp_ous_wr = 0x%x          (Maximum Number of oustanding WR on any WQ)\n", ca_attr->max_wrs);\r
+               printf("\tmax_qp_ous_wr = 0x%x          (Maximum Number of outstanding WR on any WQ)\n", ca_attr->max_wrs);\r
                printf("\tmax_num_sg_ent = 0x%x         (Max num of scatter/gather entries for WQE other than RD)\n", ca_attr->max_sges);\r
                printf("\tmax_num_sg_ent_rd = 0x%x              (Max num of scatter/gather entries for RD WQE)\n",  ca_attr->max_rd_sges);\r
                printf("\tmax_num_srq = 0                       (Maximum Number of SRQs supported)\n");\r
-               printf("\tmax_wqe_per_srq = 0           (Maximum Number of oustanding WR on any SRQ)\n");\r
-               printf("\tmax_srq_sentries = 0          (Maximum Number of scatter entries for SRQ WQE)\n");\r
+               printf("\tmax_wqe_per_srq = 0           (Maximum Number of outstanding WR on any SRQ)\n");\r
+               printf("\tmax_srq_sentries = 0          (Maximum Number of scatter/gather entries for SRQ WQE)\n");\r
                printf("\tsrq_resize_supported = 0      (SRQ resize supported)\n");\r
                printf("\tmax_num_cq = 0x%x             (Max num of supported CQs)\n", ca_attr->max_cqs);\r
                printf("\tmax_num_ent_cq = 0x%x (Max num of supported entries per CQ)\n", ca_attr->max_cqes);\r
                printf("\tmax_num_mr = 0x%x             (Maximum number of memory region supported)\n", ca_attr->init_regions);\r
-               printf("\tmax_mr_size = 0x%x    (Largest contigous block of memory region in bytes)\n", ca_attr->init_region_size);\r
+               printf("\tmax_mr_size = 0x%x    (Largest contiguous block of memory region in bytes)\n", ca_attr->init_region_size);\r
                printf("\tmax_pd_num = 0x%x             (Maximum number of protection domains supported)\n", ca_attr->max_pds);\r
                printf("\tpage_size_cap = 0x%x          (Largest page size supported by this HCA)\n",ca_attr->p_page_size[ca_attr->num_page_sizes-1]);\r
 \r