[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ede6f320-7b22-4c9a-97d4-86ae1a72d115@linux.ibm.com>
Date: Thu, 11 Sep 2025 16:08:10 +0200
From: Alexandra Winter <wintera@...ux.ibm.com>
To: "D. Wythe" <alibuda@...ux.alibaba.com>,
Dust Li <dust.li@...ux.alibaba.com>,
Sidraya Jayagond
<sidraya@...ux.ibm.com>,
Wenjia Zhang <wenjia@...ux.ibm.com>,
David Miller <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>, Eric Dumazet <edumazet@...gle.com>,
Andrew Lunn <andrew+netdev@...n.ch>
Cc: Julian Ruess <julianr@...ux.ibm.com>,
Aswin Karuvally <aswin@...ux.ibm.com>,
Halil Pasic <pasic@...ux.ibm.com>,
Mahanta Jambigi <mjambigi@...ux.ibm.com>,
Tony Lu
<tonylu@...ux.alibaba.com>, Wen Gu <guwen@...ux.alibaba.com>,
linux-rdma@...r.kernel.org, netdev@...r.kernel.org,
linux-s390@...r.kernel.org, Heiko Carstens <hca@...ux.ibm.com>,
Vasily Gorbik <gor@...ux.ibm.com>,
Alexander Gordeev
<agordeev@...ux.ibm.com>,
Christian Borntraeger <borntraeger@...ux.ibm.com>,
Sven Schnelle <svens@...ux.ibm.com>, Simon Horman <horms@...nel.org>
Subject: Re: [PATCH net-next 07/14] net/dibs: Define dibs_client_ops and
dibs_dev_ops
On 05.09.25 16:54, Alexandra Winter wrote:
> diff --git a/net/smc/smc_ism.c b/net/smc/smc_ism.c
> index a7a965e3c0ce..d90e11e1a945 100644
> --- a/net/smc/smc_ism.c
> +++ b/net/smc/smc_ism.c
[...]
> -static void smcd_register_dev(struct ism_dev *ism)
> +static void smcd_register_dev(struct dibs_dev *dibs)
> {
> - const struct smcd_ops *ops = ism_get_smcd_ops();
> struct smcd_dev *smcd, *fentry;
> + const struct smcd_ops *ops;
> + struct smc_lo_dev *smc_lo;
> + struct ism_dev *ism;
>
> - if (!ops)
> - return;
> + if (smc_ism_is_loopback(dibs)) {
> + if (smc_loopback_init(&smc_lo))
> + return;
> + }
>
> - smcd = smcd_alloc_dev(&ism->pdev->dev, dev_name(&ism->pdev->dev), ops,
> - ISM_NR_DMBS);
> + if (smc_ism_is_loopback(dibs)) {
> + ops = smc_lo_get_smcd_ops();
> + smcd = smcd_alloc_dev(dev_name(&smc_lo->dev), ops,
> + SMC_LO_MAX_DMBS);
> + } else {
> + ism = dibs->drv_priv;
> + ops = ism_get_smcd_ops();
> + smcd = smcd_alloc_dev(dev_name(&ism->pdev->dev), ops,
> + ISM_NR_DMBS);
> + }
[...]
>
> if (smcd->ops->supports_v2())
> smc_ism_set_v2_capable();
If applied on top of
091d019adce0 ("net/smc: remove unused function smc_lo_supports_v2")
v6.17-rc1
this will crash during boot with CONFIG_DIBS_LO.
Corrected later in the series by
[PATCH net-next 11/14] net/dibs: Move vlan support to dibs_dev_ops
Fixed in v2.
Powered by blists - more mailing lists