Skip to content

Commit

Permalink
net/mlx5: remove redundant item from union
Browse files Browse the repository at this point in the history
[ upstream commit 970eb58 ]

A variable of type struct ibv_cq_ex is declared in 2 unions, but
isn't used.
This patch removes the 2 redundant declarations.

Fixes: 6218063 ("net/mlx5: refactor Rx data path")
Fixes: 1d88ba1 ("net/mlx5: refactor Tx data path")

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
  • Loading branch information
dekelp authored and kevintraynor committed Aug 28, 2019
1 parent f03e770 commit 4018292
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion drivers/net/mlx5/mlx5_rxq.c
Expand Up @@ -773,7 +773,6 @@ mlx5_rxq_ibv_new(struct rte_eth_dev *dev, uint16_t idx)
struct mlx5dv_wq_init_attr mlx5;
#endif
} wq;
struct ibv_cq_ex cq_attr;
} attr;
unsigned int cqe_n;
unsigned int wqe_n = 1 << rxq_data->elts_n;
Expand Down
1 change: 0 additions & 1 deletion drivers/net/mlx5/mlx5_txq.c
Expand Up @@ -365,7 +365,6 @@ mlx5_txq_ibv_new(struct rte_eth_dev *dev, uint16_t idx)
struct ibv_qp_init_attr_ex init;
struct ibv_cq_init_attr_ex cq;
struct ibv_qp_attr mod;
struct ibv_cq_ex cq_attr;
} attr;
unsigned int cqe_n;
struct mlx5dv_qp qp = { .comp_mask = MLX5DV_QP_MASK_UAR_MMAP_OFFSET };
Expand Down

0 comments on commit 4018292

Please sign in to comment.