From: Erez Shitrit <erezsh@nvidia.com>
To: <dev@dpdk.org>
Cc: <valex@nvidia.com>, <rasland@nvidia.com>,
Yevgeny Kliteynik <kliteyn@nvidia.com>,
Matan Azrad <matan@nvidia.com>,
Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Subject: [PATCH v2 03/10] net/mlx5/hws: add PRM definitions for cross-vhca capabilities
Date: Thu, 5 Jan 2023 15:02:56 +0200 [thread overview]
Message-ID: <20230105130304.537205-4-erezsh@nvidia.com> (raw)
In-Reply-To: <20230105130304.537205-1-erezsh@nvidia.com>
From: Yevgeny Kliteynik <kliteyn@nvidia.com>
Each new cap was defined.
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Alex Vesker <valex@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
---
drivers/common/mlx5/mlx5_prm.h | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h
index 3d9d69d9cf..dfa25c2b49 100644
--- a/drivers/common/mlx5/mlx5_prm.h
+++ b/drivers/common/mlx5/mlx5_prm.h
@@ -1930,7 +1930,9 @@ struct mlx5_ifc_flow_table_prop_layout_bits {
u8 metadata_reg_a_width[0x8];
u8 reserved_at_60[0xa];
u8 reparse[0x1];
- u8 reserved_at_6b[0xd];
+ u8 reserved_at_6b[0x1];
+ u8 cross_vhca_object[0x1];
+ u8 reserved_at_6d[0xb];
u8 log_max_ft_num[0x8];
u8 reserved_at_80[0x10];
u8 log_max_flow_counter[0x8];
@@ -2084,6 +2086,19 @@ struct mlx5_ifc_flow_table_esw_cap_bits {
u8 reserved_at_C00[0x7400];
};
+enum mlx5_ifc_cross_vhca_object_to_object_supported_types {
+ MLX5_CROSS_VHCA_OBJ_TO_OBJ_TYPE_STC_TO_TIR = 1 << 10,
+ MLX5_CROSS_VHCA_OBJ_TO_OBJ_TYPE_STC_TO_FT = 1 << 11,
+ MLX5_CROSS_VHCA_OBJ_TO_OBJ_TYPE_FT_TO_FT = 1 << 12,
+ MLX5_CROSS_VHCA_OBJ_TO_OBJ_TYPE_FT_TO_RTC = 1 << 13,
+};
+
+enum mlx5_ifc_cross_vhca_allowed_objects_types {
+ MLX5_CROSS_VHCA_ALLOWED_OBJS_TIR = 1 << 0x8,
+ MLX5_CROSS_VHCA_ALLOWED_OBJS_FT = 1 << 0x9,
+ MLX5_CROSS_VHCA_ALLOWED_OBJS_RTC = 1 << 0xa,
+};
+
/*
* HCA Capabilities 2
*/
@@ -3108,6 +3123,8 @@ enum {
MLX5_GENERAL_OBJ_TYPE_RTC = 0x0041,
MLX5_GENERAL_OBJ_TYPE_STE = 0x0042,
MLX5_GENERAL_OBJ_TYPE_MODIFY_HEADER_PATTERN = 0x0043,
+ MLX5_GENERAL_OBJ_TYPE_FT_ALIAS = 0xff15,
+ MLX5_GENERAL_OBJ_TYPE_TIR_ALIAS = 0xff16,
};
struct mlx5_ifc_general_obj_in_cmd_hdr_bits {
--
2.18.2
next prev parent reply other threads:[~2023-01-05 13:03 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-19 8:24 [PATCH V1 00/11] Support resource sharing among ibv_devices Erez Shitrit
2022-12-19 8:24 ` [PATCH V1 01/11] mailmap: add new contributors to the list Erez Shitrit
2022-12-19 8:24 ` [PATCH V1 02/11] net/mlx5/hws: add capabilities fields for vhca access Erez Shitrit
2022-12-27 15:47 ` Slava Ovsiienko
2023-01-05 13:02 ` [PATCH v2 00/10] Support resource sharing among ibv_devices Erez Shitrit
2023-01-05 13:02 ` [PATCH v2 01/10] net/mlx5/hws: add capabilities fields for vhca access Erez Shitrit
2023-01-05 13:02 ` [PATCH v2 02/10] net/mlx5/hws: remove wrong PRM capability macros Erez Shitrit
2023-01-05 13:02 ` Erez Shitrit [this message]
2023-01-05 13:02 ` [PATCH v2 04/10] net/mlx5/hws: read cross-vhca capabilities Erez Shitrit
2023-01-05 13:02 ` [PATCH v2 05/10] net/mlx5/hws: added allow-other-vhca-access command Erez Shitrit
2023-01-05 13:02 ` [PATCH v2 06/10] net/mlx5/hws: added command to create alias objects Erez Shitrit
2023-01-05 13:03 ` [PATCH v2 07/10] net/mlx5/hws: add vhca identifier ID to the caps Erez Shitrit
2023-01-05 13:03 ` [PATCH v2 08/10] net/mlx5/hws: support shared ibv-context with local one Erez Shitrit
2023-01-05 13:03 ` [PATCH v2 09/10] net/mlx5/hws: support actions while shared resources is used Erez Shitrit
2023-01-05 13:03 ` [PATCH v2 10/10] net/mlx5/hws: add debug details for cross gvmi Erez Shitrit
2023-01-10 9:01 ` [PATCH v2 00/10] Support resource sharing among ibv_devices Raslan Darawsheh
2022-12-19 8:24 ` [PATCH V1 03/11] net/mlx5/hws: remove wrong PRM capability macros Erez Shitrit
2022-12-27 15:47 ` Slava Ovsiienko
2022-12-19 8:24 ` [PATCH V1 04/11] net/mlx5/hws: add PRM definitions for cross-vhca capabilities Erez Shitrit
2022-12-27 15:47 ` Slava Ovsiienko
2022-12-19 8:24 ` [PATCH V1 05/11] net/mlx5/hws: read " Erez Shitrit
2022-12-27 15:47 ` Slava Ovsiienko
2022-12-19 8:24 ` [PATCH V1 06/11] net/mlx5/hws: added allow-other-vhca-access command Erez Shitrit
2022-12-27 15:48 ` Slava Ovsiienko
2022-12-19 8:24 ` [PATCH V1 07/11] net/mlx5/hws: added command to create alias objects Erez Shitrit
2022-12-27 15:48 ` Slava Ovsiienko
2022-12-19 8:24 ` [PATCH V1 08/11] net/mlx5/hws: add vhca identifier ID to the caps Erez Shitrit
2022-12-27 15:48 ` Slava Ovsiienko
2022-12-19 8:24 ` [PATCH V1 09/11] net/mlx5/hws: support shared ibv-context with local one Erez Shitrit
2022-12-27 15:49 ` Slava Ovsiienko
2022-12-19 8:24 ` [PATCH V1 10/11] net/mlx5/hws: support actions while shared resources is used Erez Shitrit
2022-12-27 15:49 ` Slava Ovsiienko
2022-12-19 8:24 ` [PATCH V1 11/11] net/mlx5/hws: add debug details for cross gvmi Erez Shitrit
2022-12-27 15:48 ` Slava Ovsiienko
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=20230105130304.537205-4-erezsh@nvidia.com \
--to=erezsh@nvidia.com \
--cc=dev@dpdk.org \
--cc=kliteyn@nvidia.com \
--cc=matan@nvidia.com \
--cc=rasland@nvidia.com \
--cc=valex@nvidia.com \
--cc=viacheslavo@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).