[ofa-general] Re: [PATCH v2 4/4] perfquery PortXmtDataSL/PortRcvDataSL support
Sasha Khapyorsky
sashak at voltaire.com
Mon Mar 2 00:40:27 PST 2009
On 14:41 Sun 01 Mar , Or Gerlitz wrote:
> @@ -353,6 +407,8 @@ int main(int argc, char **argv)
>
> const struct ibdiag_opt opts[] = {
> { "extended", 'x', 0, NULL, "show extended port counters" },
> + { "xmtsl", 'X', 0, NULL, "show Xmt SL port counters" },
> + { "rcvsl", 'S', 0, NULL, "show Rcv SL port counters" },
> { "all_ports", 'a', 0, NULL, "show aggregated counters" },
> { "loop_ports", 'l', 0, NULL, "iterate through each port" },
> { "reset_after_read", 'r', 0, NULL, "reset counters after read" },
> @@ -410,6 +466,16 @@ int main(int argc, char **argv)
> all_ports_loop = 1;
> }
>
> + if (xmt_sl) {
> + xmt_sl_query(&portid, port, mask);
> + exit(0);
> + }
> +
> + if (rcv_sl) {
> + rcv_sl_query(&portid, port, mask);
> + exit(0);
> + }
Would options '-S -X' useful together? May it work with '-a' (all
ports)?
Sasha
More information about the general
mailing list