]> git.baikalelectronics.ru Git - kernel.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)
commitf3432b85a6f89c965bcf7be4bd14a7c143a17bf0
tree04ee4b95bf4192521cb13d6d2fbff69624928804
parent57e967e195f23b1da8861f0f0e62bc316539e006
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