[ofa-general] [PATCH] libibmad/serv.c: Fixed respond function to return proper result code
Itai Baz
itaib at mellanox.com
Tue Mar 17 07:17:56 PDT 2009
Hi Sasha,
mad_respond_via() function was always returning OK.
Fixing it to return the proper status.
Signed-off-by: Itai Baz <itaib at mellanox.co.il>
---
libibmad/src/serv.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libibmad/src/serv.c b/libibmad/src/serv.c
index c97466a..7e93c12 100644
--- a/libibmad/src/serv.c
+++ b/libibmad/src/serv.c
@@ -128,6 +128,7 @@ int mad_respond_via(void *umad, ib_portid_t * portid, uint32_t rstatus,
rpc.oui = mad_get_field(mad, 0, IB_VEND2_OUI_F);
rpc.trid = mad_get_field64(mad, 0, IB_MAD_TRID_F);
+ rpc.rstatus = rstatus;
/* cleared by default: timeout, datasz, dataoffs, mkey, mask */
--
1.5.3.7
More information about the general
mailing list