Skip to content

Commit 16bd020

Browse files
yishaihdledford
authored andcommitted
net/mlx5: Export required core functions to support RSS
In order to support RSS QPs, we need to create Ethernet based objects. This is done by create_rq, destroy_rq, create_rqt and destroy_rqt mlx5_core functions. We export these functions. Signed-off-by: Yishai Hadas <[email protected]> Signed-off-by: Matan Barak <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent 245ee5f commit 16bd020

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/transobj.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ int mlx5_core_create_rq(struct mlx5_core_dev *dev, u32 *in, int inlen, u32 *rqn)
8585

8686
return err;
8787
}
88+
EXPORT_SYMBOL(mlx5_core_create_rq);
8889

8990
int mlx5_core_modify_rq(struct mlx5_core_dev *dev, u32 rqn, u32 *in, int inlen)
9091
{
@@ -110,6 +111,7 @@ void mlx5_core_destroy_rq(struct mlx5_core_dev *dev, u32 rqn)
110111

111112
mlx5_cmd_exec_check_status(dev, in, sizeof(in), out, sizeof(out));
112113
}
114+
EXPORT_SYMBOL(mlx5_core_destroy_rq);
113115

114116
int mlx5_core_query_rq(struct mlx5_core_dev *dev, u32 rqn, u32 *out)
115117
{
@@ -430,6 +432,7 @@ int mlx5_core_create_rqt(struct mlx5_core_dev *dev, u32 *in, int inlen,
430432

431433
return err;
432434
}
435+
EXPORT_SYMBOL(mlx5_core_create_rqt);
433436

434437
int mlx5_core_modify_rqt(struct mlx5_core_dev *dev, u32 rqtn, u32 *in,
435438
int inlen)
@@ -455,3 +458,4 @@ void mlx5_core_destroy_rqt(struct mlx5_core_dev *dev, u32 rqtn)
455458

456459
mlx5_cmd_exec_check_status(dev, in, sizeof(in), out, sizeof(out));
457460
}
461+
EXPORT_SYMBOL(mlx5_core_destroy_rqt);

0 commit comments

Comments
 (0)