diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2012-06-19 08:21:43 (GMT) |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-07-11 18:51:37 (GMT) |
commit | 105c320f6ac37af30252577d419e47b39edb5843 (patch) | |
tree | 4b1b6ebaebf4eaf5c76d47d4a565d75a4f3399ec /drivers/net/ethernet/mellanox/mlx4/mlx4.h | |
parent | 396f2feb05d7cc5549c611c05abfb4108cd1c6d6 (diff) | |
download | linux-fsl-qoriq-105c320f6ac37af30252577d419e47b39edb5843.tar.xz |
mlx4_core: Allow guests to have IB ports
Modify mlx4_dev_cap to allow IB support when SR-IOV is active. Modify
mlx4_slave_cap to set the "rdma-supported" bit in its flags area, and
pass that to the guests (this is done in QUERY_FUNC_CAP and its
wrapper).
However, we don't activate IB support quite yet -- we leave the error
return at the start of mlx4_ib_add in the mlx4_ib driver.
In addition, set "protected fmr supported" bit to zero in the
QUERY_FUNC_CAP wrapper.
Finally, in the QUERY_FUNC_CAP wrapper, we needed to add code which
checks for the port type (IB or Ethernet). Previously, this was not
an issue, since only Ethernet ports were supported.
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/net/ethernet/mellanox/mlx4/mlx4.h')
0 files changed, 0 insertions, 0 deletions