diff options
author | Matan Barak <matanb@mellanox.com> | 2014-03-19 12:11:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-20 16:18:29 -0400 |
commit | f74462acf8f390528c8b7937f227c6c90d017f3b (patch) | |
tree | 5214afc5585cf140693664224dc58ab276af0e0c /drivers/net/ethernet/mellanox/mlx4/mlx4.h | |
parent | 1ab95d37bcc3ff2d69e3871e4f056bab7aed0b85 (diff) |
net/mlx4: Add utils for N-Port VFs
This patch adds the following utils:
1. Convert slave_id -> VF
2. Get the active ports by slave_id
3. Convert slave's port to real port
4. Get the slave's port from real port
5. Get all slaves that uses the i'th real port
6. Get all slaves that uses the i'th real port exclusively
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/mlx4.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/mlx4.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4.h b/drivers/net/ethernet/mellanox/mlx4/mlx4.h index 6ba38c98c492..fe8715e35afa 100644 --- a/drivers/net/ethernet/mellanox/mlx4/mlx4.h +++ b/drivers/net/ethernet/mellanox/mlx4/mlx4.h | |||
@@ -1289,5 +1289,7 @@ void mlx4_init_quotas(struct mlx4_dev *dev); | |||
1289 | 1289 | ||
1290 | int mlx4_get_slave_num_gids(struct mlx4_dev *dev, int slave); | 1290 | int mlx4_get_slave_num_gids(struct mlx4_dev *dev, int slave); |
1291 | int mlx4_get_base_gid_ix(struct mlx4_dev *dev, int slave); | 1291 | int mlx4_get_base_gid_ix(struct mlx4_dev *dev, int slave); |
1292 | /* Returns the VF index of slave */ | ||
1293 | int mlx4_get_vf_indx(struct mlx4_dev *dev, int slave); | ||
1292 | 1294 | ||
1293 | #endif /* MLX4_H */ | 1295 | #endif /* MLX4_H */ |