android_kernel_oneplus_msm8998/include/linux/mlx4
Talat Batheesh ca3a1bc7b6 net/mlx4: Fix the check in attaching steering rules
[ Upstream commit 6dc06c08bef1c746ff8da33dab677cfbacdcad32 ]

Our previous patch (cited below) introduced a regression
for RAW Eth QPs.

Fix it by checking if the QP number provided by user-space
exists, hence allowing steering rules to be added for valid
QPs only.

Fixes: 89c557687a32 ("net/mlx4_en: Avoid adding steering rules with invalid ring")
Reported-by: Or Gerlitz <gerlitz.or@gmail.com>
Signed-off-by: Talat Batheesh <talatb@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Acked-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-13 19:50:17 +02:00
..
cmd.h
cq.h
device.h net/mlx4_core: Avoid delays during VF driver device shutdown 2017-12-20 10:04:56 +01:00
doorbell.h
driver.h net/mlx4: Postpone the registration of net_device 2015-08-30 18:12:20 -04:00
qp.h net/mlx4: Fix the check in attaching steering rules 2018-04-13 19:50:17 +02:00
srq.h