mlx4_core: add WRITE_MTT support
Subsystems (3)
PATCH 4/25 mlx4_core: add WRITE_MTT support
Used by vfs to modify mtts, since they cannot access in-memory mtts directly.
Signed-off-by Liran Liss <[email protected]>
--- drivers/net/mlx4/cmd.c | 3 +- drivers/net/mlx4/mlx4.h | 5 ++++ drivers/net/mlx4/mr.c | 62 ++++++++++++++++++++++++++++++++++++++++++---- 3 files changed, 62 insertions(+), 8 deletions(-)
drivers/net/mlx4/cmd.c +1 -2
@@ -36,8 +36,6 @@#include <linux/pci.h> #include <linux/errno.h> -#include <linux/mlx4/cmd.h> -#include <asm/io.h> #include "mlx4.h"
@@ -441,6 +439,7 @@ static struct mlx4_cmd_info { {MLX4_CMD_QUERY_MPT, 0, 1, 0, NULL, NULL}, /* need verifier */ {MLX4_CMD_HW2SW_MPT, 0, 0, 0, NULL, NULL}, /* need verifier */ {MLX4_CMD_READ_MTT, 0, 1, 0, NULL, NULL}, /* need verifier */ + {MLX4_CMD_WRITE_MTT, 1, 0, 0, NULL, mlx4_WRITE_MTT_wrapper}, {MLX4_CMD_SYNC_TPT, 1, 0, 0, NULL, NULL}, /* need verifier */ {MLX4_CMD_HW2SW_EQ, 0, 0, 0, NULL, NULL}, /* need verifier */
drivers/net/mlx4/mlx4.h +5 -0
@@ -45,6 +45,7 @@#include <linux/mlx4/device.h> #include <linux/mlx4/driver.h> #include <linux/mlx4/doorbell.h> +#include <linux/mlx4/cmd.h> #define DRV_NAME "mlx4_core"#define PFX DRV_NAME ": "
@@ -421,6 +422,10 @@ void mlx4_cleanup_qp_table(struct mlx4_dev *dev);void mlx4_cleanup_srq_table (struct mlx4_dev *dev);void mlx4_cleanup_mcg_table (struct mlx4_dev *dev); +int mlx4_WRITE_MTT_wrapper (struct mlx4_dev *dev,int slave,struct mlx4_vhcr *vhcr, +struct mlx4_cmd_mailbox *inbox, +struct mlx4_cmd_mailbox *outbox); +void mlx4_start_catas_poll (struct mlx4_dev *dev);void mlx4_stop_catas_poll (struct mlx4_dev *dev);void mlx4_catas_init (void );
drivers/net/mlx4/mr.c +56 -6
86 lines not on this page · raw message
Signature · 1 line
1.6.1.3