1 From 4f9ca2d8686ecfdd40ca4f0294a3d94f83f05cea Mon Sep 17 00:00:00 2001
2 From: Leon Romanovsky <leonro@mellanox.com>
3 Date: Thu, 26 Apr 2018 15:37:48 +0300
4 Subject: RDMA/mlx4: Add missed RSS hash inner header flag
6 From: Leon Romanovsky <leonro@mellanox.com>
8 commit 4f9ca2d8686ecfdd40ca4f0294a3d94f83f05cea upstream.
10 Despite being advertised to user space application, the RSS inner
11 header flag was filtered by checks at the beginning of QP creation
14 Cc: <stable@vger.kernel.org> # 4.15
15 Fixes: 4d02ebd9bbbd ("IB/mlx4: Fix RSS hash fields restrictions")
16 Fixes: 07d84f7b6adf ("IB/mlx4: Add support to RSS hash for inner headers")
17 Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
18 Signed-off-by: Doug Ledford <dledford@redhat.com>
19 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
22 drivers/infiniband/hw/mlx4/qp.c | 3 ++-
23 1 file changed, 2 insertions(+), 1 deletion(-)
25 --- a/drivers/infiniband/hw/mlx4/qp.c
26 +++ b/drivers/infiniband/hw/mlx4/qp.c
27 @@ -673,7 +673,8 @@ static int set_qp_rss(struct mlx4_ib_dev
28 MLX4_IB_RX_HASH_SRC_PORT_TCP |
29 MLX4_IB_RX_HASH_DST_PORT_TCP |
30 MLX4_IB_RX_HASH_SRC_PORT_UDP |
31 - MLX4_IB_RX_HASH_DST_PORT_UDP)) {
32 + MLX4_IB_RX_HASH_DST_PORT_UDP |
33 + MLX4_IB_RX_HASH_INNER)) {
34 pr_debug("RX Hash fields_mask has unsupported mask (0x%llx)\n",
35 ucmd->rx_hash_fields_mask);