]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Fix RSS hash fields restrictions
authorGuy Levi <guyle@mellanox.com>
Tue, 5 Dec 2017 20:30:03 +0000 (22:30 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 7 Dec 2017 20:28:07 +0000 (15:28 -0500)
commit5a3af60f193cd226d74f426eb32c5d75f6e91b4b
tree31905155059cae496ae5f8a241018d2c525edf59
parent21cdd903a782ec99fad88b10386dd988e91a4bc0
IB/mlx4: Fix RSS hash fields restrictions

Mistakenly the driver didn't allow RSS hash fields combinations which
involve both IPv4 and IPv6 protocols. This bug caused to failures for
user's use cases for RSS.

Consequently, this patch fixes this bug and allows any combination that
the HW can support.

Additionally, the patch fixes the driver to return an error in case the
user provides an unsupported mask for RSS hash fields.

Fixes: 65c772e79721 ("IB/mlx4: Add support for RSS QP")
Signed-off-by: Guy Levi <guyle@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx4/qp.c