|
@@ -525,7 +525,8 @@ static int mlx5e_create_sq(struct mlx5e_channel *c,
|
|
sq->uar_map = sq->uar.map;
|
|
sq->uar_map = sq->uar.map;
|
|
sq->bf_buf_size = (1 << MLX5_CAP_GEN(mdev, log_bf_reg_size)) / 2;
|
|
sq->bf_buf_size = (1 << MLX5_CAP_GEN(mdev, log_bf_reg_size)) / 2;
|
|
|
|
|
|
- if (mlx5e_alloc_sq_db(sq, cpu_to_node(c->cpu)))
|
|
|
|
|
|
+ err = mlx5e_alloc_sq_db(sq, cpu_to_node(c->cpu));
|
|
|
|
+ if (err)
|
|
goto err_sq_wq_destroy;
|
|
goto err_sq_wq_destroy;
|
|
|
|
|
|
sq->txq = netdev_get_tx_queue(priv->netdev,
|
|
sq->txq = netdev_get_tx_queue(priv->netdev,
|