aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx4/sysfs.c
diff options
context:
space:
mode:
authorJack Morgenstein <jackm@dev.mellanox.co.il>2014-05-29 16:31:03 +0300
committerRoland Dreier <roland@purestorage.com>2014-05-29 21:13:09 -0700
commit99ec41d0a48cb6d14af25765f9449762f9d101f6 (patch)
treeb15baa4835c552a424b9d3ee0e271c4bc5bec273 /drivers/infiniband/hw/mlx4/sysfs.c
parentIB/mlx4: Preparation for VFs to issue/receive SMI (QP0) requests/responses (diff)
downloadlinux-dev-99ec41d0a48cb6d14af25765f9449762f9d101f6.tar.xz
linux-dev-99ec41d0a48cb6d14af25765f9449762f9d101f6.zip
mlx4: Add infrastructure for selecting VFs to enable QP0 via MLX proxy QPs
This commit adds the infrastructure for enabling selected VFs to operate SMI (QP0) MADs without restriction. Additionally, for these enabled VFs, their QP0 proxy and tunnel QPs are MLX QPs. As such, they operate over VL15. Therefore, they are not affected by "credit" problems or changes in the VLArb table (which may shut down VL0). Non-enabled VFs may only create UD proxy QP0 qps (which are forced by the hypervisor to send packets using the q-key it assigns and places in the qp-context). Thus, non-enabled VFs will not pose a security risk. The hypervisor discards any privileged MADs it receives from these non-enabled VFs. By default, all VFs are NOT enabled, and must explicitly be enabled by the administrator. The sysfs interface which operates the VF enablement infrastructure is provided in the next commit. Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx4/sysfs.c')
0 files changed, 0 insertions, 0 deletions