]> 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)
commit5449cc224a1c611dcb90ee8145b27b2918bf1331
tree31905155059cae496ae5f8a241018d2c525edf59
parentfe08fc9dcada33ada6aaaa4990cea16c7717f2b0
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: 417a27ddfa1f ("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