linux/drivers/infiniband/hw
Jack Morgenstein 10b1c04e92 net/mlx4_core: Fix raw qp flow steering rules under SRIOV
Demoting simple flow steering rule priority (for DPDK) was achieved by
wrapping FW commands MLX4_QP_FLOW_STEERING_ATTACH/DETACH for the PF
as well, and forcing the priority to MLX4_DOMAIN_NIC in the wrapper
function for the PF and all VFs.

In function mlx4_ib_create_flow(), this change caused the main rule
creation for the PF to be wrapped, while it left the associated
tunnel steering rule creation unwrapped for the PF.

This mismatch caused rule deletion failures in mlx4_ib_destroy_flow()
for the PF when the detach wrapper function did not find the associated
tunnel-steering rule (since creation of that rule for the PF did not
go through the wrapper function).

Fix this by setting MLX4_QP_FLOW_STEERING_ATTACH/DETACH to be "native"
(so that the PF invocation does not go through the wrapper), and perform
the required priority demotion for the PF in the mlx4_ib_create_flow()
code path.

Fixes: 48564135cb ("net/mlx4_core: Demote simple multicast and broadcast flow steering rules")
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-12-29 14:17:40 -05:00
..
cxgb3 Merge branch 'mlx' into merge-test 2016-12-14 14:44:25 -05:00
cxgb4 First round of -rc fixes for 4.10 kernel 2016-12-23 10:38:48 -08:00
hfi1 Updates for 4.10 kernel merge window 2016-12-15 12:03:32 -08:00
hns Merge branch 'mlx' into merge-test 2016-12-14 14:44:25 -05:00
i40iw i40iw: Set 128B as the only supported RQ WQE size 2016-12-22 11:36:12 -05:00
mlx4 net/mlx4_core: Fix raw qp flow steering rules under SRIOV 2016-12-29 14:17:40 -05:00
mlx5 Updates for 4.10 kernel merge window 2016-12-15 12:03:32 -08:00
mthca Merge branch 'mlx' into merge-test 2016-12-14 14:44:25 -05:00
nes Updates for 4.10 kernel merge window 2016-12-15 12:03:32 -08:00
ocrdma Merge branches 'misc', 'qedr', 'reject-helpers', 'rxe' and 'srp' into merge-test 2016-12-14 14:44:47 -05:00
qedr First round of -rc fixes for 4.10 kernel 2016-12-23 10:38:48 -08:00
qib Merge branch 'hfi1' into merge-test 2016-12-14 14:44:08 -05:00
usnic Merge branches 'misc', 'qedr', 'reject-helpers', 'rxe' and 'srp' into merge-test 2016-12-14 14:44:47 -05:00
vmw_pvrdma IB: Add vmw_pvrdma driver 2016-12-14 14:55:10 -05:00
Makefile IB: Add vmw_pvrdma driver 2016-12-14 14:55:10 -05:00