OSDN Git Service

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)
commit4d02ebd9bbbdde1d524e62b540b0402cee7bbcdf
tree31905155059cae496ae5f8a241018d2c525edf59
parent0fbe8f575b15585eec3326e43708fbbc024e8486
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: 3078f5f1bd8b ("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