net/mlx4_core: Add security check / enforcement for flow steering rules set for VMs
authorHadar Hen Zion <hadarh@mellanox.com>
Wed, 5 Sep 2012 22:50:49 +0000 (22:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Sep 2012 16:55:59 +0000 (12:55 -0400)
commit7fb40f87c4195ec1728527f30bc744c47a45b366
tree4a7356fc76c4db03731d7354c66f7b158682d295
parenta8edc3bf05a3465726afdf635a820761fae0d50b
net/mlx4_core: Add security check / enforcement for flow steering rules set for VMs

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 their L2 specification relate to MAC address
assigned to that VF, and add L2 specification if its missing.

Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c
include/linux/mlx4/device.h