[ewg] [PATCH] Perftest: optimize ConnectX gen2 inline default

Oren Meron orenmeron at dev.mellanox.co.il
Mon Jul 28 06:21:39 PDT 2008


--- a/write_bw.c
+++ b/write_bw.c
@@ -864,9 +864,13 @@ int main(int argc, char *argv[])
                fprintf(stderr, "Failed to query device props");
                return 1;
        }
-       if ((device_attribute.vendor_part_id == 25418) && (!inline_given_in_cmd)) {
+       if ((device_attribute.vendor_part_id == 25408 ||
+               device_attribute.vendor_part_id == 25418 ||
+               device_attribute.vendor_part_id == 26408 ||
+               device_attribute.vendor_part_id == 26418 ||
+               device_attribute.vendor_part_id == 26428) && (!inline_given_in_cmd)) {
                user_param.inline_size = 1;
-       }
+        }
        printf("Inline data is used up to %d bytes message\n", user_param.inline_size);
 
        ctx = pp_init_ctx(ib_dev, size, user_param.tx_depth, ib_port, &user_param);
diff --git a/write_bw_postlist.c b/write_bw_postlist.c
index 87903c0..aa8b4c3 100755 (executable)

--- a/write_bw_postlist.c
+++ b/write_bw_postlist.c
@@ -855,9 +855,13 @@ int main(int argc, char *argv[])
                fprintf(stderr, "Failed to query device props");
                return 1;
        }
-       if ((device_attribute.vendor_part_id == 25418) && (!inline_given_in_cmd)) {
+       if ((device_attribute.vendor_part_id == 25408 ||
+               device_attribute.vendor_part_id == 25418 ||
+               device_attribute.vendor_part_id == 26408 ||
+               device_attribute.vendor_part_id == 26418 ||
+               device_attribute.vendor_part_id == 26428) && (!inline_given_in_cmd)) {
                user_param.inline_size = 1;
-       }
+        }
        printf("Inline data is used up to %d bytes message\n", user_param.inline_size);
 
        ctx = pp_init_ctx(ib_dev, size, user_param.tx_depth, ib_port, &user_param);

--- a/send_bw.c
+++ b/send_bw.c
@@ -1129,7 +1129,11 @@ int main(int argc, char *argv[])
                fprintf(stderr, "Failed to query device props");
                return 1;
        }
-       if ((device_attribute.vendor_part_id == 25418) && (!inline_given_in_cmd)) {
+       if ((device_attribute.vendor_part_id == 25408 ||
+               device_attribute.vendor_part_id == 25418 ||
+               device_attribute.vendor_part_id == 26408 ||
+               device_attribute.vendor_part_id == 26418 ||
+               device_attribute.vendor_part_id == 26428) && (!inline_given_in_cmd)) {
                user_param.inline_size = 1;
        }
        printf("Inline data is used up to %d bytes message\n", user_param.inline_size);



More information about the ewg mailing list