git: 5e12b3bb43bc - main - mlx5en: allow software parser for created send queues

Konstantin Belousov kib at FreeBSD.org
Mon Jul 12 12:00:34 UTC 2021


The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=5e12b3bb43bcc4aacc859242d7a653e64d6b339a

commit 5e12b3bb43bcc4aacc859242d7a653e64d6b339a
Author:     Konstantin Belousov <konstantinb at nvidia.com>
AuthorDate: 2021-04-06 03:42:12 +0000
Commit:     Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2021-07-12 09:34:37 +0000

    mlx5en: allow software parser for created send queues
    
    Reviewed by:    hselasky
    Sponsored by:   Mellanox Technologies/NVidia Networking
    MFC after:      1 week
---
 sys/dev/mlx5/mlx5_en/mlx5_en_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
index 1adf83cf57f9..92a7fc97279f 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
@@ -1733,6 +1733,7 @@ mlx5e_enable_sq(struct mlx5e_sq *sq, struct mlx5e_sq_param *param,
 	MLX5_SET(sqc, sqc, state, MLX5_SQC_STATE_RST);
 	MLX5_SET(sqc, sqc, tis_lst_sz, 1);
 	MLX5_SET(sqc, sqc, flush_in_error_en, 1);
+	MLX5_SET(sqc, sqc, allow_swp, 1);
 
 	MLX5_SET(wq, wq, wq_type, MLX5_WQ_TYPE_CYCLIC);
 	MLX5_SET(wq, wq, uar_page, sq->priv->bfreg.index);


More information about the dev-commits-src-all mailing list