Commit:     bacf4013530e7fc230a8aa0c6ea3c17fc2f47665
Parent:     0df6291c8af2778d05f278d5738eef2c8fafa2dd
Author:     Mark Debbage <[EMAIL PROTECTED]>
AuthorDate: Mon Jun 18 14:24:46 2007 -0700
Committer:  Roland Dreier <[EMAIL PROTECTED]>
CommitDate: Mon Jul 9 20:12:26 2007 -0700

    IB/ipath: Make handling of one subport consistent
    Previously the driver and userspace code handled the case of 1 subport
    somewhat inconsistently.  The new interpretation of this situation is
    that if one subport is requested, the driver turns on the subport
    mechanism and arranges for the port to be "shared" by one process.  In
    normal use the userspace library does not use this configuration and
    instead arranges for the port not to be shared at all.  This
    particular idiom can be useful for testing purposes.
    Signed-off-by: Mark Debbage <[EMAIL PROTECTED]>
    Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
 drivers/infiniband/hw/ipath/ipath_file_ops.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/hw/ipath/ipath_file_ops.c 
index fc83f40..a474796 100644
--- a/drivers/infiniband/hw/ipath/ipath_file_ops.c
+++ b/drivers/infiniband/hw/ipath/ipath_file_ops.c
@@ -1444,10 +1444,10 @@ static int init_subports(struct ipath_devdata *dd,
        size_t size;
-        * If the user is requesting zero or one port,
+        * If the user is requesting zero subports,
         * skip the subport allocation.
-       if (uinfo->spu_subport_cnt <= 1)
+       if (uinfo->spu_subport_cnt <= 0)
                goto bail;
        /* Self-consistency check for ipath_compatible_subports() */
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to