<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>the tests user/libibverbs/examples/*_pingpong.c doesn't support the long format of the parameter rx-depth</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2 FACE="Arial">here is the code that handles the long parameters format in the test:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> static struct option long_options[] = {</FONT>
<BR><FONT SIZE=2 FACE="Arial"> { .name = "port", .has_arg = 1, .val = 'p' },</FONT>
<BR><FONT SIZE=2 FACE="Arial"> { .name = "ib-dev", .has_arg = 1, .val = 'd' },</FONT>
<BR><FONT SIZE=2 FACE="Arial"> { .name = "ib-port", .has_arg = 1, .val = 'i' },</FONT>
<BR><FONT SIZE=2 FACE="Arial"> { .name = "size", .has_arg = 1, .val = 's' },</FONT>
<BR><FONT SIZE=2 FACE="Arial"> { .name = "iters", .has_arg = 1, .val = 'n' },</FONT>
<BR><FONT SIZE=2 FACE="Arial"> { .name = "events", .has_arg = 0, .val = 'e' },</FONT>
<BR><FONT SIZE=2 FACE="Arial"> { 0 }</FONT>
<BR><FONT SIZE=2 FACE="Arial"> };</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">the following line should be added to all of the tests (ud_pingpong.c, uc_pingpong.c, rc_pingpong.c)</FONT>
<BR> <FONT SIZE=2 FACE="Arial">{ .name = "rx-depth", .has_arg = 1, .val = 'r' },</FONT>
</P>
<P><B><I><FONT COLOR="#008080" SIZE=6 FACE="Script">Dotan Barak</FONT></I></B>
<BR><FONT FACE="Times New Roman">Software Verification Engineer</FONT>
<BR><FONT FACE="Times New Roman">Mellanox Technologies LTD</FONT>
<BR><FONT SIZE=1 FACE="Tahoma"><A HREF="mailto:dotanb@mellanox.co.il">mailto:dotanb@mellanox.co.il</A></FONT>
<BR><FONT FACE="Times New Roman">Tel: +972-4-9097200 Ext: 231 Fax: +972-4-9593245</FONT>
<BR><FONT FACE="Times New Roman">P.O. Box 86 Yokneam 20692 ISRAEL.</FONT>
<BR><FONT FACE="Times New Roman">Home: +972-4-8289408 Cell: 0</FONT><FONT SIZE=2 FACE="Arial">52-4222383</FONT>
</P>
<P><FONT COLOR="#008080" SIZE=2 FACE="Arial">[ May the fork be with you ]</FONT>
</P>
</BODY>
</HTML>