提交 f9b40353 编写于 作者: R Ralph Campbell 提交者: Roland Dreier

IB/ipath: Enable loopback of DR SMP responses from userspace

This patch is in response to reviewing a patch to the core MAD
processing which fixes loopback of directed route packets to/from user
level MAD agents.  This change enables the core code to work for
ib_ipath by fixing the return code from the ipath process_mad method.
Signed-off-by: NRalph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: NRoland Dreier <rolandd@cisco.com>
上级 3828ff45
...@@ -1434,7 +1434,7 @@ static int process_subn(struct ib_device *ibdev, int mad_flags, ...@@ -1434,7 +1434,7 @@ static int process_subn(struct ib_device *ibdev, int mad_flags,
* before checking for other consumers. * before checking for other consumers.
* Just tell the caller to process it normally. * Just tell the caller to process it normally.
*/ */
ret = IB_MAD_RESULT_FAILURE; ret = IB_MAD_RESULT_SUCCESS;
goto bail; goto bail;
default: default:
smp->status |= IB_SMP_UNSUP_METHOD; smp->status |= IB_SMP_UNSUP_METHOD;
...@@ -1516,7 +1516,7 @@ static int process_perf(struct ib_device *ibdev, u8 port_num, ...@@ -1516,7 +1516,7 @@ static int process_perf(struct ib_device *ibdev, u8 port_num,
* before checking for other consumers. * before checking for other consumers.
* Just tell the caller to process it normally. * Just tell the caller to process it normally.
*/ */
ret = IB_MAD_RESULT_FAILURE; ret = IB_MAD_RESULT_SUCCESS;
goto bail; goto bail;
default: default:
pmp->status |= IB_SMP_UNSUP_METHOD; pmp->status |= IB_SMP_UNSUP_METHOD;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册