[ewg] [PATCH] Perftest: Added support to 4K MTU

Oren Meron orenmeron at dev.mellanox.co.il
Mon Mar 24 11:46:25 PDT 2008


    Perftest: Added support to 4K MTU

    Signed-off-by: Oren Meron <orenmeron at dev.mellanox.co.il


--- a/read_bw.c
+++ b/read_bw.c
@@ -410,7 +410,7 @@ static int pp_connect_ctx(struct pingpong_context *ctx, int port, int my_psn,
                attr.path_mtu               = IBV_MTU_2048;
                break;
        case 4096 :
-               attr.path_mtu               = IBV_MTU_4096;////4kmtu
+               attr.path_mtu               = IBV_MTU_4096;
                break;
        }
        printf("Mtu : %d\n", user_parm->mtu);
@@ -463,7 +463,7 @@ static void usage(const char *argv0)
        printf("  -p, --port=<port>      listen on/connect to port <port> (default 18515)\n");
        printf("  -d, --ib-dev=<dev>     use IB device <dev> (default first device found)\n");
        printf("  -i, --ib-port=<port>   use port <port> of IB device (default 1)\n");
-       printf("  -m, --mtu=<mtu>        mtu size (256 - 4096. default for hermon is 2048)\n");////4kmtu
+       printf("  -m, --mtu=<mtu>        mtu size (256 - 4096. default for hermon is 2048)\n");
        printf("  -o, --outs=<num>       num of outstanding read/atom(default 4)\n");
        printf("  -s, --size=<size>      size of message to exchange (default 65536)\n");
        printf("  -a, --all              Run sizes from 2 till 2^23\n");
diff --git a/read_lat.c b/read_lat.c
index d4cc844..8119f57 100755 (executable)

--- a/read_lat.c
+++ b/read_lat.c
@@ -433,7 +433,7 @@ static int pp_connect_ctx(struct pingpong_context *ctx, int port, int my_psn,
                attr.path_mtu               = IBV_MTU_2048;
                break;
        case 4096 :
-               attr.path_mtu               = IBV_MTU_4096;////4kmtu
+               attr.path_mtu               = IBV_MTU_4096;
                break;
        }
        printf("Mtu : %d\n", user_parm->mtu);
@@ -554,7 +554,7 @@ static void usage(const char *argv0)
        printf("Options:\n");
        printf("  -p, --port=<port>            listen on/connect to port <port> (default 18515)\n");
        printf("  -c, --connection=<RC/UC>     connection type RC/UC (default RC)\n");
-       printf("  -m, --mtu=<mtu>              mtu size (256 - 4096. default for hermon is 2048)\n");////4kmtu
+       printf("  -m, --mtu=<mtu>              mtu size (256 - 4096. default for hermon is 2048)\n");
        printf("  -d, --ib-dev=<dev>           use IB device <dev> (default first device found)\n");
        printf("  -i, --ib-port=<port>         use port <port> of IB device (default 1)\n");
        printf("  -s, --size=<size>            size of message to exchange (default 1)\n");
diff --git a/send_bw.c b/send_bw.c
index a80fc41..e5c26c3 100755 (executable)

--- a/send_bw.c
+++ b/send_bw.c
@@ -490,7 +490,7 @@ static int pp_connect_ctx(struct pingpong_context *ctx, int port, int my_psn,
                attr.path_mtu               = IBV_MTU_2048;
                break;
        case 4096 :
-               attr.path_mtu               = IBV_MTU_4096;////4kmtu
+               attr.path_mtu               = IBV_MTU_4096;
                break;
        }
        printf("Mtu : %d\n", user_parm->mtu);
@@ -618,7 +618,7 @@ static void usage(const char *argv0)
        printf("  -d, --ib-dev=<dev>          use IB device <dev> (default first device found)\n");
        printf("  -i, --ib-port=<port>        use port <port> of IB device (default 1)\n");
        printf("  -c, --connection=<RC/UC/UD> connection type RC/UC/UD (default RC)\n");
-       printf("  -m, --mtu=<mtu>             mtu size (256 - 4096. default for hermon is 2048)\n");////4kmtu
+       printf("  -m, --mtu=<mtu>             mtu size (256 - 4096. default for hermon is 2048)\n");
        printf("  -s, --size=<size>           size of message to exchange (default 65536)\n");
        printf("  -a, --all                   Run sizes from 2 till 2^23\n");
        printf("  -t, --tx-depth=<dep>        size of tx queue (default 300)\n");
diff --git a/send_lat.c b/send_lat.c
index 667cd13..b2796d6 100755 (executable)

--- a/send_lat.c
+++ b/send_lat.c
@@ -507,7 +507,7 @@ static int pp_connect_ctx(struct pingpong_context *ctx, int port, int my_psn,
                        attr.path_mtu               = IBV_MTU_2048;
                        break;
                case 4096 :
-                       attr.path_mtu               = IBV_MTU_4096;////4kmtu
+                       attr.path_mtu               = IBV_MTU_4096;
                        break;
                }
                printf("Mtu : %d\n", user_parm->mtu);
