Contributors: 7
Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
Parav Pandit |
61 |
46.56% |
7 |
43.75% |
Eli Cohen |
54 |
41.22% |
3 |
18.75% |
Bodong Wang |
7 |
5.34% |
2 |
12.50% |
Jianbo Liu |
4 |
3.05% |
1 |
6.25% |
Saeed Mahameed |
2 |
1.53% |
1 |
6.25% |
Yishai Hadas |
2 |
1.53% |
1 |
6.25% |
Mark Zhang |
1 |
0.76% |
1 |
6.25% |
Total |
131 |
|
16 |
|
/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
/* Copyright (c) 2020 Mellanox Technologies Ltd */
#ifndef __MLX5_SF_PRIV_H__
#define __MLX5_SF_PRIV_H__
#include <linux/mlx5/driver.h>
int mlx5_cmd_alloc_sf(struct mlx5_core_dev *dev, u16 function_id);
int mlx5_cmd_dealloc_sf(struct mlx5_core_dev *dev, u16 function_id);
int mlx5_cmd_sf_enable_hca(struct mlx5_core_dev *dev, u16 func_id);
int mlx5_cmd_sf_disable_hca(struct mlx5_core_dev *dev, u16 func_id);
u16 mlx5_sf_sw_to_hw_id(struct mlx5_core_dev *dev, u32 controller, u16 sw_id);
int mlx5_sf_hw_table_sf_alloc(struct mlx5_core_dev *dev, u32 controller, u32 usr_sfnum);
void mlx5_sf_hw_table_sf_free(struct mlx5_core_dev *dev, u32 controller, u16 id);
void mlx5_sf_hw_table_sf_deferred_free(struct mlx5_core_dev *dev, u32 controller, u16 id);
bool mlx5_sf_hw_table_supported(const struct mlx5_core_dev *dev);
#endif