]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
IB/mlx4: Fix incorrect MC join state bit-masking on SR-IOV
authorAlex Vesker <valex@mellanox.com>
Mon, 12 Sep 2016 16:16:18 +0000 (19:16 +0300)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 20 Oct 2016 13:07:28 +0000 (08:07 -0500)
commit5dd8159af012a45b6df5967fda5eb21166c48bb5
treeab2f90e5adfa035be7deaacac84f1d658f1c648a
parenta9f79de66c1b00ea8b330ac4f4cb30340e7389d2
IB/mlx4: Fix incorrect MC join state bit-masking on SR-IOV

BugLink: http://bugs.launchpad.net/bugs/1631468
commit e5ac40cd66c2f3cd11bc5edc658f012661b16347 upstream.

Because of an incorrect bit-masking done on the join state bits, when
handling a join request we failed to detect a difference between the
group join state and the request join state when joining as send only
full member (0x8). This caused the MC join request not to be sent.
This issue is relevant only when SRIOV is enabled and SM supports
send only full member.

This fix separates scope bits and join states bits a nibble each.

Fixes: b9c5d6a64358 ('IB/mlx4: Add multicast group (MCG) paravirtualization for SR-IOV')
Signed-off-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/infiniband/hw/mlx4/mcg.c