Article View: linux.kernel.netdev
Article #7587Re: [PATCH v4 2/4] net: qrtr: Assign unique node id for MHI endpoints
From: Simon Horman
Date: Mon, 26 Oct 2026 17:25
Date: Mon, 26 Oct 2026 17:25
27 lines
9429 bytes
9429 bytes
On Thu, Oct 22, 2026 at 07:43:08PM +0200, Manivannan Sadhasivam wrote: > Now that the QRTR driver allows using the unique node id for each device, > which is different from the node id received from the remote node, compute > a unique node id using a new API, qrtr_host_node_id(). > > This API takes the 'index' parameter and adds it to QRTR_NODE_HOST_BASE. > The base is chosen well above the node ids in use by the remote nodes, so > that the host assigned ids never collide with the pre-existing ones. > > Since the ids at and above the base now belong to the host, reject any > packet carrying one as the source node id or as the node id of an > announced server in qrtr_endpoint_post(). > > Finally, call the new API from MHI endpoint driver by passing the MHI > controller index as the parameter. The MHI controller index is unique for > each controller, thereby for each MHI endpoint device. > > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com> > --- > MAINTAINERS | 1 + > include/net/qrtr.h | 22 ++++++++++++++++++++++ > net/qrtr/af_qrtr.c | 9 +++++++++ > net/qrtr/mhi.c | 4 +++- > 4 files changed, 35 insertions(+), 1 deletion(-) Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID:
<20261026172534.GI257209@horms.kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352019-linux-kernel-netdev=dewy.ruReferences:
<20261022-qrtr-multi-ep-v4-0-c6fdb75fcd3e@oss.qualcomm.com> <20261022-qrtr-multi-ep-v4-2-c6fdb75fcd3e@oss.qualcomm.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352019-linux-kernel-netdev=dewy.ru From: horms@kernel.org (Simon Horman) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v4 2/4] net: qrtr: Assign unique node id for MHI endpoints Date: Mon, 26 Oct 2026 17:25:34 +0000 Organization: Usenet Network Message-ID: <20261026172534.GI257209@horms.kernel.org> References: <20261022-qrtr-multi-ep-v4-0-c6fdb75fcd3e@oss.qualcomm.com> <20261022-qrtr-multi-ep-v4-2-c6fdb75fcd3e@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1358703"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:uy5V3GrbJD6F38ba6R+dhYJEhj4= sha256:72/2662f2Ohlr5Ll/rpCP8SXc72Jh+c2O/ZPf6D0l18= sha1:oVLShe7t7JQ4QNK88f2O98kjxiI= sha256:X65pp0KRRNXZuZOnZoKT7OgxBemAV8QmCnRhEf7cck4= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id AFCE1125BB0; Mon, 26 Oct 2026 20:28:05 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.739 X-Spam-Status: No, score=-3.739 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.339, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZOd6F8SY18ga; Mon, 26 Oct 2026 20:28:03 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-352019-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 6295B125BAF; Mon, 26 Oct 2026 20:27:54 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id 8AEB826F36; Mon, 26 Oct 2026 17:25:48 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793035546; b=YpToibCyU18uqdEH+R2JYDX0IaTdqs9kilcq73H6ngvuRSv/bpsPW3bV8NMO8GGYW3D9 RlJqLp+Nx3h4ECd50NmCVnGR6vBY2SkxQQwIjyRbFtT/o6aC7CCuec3KZVqhBheyqdgI0 URLrMk4nJROc3ULMIz5AaFM2AmlM2JL/yOMhZXeoc/yWwSg93jGhoLGERHWD72P+M0f4X 8Hh1HMtCkcXgKHCIgxdj9z/AZIWUDmpYqUbZNwKqLy4BcH/Qd163dsk9+GEC3bKGS6QVO mll0zcJGPxtKw4oP6enHmLdPrL4Lv8RF/7vFR7e/pU7GyTBuWEnmTtUKfEnmMZSpryg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793035546; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=vtU+kBzBPd6DlQELqlotiDLJ3HaHy3LtAxD3GeegWhs=; b=PSR9aG8IWH79JCx4yHucNuxXUje6PAHBER7zau9Hk+IVrazgi0XZSXkj9jiUi/QryXno 2k7WXKw2JfsCSRrTsp4pVCOPCnJojqgBDIA9BV3EdVvVwgRU/+8KntoHZzBwU2CT+9i7G RBKmJ5Mf+T032RviE6vfI8ELnFwFON0AIpxGTuhPK9FlPyI8rAgB8EheMzjss2ljIpB4N VhlSmGE7waxNvqQxq9ZOmZrINI7op45Ub31mbSzqpUgNJNfQqkGBe8G2jDSmKjK5HUiJV Zp9n29ExXBfIUo7Z8dJ2D8reXA43UiQ4gnHOu3dqntR6vLLlBNSMjTU92cW5YmxWHLw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bachbU0d; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91CBC606A329; Mon, 26 Oct 2026 17:25:46 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bachbU0d X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793035540; b=3mnm3m3T5/wc6ypj7tqeBMaeSL7S3EzOLaJ/fCqrt362s8gfPbQ6lGmA/MumhhEX6Lcn E/4ilE7uAtezsAIxzpb5cU1rGX2o3gMLIQvYq+ZxTwBHTB1joYJnKXttJljPCiIlBhZrA hu9/PkV5Q10e4lE/Re7jLDiZvqXNtF2ybE91U8XnwVhBFAWIYmSDTc2vftsSJsBmvt8zP b21Ni/N/5ghCnJNly4a0LFNJrF28DBz4i3+BVWJ3MOUsZHpWOVdz4cIslRFjfyejmAJKo jDHwJ96IEjnGrLvOxSkI4kIslkuQaq2ynAzASTk3YzyV5F5WcX8aEqA4r5G7a2YSLPA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793035540; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=vtU+kBzBPd6DlQELqlotiDLJ3HaHy3LtAxD3GeegWhs=; b=fHa+j+exXn2Y3BeZ5QTEMcQzyDsuHPv8Oqkal4ElWJMUYVKv0tb0Ig63DotfCIDH9EBg CziMHu66gjY7iCBBMgdXIGPW4ab98QjFvmaA1dEM6hWqQwajPvc+L+AoZ3vOQPz35HnxY IXp4aJYUuv4cT8m9t5PTRoW31q3hE5tnMy++qI+VWMU/GHz9MvhyzLeOciT4L6b0+y9mg z1sWQZS9uq6O+CbKzxtZiXtZqFNVZrboxh4xEFaMbBBhQ9ojMZMIrVYU/3Qy3wPGWZb9J WbPKw9E4q4m2HwnyoScikzUKYuuGcpc+HMI5YoAjpiGvLfiE0mvg758WFm+8gpJqkZQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bachbU0d; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FEDB606A323; Mon, 26 Oct 2026 17:25:40 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E75F71F01825; Mon, 26 Oct 2026 17:25:36 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793035540; bh=vtU+kBzBPd6DlQELqlotiDLJ3HaHy3LtAxD3GeegWhs=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=bachbU0dKGwcBYfW42KWyzvr8NDrZSvBhcmnOgwCtYFmnFjXJ6X0+FhrZkBztKbMJ wQ3Nc2YGmiV/XYHQgULEdGinAd9edH/fw2ICcIESbKiWC5QnCgOZe6/jQCZdaW3UZT rJEm5UuOzb+ey2m/sOKzGmOSsvlhO2Sz+0uLRCvYAqNPlKNryYvDg3Or2UYJHh+zUi 4cAoK9xZWf3sxeWch3e+H0aueN8TcrnkoQgxh2XsJteKdwYGxBfeEZ5X9jq4+8bPUo h/wxuGYbHhJ2KGcGCEeDjUcgShKUKE9oE34HweBWNHYj91p+PPxfL44szG2+KAX/yd HM8qBOExM7Wog== X-Cc: Manivannan Sadhasivam <mani@kernel.org>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Jeff Johnson <jjohnson@kernel.org>, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, ath12k@lists.infradead.org, Bjorn Andersson <andersson@kernel.org>, Chris Lew <christopher.lew@oss.qualcomm.com>, Deepak Kumar Singh <deepak.singh@oss.qualcomm.com>, Raj Kumar Bhagat <raj.bhagat@oss.qualcomm.com>, Juha-Matti Tilli <juha-matti.tilli@iki.fi>, Jeff Hugo <jeff.hugo@oss.qualcomm.com> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261022-qrtr-multi-ep-v4-2-c6fdb75fcd3e@oss.qualcomm.com>