From: Junxian Huang <huangjunxian6@hisilicon.com>
To: Leon Romanovsky <leon@kernel.org>
Cc: <jgg@ziepe.ca>, <selvin.xavier@broadcom.com>,
<chengyou@linux.alibaba.com>, <kaishen@linux.alibaba.com>,
<mustafa.ismail@intel.com>, <tatyana.e.nikolova@intel.com>,
<yishaih@nvidia.com>, <benve@cisco.com>, <neescoba@cisco.com>,
<bryan-bt.tan@broadcom.com>, <vishnu.dasa@broadcom.com>,
<zyjzyj2000@gmail.com>, <bmt@zurich.ibm.com>,
<linux-rdma@vger.kernel.org>, <linuxarm@huawei.com>,
<linux-kernel@vger.kernel.org>, <tangchengchang@huawei.com>,
<liyuyu6@huawei.com>, linux-netdev <netdev@vger.kernel.org>
Subject: Re: [PATCH RFC 00/12] RDMA: Support link status events dispatching in ib_core
Date: Tue, 24 Dec 2024 20:05:26 +0800 [thread overview]
Message-ID: <ea392da6-15e1-ea62-f5f0-78e3da0874ae@hisilicon.com> (raw)
In-Reply-To: <20241224103224.GF171473@unreal>
On 2024/12/24 18:32, Leon Romanovsky wrote:
> On Fri, Nov 22, 2024 at 06:52:56PM +0800, Junxian Huang wrote:
>> This series is to integrate a common link status event handler in
>> ib_core as this functionality is needed by most drivers and
>> implemented in very similar patterns. This is not a new issue but
>> a restart of the previous work of our colleagues from several years
>> ago, please see [1] and [2].
>>
>> [1]: https://lore.kernel.org/linux-rdma/1570184954-21384-1-git-send-email-liweihang@hisilicon.com/
>> [2]: https://lore.kernel.org/linux-rdma/20200204082408.18728-1-liweihang@huawei.com/
>>
>> With this series, ib_core can handle netdev events of link status,
>> i.e. NETDEV_UP, NETDEV_DOWN and NETDEV_CHANGE, and dispatch ib port
>> events to ULPs instead of drivers. However some drivers currently
>> have some private processing in their handler, rather than simply
>> dispatching events. For these drivers, this series provides a new
>> ops report_port_event(). If this ops is set, ib_core will call it
>> and the events will still be handled in the driver.
>>
>> Events of LAG devices are also not handled in ib_core as currently
>> there is no way to obtain ibdev from upper netdev in ib_core. This
>> can be a TODO work after the core have more support for LAG. For
>> now mlx5 is the only driver that supports RoCE LAG, and the events
>> handling of mlx5 RoCE LAG will remain in mlx5 driver.
>>
>> In this series:
>>
>> Patch #1 adds a new helper to query the port num of a netdev
>> associated with an ibdev. This is used in the following patch.
>>
>> Patch #2 adds support for link status events dispatching in ib_core.
>>
>> Patch #3-#7 removes link status event handler in several drivers.
>> The port state setting in erdma, rxe and siw are replaced with
>> ib_get_curr_port_state(), so their handler can be totally removed.
>>
>> Patch #8-#10 add support for report_port_event() ops in usnic, mlx4
>> and pvrdma as their current handler cannot be perfectly replaced by
>> the ib_core handler in patch #2.
>>
>> Patch #11 adds a check in mlx5 that only events of RoCE LAG will be
>> handled in mlx5 driver.
>>
>> Patch #12 adds a fast path for link-down events dispatching in hns by
>> getting notified from hns3 nic driver directly.
>>
>> Yuyu Li (12):
>> RDMA/core: Add ib_query_netdev_port() to query netdev port by IB
>> device.
>> RDMA/core: Support link status events dispatching
>> RDMA/bnxt_re: Remove deliver net device event
>> RDMA/erdma: Remove deliver net device event
>> RDMA/irdma: Remove deliver net device event
>> RDMA/rxe: Remove deliver net device event
>> RDMA/siw: Remove deliver net device event
>> RDMA/usnic: Support report_port_event() ops
>> RDMA/mlx4: Support report_port_event() ops
>> RDMA/pvrdma: Support report_port_event() ops
>> RDMA/mlx5: Handle link status event only for LAG device
>> RDMA/hns: Support fast path for link-down events dispatching
>
> I took the series as it is good thing to remove code duplication
> and we waited enough.
>
Thanks Leon.
The kernel test robot has reported one warning and one error for
this series:
https://lore.kernel.org/oe-kbuild-all/202411251625.VrcLuTRx-lkp@intel.com/
https://lore.kernel.org/oe-kbuild-all/202411251727.RFxtcpiI-lkp@intel.com/
I was planning to fix them when I could send the formal patches,
but since you have applied these RFC patches,could you please
fix them on your wip branch, or should I send separate patches
to fix them?
Junxian
next prev parent reply other threads:[~2024-12-24 12:05 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-22 10:52 Junxian Huang
2024-11-22 10:52 ` [PATCH RFC 01/12] RDMA/core: Add ib_query_netdev_port() to query netdev port by IB device Junxian Huang
2024-11-22 10:52 ` [PATCH RFC 02/12] RDMA/core: Support link status events dispatching Junxian Huang
2024-11-22 10:52 ` [PATCH RFC 03/12] RDMA/bnxt_re: Remove deliver net device event Junxian Huang
2024-11-22 10:53 ` [PATCH RFC 04/12] RDMA/erdma: " Junxian Huang
2024-11-22 10:53 ` [PATCH RFC 05/12] RDMA/irdma: " Junxian Huang
2024-11-22 10:53 ` [PATCH RFC 06/12] RDMA/rxe: " Junxian Huang
2024-11-22 10:53 ` [PATCH RFC 07/12] RDMA/siw: " Junxian Huang
2024-11-22 10:53 ` [PATCH RFC 08/12] RDMA/usnic: Support report_port_event() ops Junxian Huang
2024-11-22 10:53 ` [PATCH RFC 09/12] RDMA/mlx4: " Junxian Huang
2024-11-22 10:53 ` [PATCH RFC 10/12] RDMA/pvrdma: " Junxian Huang
2024-11-22 10:53 ` [PATCH RFC 11/12] RDMA/mlx5: Handle link status event only for LAG device Junxian Huang
2024-11-22 10:53 ` [PATCH RFC 12/12] RDMA/hns: Support fast path for link-down events dispatching Junxian Huang
2024-12-24 10:27 ` Leon Romanovsky
2024-12-24 10:26 ` [PATCH RFC 00/12] RDMA: Support link status events dispatching in ib_core Leon Romanovsky
2024-12-24 10:32 ` Leon Romanovsky
2024-12-24 12:05 ` Junxian Huang [this message]
2024-12-24 13:38 ` Leon Romanovsky
2024-12-25 6:12 ` Junxian Huang
2024-12-25 8:30 ` Leon Romanovsky
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=ea392da6-15e1-ea62-f5f0-78e3da0874ae@hisilicon.com \
--to=huangjunxian6@hisilicon.com \
--cc=benve@cisco.com \
--cc=bmt@zurich.ibm.com \
--cc=bryan-bt.tan@broadcom.com \
--cc=chengyou@linux.alibaba.com \
--cc=jgg@ziepe.ca \
--cc=kaishen@linux.alibaba.com \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=liyuyu6@huawei.com \
--cc=mustafa.ismail@intel.com \
--cc=neescoba@cisco.com \
--cc=netdev@vger.kernel.org \
--cc=selvin.xavier@broadcom.com \
--cc=tangchengchang@huawei.com \
--cc=tatyana.e.nikolova@intel.com \
--cc=vishnu.dasa@broadcom.com \
--cc=yishaih@nvidia.com \
--cc=zyjzyj2000@gmail.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
all inboxes | Powered by JetHome®