From: Zhu Yanjun <yanjun.zhu@linux.dev>
To: Leon Romanovsky <leon@kernel.org>
Cc: Haakon Bugge <haakon.bugge@oracle.com>,
Christoph Hellwig <hch@infradead.org>,
Jason Gunthorpe <jgg@ziepe.ca>,
Allison Henderson <allison.henderson@oracle.com>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
OFED mailing list <linux-rdma@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"rds-devel@oss.oracle.com" <rds-devel@oss.oracle.com>
Subject: Re: [MAINLINE 0/2] Enable DIM for legacy ULPs and use it in RDS
Date: Thu, 26 Sep 2024 23:25:33 +0800 [thread overview]
Message-ID: <8d19d735-c2a8-456a-ac97-7f8d86cd7ed1@linux.dev> (raw)
In-Reply-To: <20240925092645.GD967758@unreal>
在 2024/9/25 17:26, Leon Romanovsky 写道:
> On Wed, Sep 25, 2024 at 10:04:21AM +0800, Zhu Yanjun wrote:
>> 在 2024/9/24 23:16, Haakon Bugge 写道:
>>>
>>>
>>>> On 24 Sep 2024, at 15:59, Zhu Yanjun <yanjun.zhu@linux.dev> wrote:
>>>>
>>>> 在 2024/9/24 14:54, Christoph Hellwig 写道:
>>>>> On Tue, Sep 24, 2024 at 09:58:24AM +0800, Zhu Yanjun wrote:
>>>>>> The users that I mentioned is not in the kernel tree.
>>>>> And why do you think that would matter the slightest?
>>>>
>>>> I noticed that the same cq functions are used. And I also made tests with this patch series. Without this patch series, dim mechanism will not be invoked.
>>>
>>> Christoph alluded to say: Do not modify the old cq_create_cq() code in order to support DIM, it is better to change the ULP to use ib_alloc_cq(), and get DIM enabled that way.
>>
>> Hi, Haakon
>>
>> To be honest, I like your original commit that enable DIM for legacy ULPs
>> because this can fix this problem once for all and improve the old
>> ib_create_cq function.
>>
>> The idea from Christoph will cause a lot of changes in ULPs. I am not very
>> sure if these changes cause risks or not.
>>
>> Thus, I prefer to your original commit. But I will follow the advice from
>> Leon and Jason.
>
> Christoph was very clear and he summarized our position very well. We
> said similar thing to SMC folks in 2022 [1] and RDS is no different here.
Thanks, Leon. I will read this link carefully.
>
> So no, "old ib_create_cq" shouldn't be used by ULPs.
Got it. I have replaced ib_create_cq with ib cq pool APIs. Perhaps
drivers/infiniband/ulp/srpt/ib_srpt.c is a good example to use ib cq
pool APIs.
Best Regards,
Zhu Yanjun
>
> Thanks
>
> [1] https://lore.kernel.org/netdev/YePesYRnrKCh1vFy@unreal/
>
>>
>> Zhu Yanjun
>>
>>>
>>>
>>> Thxs, Håkon
>>>
>>
>>
next prev parent reply other threads:[~2024-09-26 15:26 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-18 8:35 [MAINLINE 0/2] Enable DIM for legacy ULPs and use it in RDS Håkon Bugge
2024-09-18 8:35 ` [MAINLINE 1/2] RDMA/core: Enable legacy ULPs to use RDMA DIM Håkon Bugge
2024-09-18 8:35 ` [MAINLINE 2/2] rds: ib: Add Dynamic Interrupt Moderation to CQs Håkon Bugge
2024-09-20 7:47 ` Zhu Yanjun
2024-09-20 9:42 ` Haakon Bugge
2024-09-20 12:51 ` Zhu Yanjun
2024-09-21 13:43 ` Zhu Yanjun
2024-09-19 14:17 ` [MAINLINE 0/2] Enable DIM for legacy ULPs and use it in RDS Christoph Hellwig
2024-09-20 9:46 ` Haakon Bugge
2024-09-20 13:51 ` Christoph Hellwig
2024-09-21 2:28 ` Zhu Yanjun
2024-09-22 14:11 ` Leon Romanovsky
2024-09-23 12:03 ` Christoph Hellwig
2024-09-24 1:58 ` Zhu Yanjun
2024-09-24 6:54 ` Christoph Hellwig
2024-09-24 13:59 ` Zhu Yanjun
2024-09-24 15:16 ` Haakon Bugge
2024-09-25 2:04 ` Zhu Yanjun
2024-09-25 9:26 ` Leon Romanovsky
2024-09-26 15:25 ` Zhu Yanjun [this message]
2024-09-24 7:01 ` Christoph Hellwig
2024-09-24 8:59 ` Haakon Bugge
2024-09-24 15:20 ` Allison Henderson
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=8d19d735-c2a8-456a-ac97-7f8d86cd7ed1@linux.dev \
--to=yanjun.zhu@linux.dev \
--cc=allison.henderson@oracle.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=haakon.bugge@oracle.com \
--cc=hch@infradead.org \
--cc=jgg@ziepe.ca \
--cc=kuba@kernel.org \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rds-devel@oss.oracle.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.