diff options
author | Ralph Campbell <ralph.campbell@qlogic.com> | 2007-10-23 18:07:41 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-01-25 17:15:25 -0500 |
commit | f9b403532235520ec248c024f621efcaf6ba7b93 (patch) | |
tree | 43bf4fbd3ba599fa9a75054188930e8c96f86d5f /drivers | |
parent | 3828ff457a694f97f88f6978bea428199df0a690 (diff) |
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: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_mad.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_mad.c b/drivers/infiniband/hw/ipath/ipath_mad.c index 3d1432d1e3f4..1978c346b5c5 100644 --- a/drivers/infiniband/hw/ipath/ipath_mad.c +++ b/drivers/infiniband/hw/ipath/ipath_mad.c | |||
@@ -1434,7 +1434,7 @@ static int process_subn(struct ib_device *ibdev, int mad_flags, | |||
1434 | * before checking for other consumers. | 1434 | * before checking for other consumers. |
1435 | * Just tell the caller to process it normally. | 1435 | * Just tell the caller to process it normally. |
1436 | */ | 1436 | */ |
1437 | ret = IB_MAD_RESULT_FAILURE; | 1437 | ret = IB_MAD_RESULT_SUCCESS; |
1438 | goto bail; | 1438 | goto bail; |
1439 | default: | 1439 | default: |
1440 | smp->status |= IB_SMP_UNSUP_METHOD; | 1440 | smp->status |= IB_SMP_UNSUP_METHOD; |
@@ -1516,7 +1516,7 @@ static int process_perf(struct ib_device *ibdev, u8 port_num, | |||
1516 | * before checking for other consumers. | 1516 | * before checking for other consumers. |
1517 | * Just tell the caller to process it normally. | 1517 | * Just tell the caller to process it normally. |
1518 | */ | 1518 | */ |
1519 | ret = IB_MAD_RESULT_FAILURE; | 1519 | ret = IB_MAD_RESULT_SUCCESS; |
1520 | goto bail; | 1520 | goto bail; |
1521 | default: | 1521 | default: |
1522 | pmp->status |= IB_SMP_UNSUP_METHOD; | 1522 | pmp->status |= IB_SMP_UNSUP_METHOD; |