What about QP1?  It was my understanding that CM was still required for RoCE.

Ira

On Thu, 21 Feb 2013 14:01:51 -0500
Hal Rosenstock <[email protected]> wrote:

> 
> Signed-off-by: Ilya Nelkenbaum <[email protected]>
> ---
> diff --git a/src/umad.c b/src/umad.c
> index 8f817d2..8ab5e80 100644
> --- a/src/umad.c
> +++ b/src/umad.c
> @@ -256,6 +256,11 @@ static int resolve_ca_port(char *ca_name, int *port)
>                       ret = -1;
>                       goto Exit;
>               }
> +             if (strcmp(ca.ports[*port]->link_layer, "InfiniBand") &&
> +                 strcmp(ca.ports[*port]->link_layer, "IB")) {
> +                     ret = -1;
> +                     goto Exit;
> +             }
>               if (ca.ports[*port]->state == 4) {
>                       ret = 1;
>                       goto Exit;
> @@ -270,6 +275,9 @@ static int resolve_ca_port(char *ca_name, int *port)
>               DEBUG("checking port %d", i);
>               if (!ca.ports[i])
>                       continue;
> +             if (strcmp(ca.ports[i]->link_layer, "InfiniBand") &&
> +                 strcmp(ca.ports[i]->link_layer, "IB"))
> +                     continue;
>               if (up < 0 && ca.ports[i]->phys_state == 5)
>                       up = *port = i;
>               if (ca.ports[i]->state == 4) {
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 
Ira Weiny
Member of Technical Staff
Lawrence Livermore National Lab
925-423-8008
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to