Message ID | B5538B5C830E456484477BD3BAFA430B@amr.corp.intel.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/libibmad/src/rpc.c b/libibmad/src/rpc.c index 026575d..1ea9a52 100644 --- a/libibmad/src/rpc.c +++ b/libibmad/src/rpc.c @@ -195,7 +195,7 @@ static int redirect_port(ib_portid_t * port, uint8_t * mad) port->qp = mad_get_field(mad, 64, IB_CPI_REDIRECT_QP_F); port->qkey = mad_get_field(mad, 64, IB_CPI_REDIRECT_QKEY_F); - port->sl = mad_get_field(mad, 64, IB_CPI_REDIRECT_SL_F); + port->sl = (uint8_t) mad_get_field(mad, 64, IB_CPI_REDIRECT_SL_F); /* TODO: Reverse map redirection P_Key to P_Key index */