[MLX4] fix a bug, causing successful registration of RO memory for write access
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 9 Jul 2008 15:43:13 +0000 (15:43 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 9 Jul 2008 15:43:13 +0000 (15:43 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1362 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mlx4/kernel/bus/core/iobuf.c

index 606eb96..4e6dbe2 100644 (file)
@@ -154,7 +154,7 @@ static int register_segment(
        IN              u64 va,
        IN              u64 size,
        IN              int is_user,
-       IN              ib_access_t acc,
+       IN              enum ib_access_flags acc,
        OUT iobuf_seg_t **iobuf_seg)
 {
        PMDL mdl_p;
@@ -165,7 +165,7 @@ static int register_segment(
        LOCK_OPERATION Operation;
 
        // set Operation
-       if (acc & IB_AC_LOCAL_WRITE)
+       if (acc & IB_ACCESS_LOCAL_WRITE)
                Operation = IoModifyAccess;
        else
                Operation = IoReadAccess;