On Fri, Aug 11, 2017 at 02:09:45AM -0700, Selvin Xavier wrote: > RoCE gid_type should be 0 or 1 based on RoCE v1 or > RoCE V2. Since bit mask is used now, cma_dev->default_gid_type > is set to 2 (1 << IB_GID_TYPE_ROCE_UDP_ENCAP). > Use the bit mask to check the prefered gid_type and > assign the gid_type value to IB_GID_TYPE_ROCE(0) or > IB_GID_TYPE_ROCE_UDP_ENCAP(1). > > Fixes: 3c7f67d1880d (IB/cma: Fix default RoCE type setting) > Signed-off-by: Selvin Xavier <selvin.xavier@xxxxxxxxxxxx> > Signed-off-by: Somnath Kotur <somnath.kotur@xxxxxxxxxxxx> > --- > drivers/infiniband/core/cma.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > Hi Selvin, We tested a little bit simple version of this fix. https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git/commit/?h=rdma-next&id=bf01e3dda415538fcb799bebfe60053cf6154490 Thanks,
Attachment:
signature.asc
Description: PGP signature