Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp117742lqf; Fri, 26 Apr 2024 01:05:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVsWA2bCBGIrJWxJCrKorFDrZC3BVtUlEcvV4vc2rpVAKSSenGbes8tACEOeqLH4h3EBx+Q/u06DvHghRWh5a1xP5AJv6i90cCz32Lsug== X-Google-Smtp-Source: AGHT+IFoLC6eFGr2WyRnxqPzB1xuzSoKCCecxXfGm3xTzbxYl/Gc+jeJNsIurTkZGruomv0ZeTR1 X-Received: by 2002:a17:90b:1809:b0:2a2:981b:2c9e with SMTP id lw9-20020a17090b180900b002a2981b2c9emr1966347pjb.36.1714118704290; Fri, 26 Apr 2024 01:05:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714118704; cv=pass; d=google.com; s=arc-20160816; b=UlSbXL5IX/7xElD5w/XgrJS76CVgRT4qQjr4DZSYS5paMqlZwmlVvu6ccOBMJh2d3q g7qMFTF/wPDHVHtp7z51JbLb4k6ewzHoiVovA/iuTq7rYvdfTpjWXEZgp+G9hgx+Zx8j ILvMet7XTGtjw51jYCrEGDmD1nKoK2VAtM9Wz7OkQK3b1F6frn4XnKTVmMsXAQ7pycgH oz5dUuhy8uSAzApFIAxTWLf0TrMfFlmfMasme8DGZ0xmlu65chrJFnjJaCd12Q0BgxlA /JJtdvB+h4MjLNa1XrtZgrylQj1qUtWYFHKNG4r/zX/4l1XZmbRnoFAFPq02VQnQgBFr 8pnA== 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 :content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:date:message-id:dkim-signature; bh=dXVCujixqBnPqm5Kh3D7JLPwnYnmNrEdPMF0rWzu/Q0=; fh=LUKzVchA8RG+CHfwW+tf7LHufBIuVmMpYVR2RetmdOY=; b=HDgPRvPjwePqCCWhbOukBd+hTv7WnrPtJ86nDYOF4h51rkvbvDNEMpkv2WK9MHqfcS WLkYapZnrKUPxysTsMpGW+YHrMV/Lwqe0rhL0hnN+hzxsa3mDnMGhbxIZxTuo+ZCuiF6 di/RGp7LPn9XXHGlf++GWFBnkMbneRuAwjkqhoSTHh79z+N3Q0tkt/XBmO21QaL7hDTp WvthQLtDAQlvvs09FzyjVxHuGYVQMoZm7NY6XxtriMkqtTf02pIn+ZrrB53L0e6k1v5e JHG8v7FmkqdqdtkVElUtbyevTdYvvm64eEU+/b3SEBflXK/E7G+q6uQc4dXpES1Wcfp+ k8KQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=svwAEpNi; 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-159674-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159674-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id on11-20020a17090b1d0b00b002aaee26693bsi16841367pjb.105.2024.04.26.01.05.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 01:05:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159674-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=svwAEpNi; 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-159674-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159674-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6946C28241C for ; Fri, 26 Apr 2024 08:05:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C72AC13C8F1; Fri, 26 Apr 2024 08:04:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="svwAEpNi" Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 4883A13BC28; Fri, 26 Apr 2024 08:04:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714118688; cv=none; b=kEg+k75/wZhqD9AeBFnfVpd4mFHNofy2rH+OBkceMn5GYnOmr1lzAWfJ7zR4MQ4shApz02dyCP+M2gRvirBW4ypDjXUEx7507kM7OHClkYTHg4WFsFrLSfRpdM8RWRu2EDb9BMmmOy/NxBOeYdXSuQoZdjC1yXg85HZFlFu1Wxg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714118688; c=relaxed/simple; bh=gkrVI/hEJ5vPdNwfDc1cqgOQSI4zGxPCnC5lJLAXYTs=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=kh5hpj2Y5ozs2whn5zSQBf6ZWbxfosiS/RMaAND41MJqVhGN/ks2/ie/iw0XivUaoBCK4a1AoT1MzcTCOmaDU5eXcqFGWS7ia+6qT7WBmlAWtKm6n3qDFITTjYly/AJ/SRM9Vu6cHmedS4D6K89aqI907rx4IgXGGll0YjeINVU= 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=svwAEpNi; arc=none smtp.client-ip=148.163.156.1 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 (m0356517.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 43Q82ZOn010160; Fri, 26 Apr 2024 08:04:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pp1; bh=dXVCujixqBnPqm5Kh3D7JLPwnYnmNrEdPMF0rWzu/Q0=; b=svwAEpNisBQMsGfAOPTx0c7DhZdP3h4y7O9ssBZ8eKAb6+jl6H9Gq4sXxtjxDTt2Njop LK+paDX3yfUhVc6/goIjkVhSKAdWrsJUOG5b8NBDEdOe4Bdhr78M5NjO3cFLrnhhW3/w TPY87vyJrfsGJP9ZvqOpnuY+vHfR/86TL0L/Y/vuSvBFBUDSnqnBdpLX3RyL+9GJjKt4 7govMyIKfRiyTfE/D7BwgEUcXdjOzgIQzxAqUlphnflnlEEUN/ged9frgVyJocZ3R6Fe BYzjQeGj/cOxqVRicmX7+daKg79fBdx00RRoMZoLUpCcPPvZypeFPEu/2QhEtOtIoN+X IA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3xr8dd003y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 Apr 2024 08:04:41 +0000 Received: from m0356517.ppops.net (m0356517.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 43Q84eUt012938; Fri, 26 Apr 2024 08:04:40 GMT Received: from ppma22.wdc07v.mail.ibm.com (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3xr8dd003u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 Apr 2024 08:04:40 +0000 Received: from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1]) by ppma22.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 43Q4l4ae020886; Fri, 26 Apr 2024 08:04:39 GMT Received: from smtprelay05.wdc07v.mail.ibm.com ([172.16.1.72]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3xmre0eqxg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 Apr 2024 08:04:39 +0000 Received: from smtpav04.wdc07v.mail.ibm.com (smtpav04.wdc07v.mail.ibm.com [10.39.53.231]) by smtprelay05.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 43Q84aDO66322714 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Apr 2024 08:04:38 GMT Received: from smtpav04.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 512CB5806A; Fri, 26 Apr 2024 08:04:36 +0000 (GMT) Received: from smtpav04.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 051CE58056; Fri, 26 Apr 2024 08:04:33 +0000 (GMT) Received: from [9.171.42.122] (unknown [9.171.42.122]) by smtpav04.wdc07v.mail.ibm.com (Postfix) with ESMTP; Fri, 26 Apr 2024 08:04:32 +0000 (GMT) Message-ID: Date: Fri, 26 Apr 2024 10:04:32 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v6 07/11] net/smc: register loopback-ism into SMC-D device list Content-Language: en-GB To: Alexandra Winter , Wen Gu , 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, 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 References: <20240414040304.54255-1-guwen@linux.alibaba.com> <20240414040304.54255-8-guwen@linux.alibaba.com> <23cff564-a65c-4db6-a386-2a7e56be84c8@linux.ibm.com> From: Wenjia Zhang In-Reply-To: <23cff564-a65c-4db6-a386-2a7e56be84c8@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: d5OOasa6LH4wdU1zG06SqGHMVWAEV8Ei X-Proofpoint-GUID: 9nhuHZSwqFZB7kPXUXd0eYYmvDOMbPmX Content-Transfer-Encoding: 8bit X-Proofpoint-UnRewURL: 0 URL was un-rewritten Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-26_07,2024-04-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxlogscore=885 spamscore=0 mlxscore=0 phishscore=0 suspectscore=0 adultscore=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2404260050 On 25.04.24 15:29, Alexandra Winter wrote: > > > On 25.04.24 13:29, Wenjia Zhang wrote: >>> +    if (!smcd->pnetid[0]) { >>> +        fentry = list_first_entry_or_null(&smcd_dev_list.list, >>> +                          struct smcd_dev, list); >>> +        if (fentry && smc_ism_is_loopback(fentry)) >>> +            list_add(&smcd->list, &fentry->list); >>> +        else >>> +            list_add(&smcd->list, &smcd_dev_list.list); >>> +    } else { >>>           list_add_tail(&smcd->list, &smcd_dev_list.list); >>> -    else >>> -        list_add(&smcd->list, &smcd_dev_list.list); >>> +    } >> >> Nit: here the pair of curly brackets are unnecessary. > > Actually > https://www.kernel.org/doc/html/latest/process/coding-style.html#codingstyle > tells you to use those braces. Thanks, @Alexandra! Then @Wen, forget my comments on this pls!