linux-stable/include/linux/mlx5
Parav Pandit 9f8c7100c8 net/mlx5: E-Switch, Prepare to return total vports from eswitch struct
Total vports are already stored during eswitch initialization. Instead
of calculating everytime, read directly from eswitch.

Additionally, host PF's SF vport information is available using
QUERY_HCA_CAP command. It is not available through HCA_CAP of the
eswitch manager PF.
Hence, this patch prepares the return total eswitch vport count from the
existing eswitch struct.

This further helps to keep eswitch port counting macros and logic within
eswitch.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
2021-04-24 00:58:43 -07:00
..
accel.h net/mlx5: Accel, Add core IPsec support for the Connect-X family 2020-07-16 16:36:42 -07:00
cq.h net/mlx5: Avoid RDMA file inclusion in core driver 2020-06-27 13:50:46 -07:00
device.h net/mlx5e: RX, Add checks for calculated Striding RQ attributes 2021-04-19 20:17:09 -07:00
doorbell.h
driver.h net/mlx5: Add register layout to support extended link state 2021-04-16 11:48:25 -07:00
eq.h
eswitch.h net/mlx5: E-Switch, Return eswitch max ports when eswitch is supported 2021-04-24 00:58:40 -07:00
fs.h net/mlx5: Treat host PF vport as other (non eswitch manager) vport 2020-11-26 18:45:03 -08:00
fs_helpers.h
mlx5_ifc.h net/mlx5: DR, Add support for isolate_vl_tc QP 2021-04-19 20:17:46 -07:00
mlx5_ifc_fpga.h
mlx5_ifc_vdpa.h vdpa/mlx5: Make hardware definitions visible to all mlx5 devices 2020-12-04 14:46:56 +02:00
port.h net/mlx5: Add support for DSFP module EEPROM dumps 2021-04-11 16:34:56 -07:00
qp.h net/mlx5: Set QP timestamp mode to default 2021-03-10 11:01:56 -08:00
rsc_dump.h net/mlx5: Add support in query QP, CQ and MKEY segments 2020-06-23 17:26:10 +03:00
transobj.h
vport.h net/mlx5: E-Switch, Prepare to return total vports from eswitch struct 2021-04-24 00:58:43 -07:00