Skip to contentSkip to conversation

libibmad/smp.c: Fix to smp_query_via for attribute data

PATCH Superseded Hal Rosenstock 1 participant 1 message Apr 1, 2011 InfiniBand

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 libibmad/smp.c: Fix to smp_query_via for attribute data

smp_query_via() does not allow setting the sent mad data. Change the data to be both in and out arguments.

---

src/smp.c +0 -0
index 3ff58ce..2809ffe 100644
@@ -102,7 +102,7 @@ uint8_t *smp_query_via(void *rcvbuf, ib_portid_t *

portid, unsigned attrid,
portid->sl = 0;
portid->qp = 0;

- return mad_rpc(srcport, &rpc, portid, 0, rcvbuf);
+ return mad_rpc(srcport, &rpc, portid, rcvbuf, rcvbuf);
}

uint8_t *smp_query(void *rcvbuf, ib_portid_t * portid, unsigned attrid,

--
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