]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mlx5: fix typo in "mlx5_cqwq_get_cqe_enahnced_comp"
authorCaleb Sander Mateos <csander@purestorage.com>
Wed, 23 Oct 2024 16:48:38 +0000 (10:48 -0600)
committerJakub Kicinski <kuba@kernel.org>
Tue, 29 Oct 2024 23:19:17 +0000 (16:19 -0700)
"enahnced" looks to be a misspelling of "enhanced".
Rename "mlx5_cqwq_get_cqe_enahnced_comp" to
"mlx5_cqwq_get_cqe_enhanced_comp".

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Link: https://patch.msgid.link/20241023164840.140535-1-csander@purestorage.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
drivers/net/ethernet/mellanox/mlx5/core/wq.h

index 235d0030062617adbc85cda7155cb1007881a2ed..f37afa52e2b83e787eb8e210721b48f6f41d55a7 100644 (file)
@@ -1126,7 +1126,7 @@ static void mlx5e_flush_rq_cq(struct mlx5e_rq *rq)
        struct mlx5_cqe64 *cqe;
 
        if (test_bit(MLX5E_RQ_STATE_MINI_CQE_ENHANCED, &rq->state)) {
-               while ((cqe = mlx5_cqwq_get_cqe_enahnced_comp(cqwq)))
+               while ((cqe = mlx5_cqwq_get_cqe_enhanced_comp(cqwq)))
                        mlx5_cqwq_pop(cqwq);
        } else {
                while ((cqe = mlx5_cqwq_get_cqe(cqwq)))
index 8e24ba96c779ae7fbdb8fa8b1a16f3148884a61b..d81083f4f316fbc9e3fdf42b8c622f7df8493d4d 100644 (file)
@@ -2436,7 +2436,7 @@ static int mlx5e_rx_cq_process_enhanced_cqe_comp(struct mlx5e_rq *rq,
        struct mlx5e_cq_decomp *cqd = &rq->cqd;
        int work_done = 0;
 
-       cqe = mlx5_cqwq_get_cqe_enahnced_comp(cqwq);
+       cqe = mlx5_cqwq_get_cqe_enhanced_comp(cqwq);
        if (!cqe)
                return work_done;
 
@@ -2466,7 +2466,7 @@ static int mlx5e_rx_cq_process_enhanced_cqe_comp(struct mlx5e_rq *rq,
                                rq, cqe);
                work_done++;
        } while (work_done < budget_rem &&
-                (cqe = mlx5_cqwq_get_cqe_enahnced_comp(cqwq)));
+                (cqe = mlx5_cqwq_get_cqe_enhanced_comp(cqwq)));
 
        /* last cqe might be title on next poll bulk */
        if (title_cqe) {
index e4ef1d24a3ada0861d704a1c8be80b39dc0500ee..6debb8fd33ffddfad4d6b0b4526c0df86c7d3194 100644 (file)
@@ -244,7 +244,7 @@ static inline struct mlx5_cqe64 *mlx5_cqwq_get_cqe(struct mlx5_cqwq *wq)
 }
 
 static inline
-struct mlx5_cqe64 *mlx5_cqwq_get_cqe_enahnced_comp(struct mlx5_cqwq *wq)
+struct mlx5_cqe64 *mlx5_cqwq_get_cqe_enhanced_comp(struct mlx5_cqwq *wq)
 {
        u8 sw_validity_iteration_count = mlx5_cqwq_get_wrap_cnt(wq) & 0xff;
        u32 ci = mlx5_cqwq_get_ci(wq);