@@ -700,7 +700,7 @@ static void usage(const char *argv0)
        printf("Options:\n");
        printf("  -p, --port=<port>            listen on/connect to port <port> (default 18515)\n");
        printf("  -c, --connection=<RC/UC/UD>  connection type RC/UC/UD (default RC)\n");
-       printf("  -m, --mtu=<mtu>             mtu size (256 - 4096. default for hermon is 2048)\n");////4kmtu
+       printf("  -m, --mtu=<mtu>             mtu size (256 - 4096. default for hermon is 2048)\n");
        printf("  -d, --ib-dev=<dev>           use IB device <dev> (default first device found)\n");
        printf("  -i, --ib-port=<port>         use port <port> of IB device (default 1)\n");
        printf("  -s, --size=<size>            size of message to exchange (default 1)\n");
diff --git a/write_bw.c b/write_bw.c
index 940dbf6..ba51370 100755 (executable)

--- a/write_bw.c
+++ b/write_bw.c
@@ -431,7 +431,7 @@ static int pp_connect_ctx(struct pingpong_context *ctx, int port, int my_psn,
                attr.path_mtu               = IBV_MTU_2048;
                break;
        case 4096 :
-               attr.path_mtu               = IBV_MTU_4096;////4kmtu
+               attr.path_mtu               = IBV_MTU_4096;
                break;
        }
        printf("Mtu : %d\n", user_parm->mtu);
@@ -511,7 +511,7 @@ static void usage(const char *argv0)
        printf("  -d, --ib-dev=<dev>        use IB device <dev> (default first device found)\n");
        printf("  -i, --ib-port=<port>      use port <port> of IB device (default 1)\n");
        printf("  -c, --connection=<RC/UC>  connection type RC/UC (default RC)\n");
-       printf("  -m, --mtu=<mtu>           mtu size (256 - 4096. default for hermon is 2048)\n");////4kmtu
+       printf("  -m, --mtu=<mtu>           mtu size (256 - 4096. default for hermon is 2048)\n");
        printf("  -g, --post=<num of posts> number of posts for each qp in the chain (default tx_depth)\n");
        printf("  -q, --qp=<num of qp's>    Num of qp's(default 1)\n");
        printf("  -s, --size=<size>         size of message to exchange (default 65536)\n");
diff --git a/write_bw_postlist.c b/write_bw_postlist.c
index 9f43947..e71ce31 100755 (executable)

--- a/write_bw_postlist.c
+++ b/write_bw_postlist.c
@@ -424,7 +424,7 @@ static int pp_connect_ctx(struct pingpong_context *ctx, int port, int my_psn,
                attr.path_mtu               = IBV_MTU_2048;
                break;
        case 4096 :
-               attr.path_mtu               = IBV_MTU_4096;////4kmtu
+               attr.path_mtu               = IBV_MTU_4096;
                break;
        }
        printf("Mtu : %d\n", user_parm->mtu);
@@ -569,7 +569,7 @@ static void usage(const char *argv0)
        printf("Options:\n");
        printf("  -p, --port=<port>            listen on/connect to port <port> (default 18515)\n");
        printf("  -c, --connection=<RC/UC>     connection type RC/UC (default RC)\n");
-       printf("  -m, --mtu=<mtu>              mtu size (256 - 4096. default for hermon is 2048)\n");////4kmtu
+       printf("  -m, --mtu=<mtu>              mtu size (256 - 4096. default for hermon is 2048)\n");
        printf("  -d, --ib-dev=<dev>           use IB device <dev> (default first device found)\n");
        printf("  -i, --ib-port=<port>         use port <port> of IB device (default 1)\n");
        printf("  -s, --size=<size>            size of message to exchange (default 1)\n");
diff --git a/write_bw_postlist.c b/write_bw_postlist.c
index 9f43947..e71ce31 100755 (executable)

--- a/write_bw_postlist.c
+++ b/write_bw_postlist.c
@@ -424,7 +424,7 @@ static int pp_connect_ctx(struct pingpong_context *ctx, int port, int my_psn,
                attr.path_mtu               = IBV_MTU_2048;
                break;
        case 4096 :
-               attr.path_mtu               = IBV_MTU_4096;////4kmtu
+               attr.path_mtu               = IBV_MTU_4096;
                break;
        }
        printf("Mtu : %d\n", user_parm->mtu);
@@ -569,7 +569,7 @@ static void usage(const char *argv0)
        printf("Options:\n");
        printf("  -p, --port=<port>            listen on/connect to port <port> (default 18515)\n");
        printf("  -c, --connection=<RC/UC>     connection type RC/UC (default RC)\n");
-       printf("  -m, --mtu=<mtu>              mtu size (256 - 4096. default for hermon is 2048)\n");////4kmtu
+       printf("  -m, --mtu=<mtu>              mtu size (256 - 4096. default for hermon is 2048)\n");
        printf("  -d, --ib-dev=<dev>           use IB device <dev> (default first device found)\n");
        printf("  -i, --ib-port=<port>         use port <port> of IB device (default 1)\n");
        printf("  -s, --size=<size>            size of message to exchange (default 1)\n");



More information about the ewg mailing list