IB/cma: Fix default RoCE type setting
authorDoug Ledford <dledford@redhat.com>
Fri, 28 Jul 2017 17:47:24 +0000 (13:47 -0400)
committerDoug Ledford <dledford@redhat.com>
Fri, 28 Jul 2017 17:47:24 +0000 (13:47 -0400)
commit3c7f67d1880db4bda8eed12ca603c92b5434390e
tree3170508a4dc2952fb8eb9ee112c054a0d21af0ec
parenta5f66725c7748a6831005a091b4aa9d18abb3b03
IB/cma: Fix default RoCE type setting

The initial patch for changing the stack to use RoCEv2 GIDs by default
set the CMA_PREFERRED_ROCE_GID_TYPE to an incorrect value.  Instead of
an absolute value, we needed to set the right bit in a bitmask.  Correct
the default setting so we use RoCEv2 by default.

Fixes: 63a5f483af0e (IB/cma: Set default gid type to RoCEv2)
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cma.c