Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp125554lqp; Thu, 4 Apr 2024 08:38:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7Kvaohl0MvSHpgLN8zFmVkyh0QyAYuMn+stbEQ2QtRsZI3CzTMDd/0yyEHsTgMEEcVOAUgQXILhVhAohPeuoNZKsihs8PRrKMrDfajw== X-Google-Smtp-Source: AGHT+IHQe0TdWAB6I3EW2mCt9yQfgqR2+G2XPgrUPYUTaZjApjqFzfEjhEFv9tTfWLnh/qFnd6hi X-Received: by 2002:a50:9b1c:0:b0:56d:ece8:a5e8 with SMTP id o28-20020a509b1c000000b0056dece8a5e8mr2198730edi.14.1712245132871; Thu, 04 Apr 2024 08:38:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712245132; cv=pass; d=google.com; s=arc-20160816; b=Op6V5wO7bDbZ642VE9+ES566IdOOUK71X6RSuCx0I7TPpxmbS6MtDdJMgKZWT5bE8n EwhjZjRYFzwW1e1fA1wzc05oYm918+UoPyQsJV7ztuuN3wrawbe9/Y06KMxj858iSf48 66bmlFwO5/Pqx6nhloRKOWAywUnQrmw99zS9n4/SNNcjq/vWu+z3QC6JFX7WScUtpGBC +X7Wd+qAObiwbYYdmDbvcu2RkakHk8nUClQoYbx8KoJ84uuaIIyDhcE05fQRDTbXSZgP DVtDvbEfb56PVXrXDJU1ltQUtpeKpPla4xWTpOTxBFMHbMAwJ1G99/jcobBusWKAemRM HhCg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=yZBOTaaWjEwpYDYXL847pAYDYbLtO4xPzUdVp+Kfm4k=; fh=CRwbrYYi1eiBmiLdCzNiIzvJ4HlGgXbla8m8NTylM9w=; b=ulbPbjvC8GI0lqZbDMADZOxRy5zOpDJdz1ct9dMUVM+KmynDJfPp8/PXHqR2rQ9NYj GI94haTj7m0ZcPQc5vLbpuPHjwT5zPzsDZFJfjiehHvG7vXGEFYJQOuvkeO3vKckFUR+ rSYlm5JIlkBFsDWY0ahZY6z6VCyiIaYwtC6uPl4VsIsbBxqptVr++erVCHd7ppWTR/SW CWZHtyb8ZKY1/6TQfy9vYkS9ZJLkw/6nVoUYiLXLzTv6kH7ropEmHL9iXQSffnfnfZTF xBs57d6EO6iY8FSpEt6DxZG/naVSXBMQQFF4fO8DlWUn2dUvQaxEcekUttKnKzIvv8Qx rjng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=CrV1UXTj; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-131702-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131702-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id es15-20020a056402380f00b00568c5eb31besi8253804edb.676.2024.04.04.08.38.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 08:38:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131702-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=CrV1UXTj; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-131702-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131702-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 410E11F2D204 for ; Thu, 4 Apr 2024 15:19:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4275E12AAC0; Thu, 4 Apr 2024 15:15:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="CrV1UXTj" Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4766B1D537; Thu, 4 Apr 2024 15:15:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712243734; cv=none; b=WDOKEuZkAhliHy1n33wMMKUv/PzhRhlFrEqlZaEw2UBtraWyDzbKeljvupnwTPiWVx/PAI1FpXLxMA9tFDjsmmmf5itj8q484Vk+Xz3ZKqtkHRPRPHgO9zyvnFMF5JghKRkq2n6qXruv70fReonS7Y8ikb1L4bytIc/zsjDwlbo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712243734; c=relaxed/simple; bh=phx8it4Rc5OV6ul+lZvVZLQ6ZP8J9uT1AFJPwVkAUw8=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=lPefhgfcKSAm0VgGBLIx/Bnmkr5yNZsqADxwFxlp28TTyIfdYdIsV6AeChaU5079R750jpOhLIx7MwPIBfHFJsQZ2DcFKEsQM698JeM4Vw0GM/dw9TbnNrwWz1KnpoGene4muSu/HTl0GuyuC2y6FkQ99wHV3dtvi9vKnigpKfU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=CrV1UXTj; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 434EIio0017997; Thu, 4 Apr 2024 15:15:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=pp1; bh=yZBOTaaWjEwpYDYXL847pAYDYbLtO4xPzUdVp+Kfm4k=; b=CrV1UXTj+Z10hFJR5x6yAhWl2yPi7jnT2Uy9Qwbgd4oCyCDtKpYMFONW94B8taadZmis ZYl97H2cKjyzwHzHUs7RU/xkaVOpv3evxl3cswbzOk8oF+IIKsRaNSeU8wuOqffJm7Sm hgtT4PUjcyCJ/wuGUzYjS/O0XcwPhBW11X5Ui2dH0wqgvbQEzBVOFyCzlq0OInAjm8mh aAt7+Tfo5Rj/67phDBXR8e5Z/GiY/V8ASlJ591fi1MjbgJrVmj8nOmsfrofNEmX6AW1g 6DD9tTBzn1GRytl8KzQ3YlFmQlVR+fnYZtweqDX5cs8OYKtLlxboBGjPNkO/7mJ1AbrR iA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3x9wuk85a5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 04 Apr 2024 15:15:26 +0000 Received: from m0356516.ppops.net (m0356516.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 434FCZTU011588; Thu, 4 Apr 2024 15:15:25 GMT Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3x9wuk85a1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 04 Apr 2024 15:15:25 +0000 Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 434DcRuM007696; Thu, 4 Apr 2024 15:15:25 GMT Received: from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3x9epwmuat-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 04 Apr 2024 15:15:24 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 434FFJ5x50528614 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 4 Apr 2024 15:15:21 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 78A9C2004D; Thu, 4 Apr 2024 15:15:19 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 149A120043; Thu, 4 Apr 2024 15:15:18 +0000 (GMT) Received: from [9.171.68.41] (unknown [9.171.68.41]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTP; Thu, 4 Apr 2024 15:15:17 +0000 (GMT) Message-ID: <7291dd1b2d16fd9bbd90988ac5bcc3a46d17e3f4.camel@linux.ibm.com> Subject: Re: [RFC PATCH net-next v5 04/11] net/smc: implement some unsupported operations of loopback-ism From: Niklas Schnelle To: Wen Gu , Gerd Bayer , wintera@linux.ibm.com, twinkler@linux.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, wenjia@linux.ibm.com, jaka@linux.ibm.com Cc: borntraeger@linux.ibm.com, svens@linux.ibm.com, alibuda@linux.alibaba.com, tonylu@linux.alibaba.com, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, netdev@vger.kernel.org Date: Thu, 04 Apr 2024 17:15:17 +0200 In-Reply-To: <7a0fc481-658e-4c99-add7-ccbd5f9dce1e@linux.alibaba.com> References: <20240324135522.108564-1-guwen@linux.alibaba.com> <20240324135522.108564-5-guwen@linux.alibaba.com> <3122eece5b484abcf8d23f85d6c18c36f0b939ff.camel@linux.ibm.com> <1db6ccab-b49f-45d2-a93c-05b0f79371a3@linux.alibaba.com> <3b3ff37643e9030ec1246e67720683a2cf5660e5.camel@linux.ibm.com> <7a0fc481-658e-4c99-add7-ccbd5f9dce1e@linux.alibaba.com> Autocrypt: addr=schnelle@linux.ibm.com; prefer-encrypt=mutual; keydata=mQINBGHm3M8BEAC+MIQkfoPIAKdjjk84OSQ8erd2OICj98+GdhMQpIjHXn/RJdCZLa58k/ay5x0xIHkWzx1JJOm4Lki7WEzRbYDexQEJP0xUia0U+4Yg7PJL4Dg/W4Ho28dRBROoJjgJSLSHwc3/1pjpNlSaX/qg3ZM8+/EiSGc7uEPklLYu3gRGxcWV/944HdUyLcnjrZwCn2+gg9ncVJjsimS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HpYbLdyBZEvtXWVoYVCA69h1X6289XUAjbm1h7OS6qz9m7+8kjpoakIFUt75M2KKCJ9a6yaOGjiLj5r1vQzNgV16lOPsb1Ywf8p2/ac Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: t-ny1DfZ8OHmWGhmmy2yitYCVoMXUCWd X-Proofpoint-GUID: wa4GxS-CAInGvwY7UP1oU9Ly64X8TC5F X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-04_11,2024-04-04_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 impostorscore=0 bulkscore=0 clxscore=1015 suspectscore=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 adultscore=0 mlxscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2404040105 On Thu, 2024-04-04 at 21:12 +0800, Wen Gu wrote: >=20 > On 2024/4/4 19:42, Niklas Schnelle wrote: > > On Thu, 2024-04-04 at 17:32 +0800, Wen Gu wrote: > > >=20 > > > On 2024/4/4 00:25, Gerd Bayer wrote: > > > > On Sun, 2024-03-24 at 21:55 +0800, Wen Gu wrote: > > > > > This implements some operations that loopback-ism does not suppor= t > > > > > currently: > > > > > - vlan operations, since there is no strong use-case for it. > > > > > - signal_event operations, since there is no event to be proce= ssed > > > > > by the loopback-ism device. > > > >=20 > > > > Hi Wen, > > > >=20 > > > > I wonder if the these operations that are not supported by loopback= -ism > > > > should rather be marked "optional" in the struct smcd_ops, and the > > > > calling code should call these only when they are implemented. > > > >=20 > > > > Of course this would mean more changes to net/smc/smc_core.c - but > > > > loopback-ism could omit these "boiler-plate" functions. > > > >=20 > > >=20 > > > Hi Gerd. > > >=20 > > > Thank you for the thoughts! I agree that checks like 'if(smcd->ops->x= xx)' > > > can avoid the device driver from implementing unsupported operations.= But I > > > am afraid that which operations need to be defined as 'optional' may = differ > > > from different device perspectives (e.g. for loopback-ism they are vl= an-related > > > opts and signal_event). So I perfer to simply let the smc protocol as= sume > > > that all operations have been implemented, and let drivers to decide = which > > > ones are unsupported in implementation. What do you think? > > >=20 > > > Thanks! > > >=20 > >=20 > > I agree with Gerd, in my opinion it is better to document ops as > > optional and then allow their function pointers to be NULL and check > > for that. Acting like they are supported and then they turn out to be > > nops to me seems to contradict the principle of least surprises. I also > > think we can find a subset of mandatory ops without which SMC-D is > > impossible and then everything else should be optional. >=20 > I see. If we all agree to classify smcd_ops into mandatory and optional o= nes, > I'll add a patch to mark the optional ops and check if they are implement= ed. Keep in mind I don't speak for the SMC maintainers but that does sound reasonable to me. >=20 > >=20 > > As a first guess I think the following options may be mandatory: > >=20 > > * query_remote_gid() > > * register_dmb()/unregister_dmb() > > * move_data() > > For this one could argue that either move_data() or > > attach_dmb()/detach_dmb() is required though personally I would > > prefer to always have move_data() as a fallback and simple API > > * supports_v2() > > * get_local_gid() > > * get_chid() > > * get_dev() > I agree with this classification. Just one point, maybe we can take > supports_v2() as an optional ops, like support_dmb_nocopy()? e.g. if > it is not implemented, we treat it as an ISMv1. >=20 > Thanks! Interpreting a NULL supports_v2() as not supporting v2 sounds reasonable to me.