acm.c: Invalid pkey has low order 15 bits 0
PATCH 3/8 acm.c: Invalid pkey has low order 15 bits 0
so add in handling for pkey 0x8000 as well as 0 for invalid
--- src/acm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
src/acm.c +1 -1
@@ -3211,7 +3211,7 @@ static void acm_port_up(struct acm_port *port)atomic_set (&port->sa_dest.refcnt,1 );for (i =0 ; i < attr.pkey_tbl_len; i++) { ret =ibv_query_pkey (port->dev->verbs, port->port_num, i, &pkey); -if (ret || !pkey) +if (ret || !(ntohs (pkey) &0x7fff ))continue ; port->pkey_cnt++;acm_ep_up (port, (uint16_t ) i);
Signature · 6 lines
1.7.8.2 -- 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