]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf4f33c53c74bbbc0a11204748675aab7c49715ff
tree4a7356fc76c4db03731d7354c66f7b158682d295
parentac2f915b8467220d31ec5999b8ae853aba2d1823
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