aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core
diff options
context:
space:
mode:
authorTariq Toukan <tariqt@nvidia.com>2022-01-25 14:47:36 +0200
committerSaeed Mahameed <saeedm@nvidia.com>2022-05-17 23:41:45 -0700
commit9b45bde82c229fda94618896ff530dcba9d66fe0 (patch)
tree1a68d769f4700838e5fab5bff79265dc018d93ab /drivers/net/ethernet/mellanox/mlx5/core
parentnet/mlx5: Add last command failure syndrome to debugfs (diff)
downloadlinux-dev-9b45bde82c229fda94618896ff530dcba9d66fe0.tar.xz
linux-dev-9b45bde82c229fda94618896ff530dcba9d66fe0.zip
net/mlx5: Inline db alloc API function
Take the wrapper version which picks default node into a header file. This reduces the number of exported functions. Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Reviewed-by: Moshe Shemesh <moshe@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/alloc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/alloc.c b/drivers/net/ethernet/mellanox/mlx5/core/alloc.c
index e52b0bac09da..6aca004e88cd 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/alloc.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/alloc.c
@@ -213,12 +213,6 @@ out:
}
EXPORT_SYMBOL_GPL(mlx5_db_alloc_node);
-int mlx5_db_alloc(struct mlx5_core_dev *dev, struct mlx5_db *db)
-{
- return mlx5_db_alloc_node(dev, db, dev->priv.numa_node);
-}
-EXPORT_SYMBOL_GPL(mlx5_db_alloc);
-
void mlx5_db_free(struct mlx5_core_dev *dev, struct mlx5_db *db)
{
u32 db_per_page = PAGE_SIZE / cache_line_size();