Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp444260rdh; Tue, 19 Dec 2023 04:00:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IFy7BHopc5PUM7DHVIlONkeWMROw53oUo6R5D3AuZ5mbMBP3YYkz6TTcfRKFk/m0mQE0CGa X-Received: by 2002:a05:6214:1149:b0:67a:1d83:66ef with SMTP id b9-20020a056214114900b0067a1d8366efmr16376155qvt.6.1702987220216; Tue, 19 Dec 2023 04:00:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702987220; cv=none; d=google.com; s=arc-20160816; b=oC3C8QSOqkarvCzh8WzT7XT0qFopKqt3yvKW1aHcqSK1RwEC/7x6ywqhMwY69oLw8t GFqx0wBY6hI3etgglJG+0O2J0Rl98yR+OAxJ/7+EO5mMcRgIWaxQpALoHNBDCQSfq4LG 2i+XUjGb0vkvh/Ivv+bH7GxfCB0RlLd1bm9m7huTbtwdPxJzsPSXTjy2RdhAwwkLmien m4jFu5who9myeLbrVwvZl4keN+BC93xErfj4nk31N3kpOioQkcfLmK5Iyq/Mw1022bG7 I3pffPx8OT81Vr/su1IuWubvM6LyOmDc3lBDlkmfN0ihyamOp9mNIw8rNsX7Q0NYuITq KbmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8ysF+BiQokZe1fVIlTN0CWwlQszEFdtEjOQP1bS8E3E=; fh=aQAKAgzq/qi8x66VmmFLu84Mhjj4K/zCloNJO+7oCnM=; b=QFuWQZhb7xwjw5/wzMPgP6/DbNyKHX2uiGGJEDM7V9W3RFrlbaI1aQgjPdxuY9IZoz rjj2/6AfPAveiJ830ZjNfPdidYVjvk5LNob/Fx2GfRHSq9PRC0GyUqT0ZtAqZcdGh6XE 90FPr+xCFeUFuBmEVqtR63S1Xmz7bl4NNxaz4KpzAEZ1Nj6yPjtC5/H4/sBhRQaAPw10 sosCIU8dZCJd8E9PgapE4saIL/FP/GBT0YPonGm9WCXniBBAnhouzhoWMmmbKlP1oIFT 9KD1uQsvrKC+zxFD1R1gwGWil24hd0+2vurokr27ui/C0vgt+uubA2zBqjsMmnvIKUKf UWVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=owi3TJxZ; spf=pass (google.com: domain of linux-kernel+bounces-5130-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y25-20020a0c9a99000000b0067f38fde213si5517138qvd.463.2023.12.19.04.00.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 04:00:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5130-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=owi3TJxZ; spf=pass (google.com: domain of linux-kernel+bounces-5130-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5130-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EB8C51C22E06 for ; Tue, 19 Dec 2023 12:00:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DECD7168C9; Tue, 19 Dec 2023 12:00:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="owi3TJxZ" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5984F1CF83; Tue, 19 Dec 2023 11:59:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3CF6C433C7; Tue, 19 Dec 2023 11:59:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702987198; bh=Slc/Za9XYBMhPi7UfoEhTPhvfB8X5HymBGZAjUc/RO8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=owi3TJxZmRC2AiSyycVpF7FIucUKejgeWXDjtkjs2seIG4auDL8f/V4/Gqy4pBI8P JnjpxtYFkDxDTdQBYwe6D7FcTllZ8pFxa+BBeqhN8eY6ExPtPbQnOJVDMtA/ANXIv3 +XW27BH/NAYTyIOtyYhyNJArjbA1gnPmvO52JhMGE9NJMXbtu0B5cvyu9xr7vuxs3S GH9TA14JlWX+Oz3lalq0HpKDCsHFVUq+Dn6/P7ldEIKLESji+60E2HDdPyD6EgFBDQ Dsn/UeoYqXOWUJ/jy5jH9qatodlw94CGyvxaEll7WEdhGQ4qdA5Gpd7xsaLFM1yxpd 3/jYNY4JOQnCg== Date: Tue, 19 Dec 2023 11:59:52 +0000 From: Simon Horman To: Wen Gu Cc: wintera@linux.ibm.com, wenjia@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, kgraul@linux.ibm.com, jaka@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, alibuda@linux.alibaba.com, tonylu@linux.alibaba.com, raspl@linux.ibm.com, schnelle@linux.ibm.com, guangguan.wang@linux.alibaba.com, linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v7 07/10] net/smc: compatible with 128-bits extended GID of virtual ISM device Message-ID: <20231219115952.GL811967@kernel.org> References: <20231219084536.8158-1-guwen@linux.alibaba.com> <20231219084536.8158-8-guwen@linux.alibaba.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231219084536.8158-8-guwen@linux.alibaba.com> On Tue, Dec 19, 2023 at 04:45:33PM +0800, Wen Gu wrote: > According to virtual ISM support feature defined by SMCv2.1, GIDs of > virtual ISM device are UUIDs defined by RFC4122, which are 128-bits > long. So some adaptation work is required. And note that the GIDs of > existing platform firmware ISM devices still remain 64-bits long. > > Signed-off-by: Wen Gu > Reviewed-by: Alexandra Winter ... > @@ -1023,9 +1041,12 @@ smcd_clc_prep_confirm_accept(struct smc_connection *conn, > if (version == SMC_V1) { > clc->hdr.length = htons(SMCD_CLC_ACCEPT_CONFIRM_LEN); > } else { > - clc->d1.chid = htons(smc_ism_get_chid(smcd)); > + chid = smc_ism_get_chid(smcd); > + clc->d1.chid = htons(chid); > if (eid && eid[0]) > memcpy(clc->d1.eid, eid, SMC_MAX_EID_LEN); > + if (__smc_ism_is_virtual(chid)) > + clc->d1.gid_ext = htonll(smcd_gid.gid_ext); Hi Wen Gu, The type of clc->d1.gid_ext is u64 (host byte-order) but here it is being assigned a big endian value. This does not seem correct. Flagged by Smatch. > len = SMCD_CLC_ACCEPT_CONFIRM_LEN_V2; > if (first_contact) { > *fce_len = smc_clc_fill_fce_v2x(fce_v2x, ini); ... -- pw-bot: changes-requested