]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
mlx4_core: Add QPN enforcement for flow steering rules set by VFs
authorHadar Hen Zion <hadarh@mellanox.com>
Thu, 6 Dec 2012 17:11:57 +0000 (17:11 +0000)
committerRoland Dreier <roland@purestorage.com>
Wed, 19 Dec 2012 17:43:59 +0000 (09:43 -0800)
commita9c01e7ac1bc0302775437491f7424514d64607c
tree04ee4b95bf4192521cb13d6d2fbff69624928804
parent5bd665f28db2b04a8d6fe277342479906fc60b62
mlx4_core: Add QPN enforcement for flow steering rules set by VFs

Since VFs may be mapped to VMs which aren't trusted entities, flow
steering rules attached through the wrapper on behalf of VFs must be
checked to make sure that the specified QP number is assigned to that
VF.  Also, make sure to keep the QP busy till the end of the operation
from the resource tracker point of view.

Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c