net/mlx5_core: Fix struct type in the DESTROY_TIR/TIS device commands
authorSaeed Mahameed <saeedm@mellanox.com>
Fri, 25 Sep 2015 07:49:10 +0000 (10:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Sep 2015 05:19:49 +0000 (22:19 -0700)
Used the output mailbox format for input mailbox.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/transobj.c

index b4c87c7..d7068f5 100644 (file)
@@ -177,7 +177,7 @@ int mlx5_core_modify_tir(struct mlx5_core_dev *dev, u32 tirn, u32 *in,
 
 void mlx5_core_destroy_tir(struct mlx5_core_dev *dev, u32 tirn)
 {
-       u32 in[MLX5_ST_SZ_DW(destroy_tir_out)];
+       u32 in[MLX5_ST_SZ_DW(destroy_tir_in)];
        u32 out[MLX5_ST_SZ_DW(destroy_tir_out)];
 
        memset(in, 0, sizeof(in));
@@ -206,7 +206,7 @@ int mlx5_core_create_tis(struct mlx5_core_dev *dev, u32 *in, int inlen,
 
 void mlx5_core_destroy_tis(struct mlx5_core_dev *dev, u32 tisn)
 {
-       u32 in[MLX5_ST_SZ_DW(destroy_tis_out)];
+       u32 in[MLX5_ST_SZ_DW(destroy_tis_in)];
        u32 out[MLX5_ST_SZ_DW(destroy_tis_out)];
 
        memset(in, 0, sizeof(in));