]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Turn XSK ICOSQ into a general asynchronous one
authorTariq Toukan <tariqt@mellanox.com>
Tue, 26 Nov 2019 14:23:23 +0000 (16:23 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 27 Jun 2020 21:00:16 +0000 (14:00 -0700)
commit329acd12aacc7c792a0f605b50e5240a6f739a63
treef0f537b9dc3cad5c54f514cf6519e6c62f1e60e4
parent10e1410d0b2111c317cd956a6e6513231221e734
net/mlx5e: Turn XSK ICOSQ into a general asynchronous one

There is an upcoming demand (in downstream patches) for
an ICOSQ to be populated out of the NAPI context, asynchronously.

There is already an existing one serving XSK-related use case.
In this patch, promote this ICOSQ to serve as general async ICOSQ,
to be used for XSK and non-XSK flows.

As part of this, the reg_umr bit of the SQ context is now set
(if capable), as the general async ICOSQ should support possible
posts of UMR WQEs.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/tx.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c