]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Fix RSS's QPC attributes assignments
authorGuy Levi <guyle@mellanox.com>
Wed, 25 Oct 2017 19:39:35 +0000 (22:39 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 10 Nov 2017 18:04:09 +0000 (13:04 -0500)
commit4000b9ea8009c1ce1421f8afb2ecbb6fbec29f9e
treeb5d9a1ca5a44518fdaf488b5e0aaa9825a5542e9
parent21dd7cd09a0493a40f0b0f5c52b8ba3ef07406ac
IB/mlx4: Fix RSS's QPC attributes assignments

In the modify QP handler the base_qpn_udp field in the RSS QPC is
overwrite later by irrelevant value assignment. Hence, ingress packets
which gets to the RSS QP will be steered then to a garbage QPN.

The patch fixes this by skipping the above assignment when a RSS QP is
modified, also, the RSS context's attributes assignments are relocated
just before the context is posted to avoid future issues like this.

Additionally, this patch takes the opportunity to change the code to be
disciplined to the device's manual and assigns the RSS QP context just at
RESET to INIT transition.

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