]> 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)
commit8dcc9c0269bff479947d72a1384d0a230942c4f0
tree4a7356fc76c4db03731d7354c66f7b158682d295
parent10299580a5863ee6c47a25f61c034ec54a7b0448
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