From: Haggai Eran <haggaie-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
To: Matan Barak <matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
Somnath Kotur
<somnath.kotur-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>,
roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 09/30] IB/core: Modify ib_verbs and cma in order to use roce_gid_cache
Date: Sun, 22 Feb 2015 09:41:21 +0200 [thread overview]
Message-ID: <54E98821.6070305@mellanox.com> (raw)
In-Reply-To: <54E601B6.5000705-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
On 19/02/2015 17:31, Matan Barak wrote:
> On 2/19/2015 5:03 PM, Haggai Eran wrote:
>> On 20/02/2015 00:02, Somnath Kotur wrote:
>>> @@ -502,9 +547,7 @@ EXPORT_SYMBOL(ib_create_qp);
>>> static const struct {
>>> int valid;
>>> enum ib_qp_attr_mask req_param[IB_QPT_MAX];
>>> - enum ib_qp_attr_mask req_param_add_eth[IB_QPT_MAX];
>>> enum ib_qp_attr_mask opt_param[IB_QPT_MAX];
>>> - enum ib_qp_attr_mask opt_param_add_eth[IB_QPT_MAX];
>>> } qp_state_table[IB_QPS_ERR + 1][IB_QPS_ERR + 1] = {
>>> [IB_QPS_RESET] = {
>>> [IB_QPS_RESET] = { .valid = 1 },
>>> @@ -585,12 +628,6 @@ static const struct {
>>> IB_QP_MAX_DEST_RD_ATOMIC |
>>> IB_QP_MIN_RNR_TIMER),
>>> },
>>> - .req_param_add_eth = {
>>> - [IB_QPT_RC] = (IB_QP_SMAC),
>>> - [IB_QPT_UC] = (IB_QP_SMAC),
>>> - [IB_QPT_XRC_INI] = (IB_QP_SMAC),
>>> - [IB_QPT_XRC_TGT] = (IB_QP_SMAC)
>>> - },
>>> .opt_param = {
>>> [IB_QPT_UD] = (IB_QP_PKEY_INDEX |
>>> IB_QP_QKEY),
>>> @@ -611,21 +648,7 @@ static const struct {
>>> [IB_QPT_GSI] = (IB_QP_PKEY_INDEX |
>>> IB_QP_QKEY),
>>> },
>>> - .opt_param_add_eth = {
>>> - [IB_QPT_RC] = (IB_QP_ALT_SMAC |
>>> - IB_QP_VID |
>>> - IB_QP_ALT_VID),
>>> - [IB_QPT_UC] = (IB_QP_ALT_SMAC |
>>> - IB_QP_VID |
>>> - IB_QP_ALT_VID),
>>> - [IB_QPT_XRC_INI] = (IB_QP_ALT_SMAC |
>>> - IB_QP_VID |
>>> - IB_QP_ALT_VID),
>>> - [IB_QPT_XRC_TGT] = (IB_QP_ALT_SMAC |
>>> - IB_QP_VID |
>>> - IB_QP_ALT_VID)
>>> - }
>>> - }
>>> + },
>>> },
>>> [IB_QPS_RTR] = {
>>> [IB_QPS_RESET] = { .valid = 1 },
>>> @@ -847,13 +870,6 @@ int ib_modify_qp_is_ok(enum ib_qp_state
>>> cur_state, enum ib_qp_state next_state,
>>> req_param = qp_state_table[cur_state][next_state].req_param[type];
>>> opt_param = qp_state_table[cur_state][next_state].opt_param[type];
>>>
>>> - if (ll == IB_LINK_LAYER_ETHERNET) {
>>> - req_param |= qp_state_table[cur_state][next_state].
>>> - req_param_add_eth[type];
>>> - opt_param |= qp_state_table[cur_state][next_state].
>>> - opt_param_add_eth[type];
>>> - }
>>> -
>>> if ((mask & req_param) != req_param)
>>> return 0;
>>
>> I understand this patch will remove any kernel reference to these
>> modify_qp attributes. However, what about user-space? Was it previously
>> allowed to pass in these parameters?
>
> There was no libibverbs that declared those flags. It was filled by
> ib_resolve_eth_l2_attrs. If someone wrote a custom libibverbs that
> passed those flags, they would have just been ignored. We could replace
> them as reserved flags. What do you think?
I guess if there's no existing user space it's okay. Perhaps it would be
best to add some explicit input-checking to the ib_uverbs_modify_qp()
verb to prevent such dilemmas in the future.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-02-22 7:41 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1424383365-19337-1-git-send-email-somnath.kotur@emulex.com>
[not found] ` <1424383365-19337-1-git-send-email-somnath.kotur-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org>
2015-02-19 22:02 ` [PATCH 01/30] IB/core: Add RoCE GID cache Somnath Kotur
2015-02-19 22:02 ` [PATCH 02/30] IB/core: Add kref to IB devices Somnath Kotur
[not found] ` <1b381c86-9f29-49a6-b7c5-9571d4490f5c-3RiH6ntJJkOPfaB/Gd0HpljyZtpTMMwT@public.gmane.org>
2015-02-19 10:57 ` Haggai Eran
[not found] ` <54E5C1AF.4010400-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-02-19 12:34 ` Matan Barak
2015-02-19 22:02 ` [PATCH 03/30] IB/core: Add RoCE GID population Somnath Kotur
2015-02-19 22:02 ` [PATCH 04/30] IB/core: Add default GID for RoCE GID Cache Somnath Kotur
2015-02-19 22:02 ` [PATCH 05/30] IB/core: Add RoCE cache bonding support Somnath Kotur
2015-02-19 22:02 ` [PATCH 06/30] IB/core: GID attribute should be returned from verbs API and cache API Somnath Kotur
2015-02-19 22:02 ` [PATCH 07/30] IB/core: Report gid_type and gid_ndev through sysfs Somnath Kotur
2015-02-19 22:02 ` [PATCH 08/30] IB/core: Support find sgid index using a filter function Somnath Kotur
[not found] ` <3f9746be-8d95-429c-945e-59b0b90a17e8-3RiH6ntJJkOPfaB/Gd0HpljyZtpTMMwT@public.gmane.org>
2015-02-19 12:41 ` Haggai Eran
[not found] ` <54E5DA0D.4020002-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-02-19 12:48 ` Matan Barak
2015-02-19 22:02 ` [PATCH 09/30] IB/core: Modify ib_verbs and cma in order to use roce_gid_cache Somnath Kotur
[not found] ` <f91c8ed3-f6a4-4b63-85f9-870d9687a14f-3RiH6ntJJkOPfaB/Gd0HpljyZtpTMMwT@public.gmane.org>
2015-02-19 12:52 ` Haggai Eran
[not found] ` <54E5DC82.1090805-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-02-19 13:22 ` Matan Barak
[not found] ` <54E5E381.5000105-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-02-19 14:00 ` Or Gerlitz
2015-02-19 14:37 ` Haggai Eran
[not found] ` <54E5F51B.8020806-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-02-19 15:24 ` Matan Barak
[not found] ` <54E6001F.2080304-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-02-22 7:37 ` Haggai Eran
2015-02-19 15:03 ` Haggai Eran
[not found] ` <54E5FB57.1090803-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-02-19 15:31 ` Matan Barak
[not found] ` <54E601B6.5000705-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-02-22 7:41 ` Haggai Eran [this message]
2015-02-19 15:18 ` Haggai Eran
[not found] ` <54E5FEDD.2080001-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-02-19 15:37 ` Matan Barak
2015-02-23 5:25 ` Devesh Sharma
[not found] ` <de2ee483-0c24-4951-af76-87ab3499636a-3RiH6ntJJkP8BX6JNMqfyFjyZtpTMMwT@public.gmane.org>
2015-02-23 10:17 ` Matan Barak
[not found] ` <54EAFE26.1070202-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-02-23 10:32 ` Somnath Kotur
[not found] ` <df21f330-cbe1-4fc9-8611-5d781f8656a2-3RiH6ntJJkOPfaB/Gd0HpljyZtpTMMwT@public.gmane.org>
2015-02-23 11:03 ` Matan Barak
2015-02-23 16:59 ` Devesh Sharma
[not found] ` <61ca6b6c-4c5b-4f75-9fd1-c24d64a6223a-3RiH6ntJJkOPfaB/Gd0HpljyZtpTMMwT@public.gmane.org>
2015-02-24 8:05 ` Matan Barak
2015-02-19 22:02 ` [PATCH 10/30] IB/core: Add gid_type to path and rdma_id_private Somnath Kotur
[not found] ` <0ebef7be-0586-47bf-bcc4-f3ff21ca4f3b-3RiH6ntJJkOPfaB/Gd0HpljyZtpTMMwT@public.gmane.org>
2015-02-19 15:51 ` Haggai Eran
[not found] ` <54E60695.3050907-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-02-19 15:53 ` Matan Barak
2015-02-19 22:02 ` [PATCH 11/30] IB/core: Add rdma_network_type to wc Somnath Kotur
2015-02-19 22:02 ` [PATCH 12/30] IB/cma: Add configfs for rdma_cm Somnath Kotur
2015-02-19 22:02 ` [PATCH 13/30] IB/Core: Changes to the IB Core infrastructure for RoCEv2 support Somnath Kotur
2015-02-19 22:02 ` [PATCH] RDMA/ocrdma: Changes in driver to incorporate the moving of GID Table mgmt to IB/Core Somnath Kotur
[not found] ` <192c6b78-c0e3-4ca5-aa83-4ce6e9eb46be-3RiH6ntJJkOPfaB/Gd0HpljyZtpTMMwT@public.gmane.org>
2015-02-19 9:01 ` Shachar Raindel
[not found] ` <AM3PR05MB093504D988CF6E2C0CF97A40DC2D0-LOZWmgKjnYgQouBfZGh8ttqRiQSDpxhJvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2015-02-19 9:05 ` Somnath Kotur
2015-02-19 22:02 ` [PATCH 15/30] RDMA/ocrdma: changes to support RoCE-v2 in UD path Somnath Kotur
[not found] ` <7d2d787d-b849-42af-a93f-32b13ec319ba-3RiH6ntJJkOPfaB/Gd0HpljyZtpTMMwT@public.gmane.org>
2015-02-21 13:13 ` Devesh Sharma
2015-02-19 22:02 ` [PATCH 16/30] RDMA/ocrdma: changes to support RoCE-v2 in RC path Somnath Kotur
2015-02-19 22:02 ` [PATCH 17/30] RDMA/ocrdma: changes to support user AH creation Somnath Kotur
2015-02-19 22:02 ` [PATCH 18/30] IB/mlx4: Remove gid table management for RoCE Somnath Kotur
[not found] ` <250dc054-e0c4-40b4-8855-7315489c0f58-3RiH6ntJJkOPfaB/Gd0HpljyZtpTMMwT@public.gmane.org>
2015-02-22 11:41 ` Or Gerlitz
2015-02-19 22:02 ` [PATCH 19/30] IB/mlx4: Replace spin_lock with rw_semaphore Somnath Kotur
2015-02-19 22:02 ` [PATCH 20/30] IB/mlx4: Lock with RCU instead of RTNL Somnath Kotur
2015-02-19 22:02 ` [PATCH 21/30] net/mlx4: Postpone the registration of net_device Somnath Kotur
2015-02-19 22:02 ` [PATCH 22/30] IB/mlx4: Advertise RoCE support in port capabilities Somnath Kotur
2015-02-19 22:02 ` [PATCH 23/30] IB/mlx4: Implement ib_device callback - get_netdev Somnath Kotur
2015-02-19 22:02 ` [PATCH 24/30] IB/mlx4: Implement ib_device callback - modify_gid Somnath Kotur
2015-02-19 22:02 ` [PATCH 25/30] IB/mlx4: Configure device to work in RoCEv2 Somnath Kotur
2015-02-19 22:02 ` [PATCH 26/30] IB/mlx4: Translate cache gid index to real index Somnath Kotur
2015-02-19 22:02 ` [PATCH 27/30] IB/core: Initialize UD header structure with IP and UDP headers Somnath Kotur
2015-02-19 22:02 ` [PATCH 28/30] IB/mlx4: Enable send of RoCE QP1 packets with IP/UDP headers Somnath Kotur
2015-02-19 22:02 ` [PATCH 29/30] IB/mlx4: Create and use another QP1 for RoCEv2 Somnath Kotur
[not found] ` <7d3158cd-5b84-4f60-a705-71fca630e04a-3RiH6ntJJkOPfaB/Gd0HpljyZtpTMMwT@public.gmane.org>
2015-02-19 16:11 ` Shachar Raindel
2015-02-19 22:02 ` [PATCH 30/30] IB/cma: Join and leave multicast groups with IGMP Somnath Kotur
[not found] ` <91da5137-4651-4991-852e-d57faeabe6a5-3RiH6ntJJkOPfaB/Gd0HpljyZtpTMMwT@public.gmane.org>
2015-02-19 13:56 ` Shachar Raindel
2015-02-19 10:20 [PATCH 09/30] IB/core: Modify ib_verbs and cma in order to use roce_gid_cache Somnath Kotur
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=54E98821.6070305@mellanox.com \
--to=haggaie-vpraknaxozvwk0htik3j/w@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
--cc=roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=somnath.kotur-laKkSmNT4hbQT0dZR+AlfA@public.gmane.org \
/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