From: Saeed Mahameed <saeed@kernel.org>
To: "David S. Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Eric Dumazet <edumazet@google.com>
Cc: Saeed Mahameed <saeedm@nvidia.com>,
netdev@vger.kernel.org, Tariq Toukan <tariqt@nvidia.com>,
Gal Pressman <gal@nvidia.com>,
Leon Romanovsky <leonro@nvidia.com>,
Yevgeny Kliteynik <kliteyn@nvidia.com>,
Hamdan Agbariya <hamdani@nvidia.com>,
Mark Bloch <mbloch@nvidia.com>
Subject: [net-next V3 02/15] net/mlx5: Added missing definitions in preparation for HW Steering
Date: Fri, 6 Sep 2024 14:53:57 -0700 [thread overview]
Message-ID: <20240906215411.18770-3-saeed@kernel.org> (raw)
In-Reply-To: <20240906215411.18770-1-saeed@kernel.org>
From: Yevgeny Kliteynik <kliteyn@nvidia.com>
As part of preparation for HWS, added missing definitions
in qp.h and fs_core.h:
- FS_FT_FDB_RX/TX table types that are used by HWS in addition
to an existing FS_FT_FDB
- MLX5_WQE_CTRL_INITIATOR_SMALL_FENCE that is used by HWS to
require fence in WQE
Reviewed-by: Hamdan Agbariya <hamdani@nvidia.com>
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
---
drivers/net/ethernet/mellanox/mlx5/core/fs_core.h | 8 ++++++--
include/linux/mlx5/qp.h | 1 +
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
index 78eb6b7097e1..6201647d6156 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
@@ -110,7 +110,9 @@ enum fs_flow_table_type {
FS_FT_RDMA_RX = 0X7,
FS_FT_RDMA_TX = 0X8,
FS_FT_PORT_SEL = 0X9,
- FS_FT_MAX_TYPE = FS_FT_PORT_SEL,
+ FS_FT_FDB_RX = 0xa,
+ FS_FT_FDB_TX = 0xb,
+ FS_FT_MAX_TYPE = FS_FT_FDB_TX,
};
enum fs_flow_table_op_mod {
@@ -368,7 +370,9 @@ struct mlx5_flow_root_namespace *find_root(struct fs_node *node);
(type == FS_FT_RDMA_RX) ? MLX5_CAP_FLOWTABLE_RDMA_RX(mdev, cap) : \
(type == FS_FT_RDMA_TX) ? MLX5_CAP_FLOWTABLE_RDMA_TX(mdev, cap) : \
(type == FS_FT_PORT_SEL) ? MLX5_CAP_FLOWTABLE_PORT_SELECTION(mdev, cap) : \
- (BUILD_BUG_ON_ZERO(FS_FT_PORT_SEL != FS_FT_MAX_TYPE))\
+ (type == FS_FT_FDB_RX) ? MLX5_CAP_ESW_FLOWTABLE_FDB(mdev, cap) : \
+ (type == FS_FT_FDB_TX) ? MLX5_CAP_ESW_FLOWTABLE_FDB(mdev, cap) : \
+ (BUILD_BUG_ON_ZERO(FS_FT_FDB_TX != FS_FT_MAX_TYPE))\
)
#endif
diff --git a/include/linux/mlx5/qp.h b/include/linux/mlx5/qp.h
index ad1ce650146c..fc7eeff99a8a 100644
--- a/include/linux/mlx5/qp.h
+++ b/include/linux/mlx5/qp.h
@@ -149,6 +149,7 @@ enum {
MLX5_WQE_CTRL_CQ_UPDATE = 2 << 2,
MLX5_WQE_CTRL_CQ_UPDATE_AND_EQE = 3 << 2,
MLX5_WQE_CTRL_SOLICITED = 1 << 1,
+ MLX5_WQE_CTRL_INITIATOR_SMALL_FENCE = 1 << 5,
};
enum {
--
2.46.0
next prev parent reply other threads:[~2024-09-06 21:54 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-06 21:53 [pull request][net-next V3 00/15] mlx5 updates 2024-09-02 Saeed Mahameed
2024-09-06 21:53 ` [net-next V3 01/15] net/mlx5: Added missing mlx5_ifc definition for HW Steering Saeed Mahameed
2024-09-06 21:53 ` Saeed Mahameed [this message]
2024-09-06 21:53 ` [net-next V3 03/15] net/mlx5: HWS, added actions handling Saeed Mahameed
2024-09-06 21:53 ` [net-next V3 04/15] net/mlx5: HWS, added tables handling Saeed Mahameed
2024-09-06 21:54 ` [net-next V3 05/15] net/mlx5: HWS, added rules handling Saeed Mahameed
2024-09-06 21:54 ` [net-next V3 06/15] net/mlx5: HWS, added definers handling Saeed Mahameed
2024-09-06 21:54 ` [net-next V3 07/15] net/mlx5: HWS, added matchers functionality Saeed Mahameed
2024-09-06 21:54 ` [net-next V3 08/15] net/mlx5: HWS, added FW commands handling Saeed Mahameed
2024-09-06 21:54 ` [net-next V3 09/15] net/mlx5: HWS, added modify header pattern and args handling Saeed Mahameed
2024-09-06 21:54 ` [net-next V3 10/15] net/mlx5: HWS, added vport handling Saeed Mahameed
2024-09-06 21:54 ` [net-next V3 11/15] net/mlx5: HWS, added memory management handling Saeed Mahameed
2024-09-07 14:28 ` Simon Horman
2024-09-07 20:32 ` Yevgeny Kliteynik
2024-09-06 21:54 ` [net-next V3 12/15] net/mlx5: HWS, added backward-compatible API handling Saeed Mahameed
2024-09-06 21:54 ` [net-next V3 13/15] net/mlx5: HWS, added debug dump and internal headers Saeed Mahameed
2024-09-06 21:54 ` [net-next V3 14/15] net/mlx5: HWS, added send engine and context handling Saeed Mahameed
2024-09-06 21:54 ` [net-next V3 15/15] net/mlx5: HWS, added API and enabled HWS support Saeed Mahameed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240906215411.18770-3-saeed@kernel.org \
--to=saeed@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gal@nvidia.com \
--cc=hamdani@nvidia.com \
--cc=kliteyn@nvidia.com \
--cc=kuba@kernel.org \
--cc=leonro@nvidia.com \
--cc=mbloch@nvidia.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=saeedm@nvidia.com \
--cc=tariqt@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).