Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1860076ybb; Thu, 9 Apr 2020 10:19:02 -0700 (PDT) X-Google-Smtp-Source: APiQypKC3riRFWoi+LnQtM6XpEUfYkADHTw07VvbNAW4Xc/1Ofn5Wa798XVJw7Q1L/gi0B9EVY1s X-Received: by 2002:ad4:49cc:: with SMTP id j12mr1148027qvy.94.1586452742682; Thu, 09 Apr 2020 10:19:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586452742; cv=none; d=google.com; s=arc-20160816; b=agssEB6t/NnmFThN6XWbJhmiSGwrJCUppoN/SKGqWaJ3GOuZJnqBkJeGjKL2O0H2Rx 7xKlvuCnVlEYv6wMqmhr28RSwtIzwAOFBkdhfbE2PL24+I+VweVarYG6eGgsoFG+GKdh SdBscrjICOw67zg7+K22SrDln8E9O8W/GFiItpI7CE4FL/oHcsj1bZ/9/UeswyKBJ8Og 5pRkRForfK9Fv8a0Co8zO2KQ9RZrX4IvIG6b2njFVeEhkSxBAmK5Wtubp6F0jphGjaah Rk6RjsMemuKzMdORiszL12Hjdxfe3AUYHdUIbxG4OqJ0ewnZhSrtNphWEeHyeQVAKGkr czOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=fPxePW4Qfb757FBgdIHXrXqwy8R008jeeJtqBinZql0=; b=XpWEbtnhowSGG8qxTGgQSk2g34p4rGLQsWmTb4o0MDfCci3Kez8qI4YDF8jJyX4VgQ O93ElUfTtyJZqBXEovWHN8dzIuWwDohZ/CslbrnxsUDc8cLC1OPjNAIB8iStt2GCHSQU YNS6KF0U5Iolcxh/9C1ZSoFppPaMv3F2ITSLHVp3lG9UXviWhb2kp9oYJiRFnvXMVx0U EuEfE7u1fE2W1B96Kb9ZaA2omIk7HK2QIx/LOQoRdNKhBX6SdB+fuThN0Sg6lwEPwi+q hiieAb74mD3357DxfuNMah4MQMQuenc1zTe1aGqA8Z8u46GMu2JxWaRsJNqDrfL2x8sy GTlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t45si6071668qth.134.2020.04.09.10.18.46; Thu, 09 Apr 2020 10:19:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727975AbgDIRJ0 (ORCPT + 99 others); Thu, 9 Apr 2020 13:09:26 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:33206 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726627AbgDIRJ0 (ORCPT ); Thu, 9 Apr 2020 13:09:26 -0400 Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id B2B67128C125F; Thu, 9 Apr 2020 10:09:25 -0700 (PDT) Date: Thu, 09 Apr 2020 10:09:25 -0700 (PDT) Message-Id: <20200409.100925.1802925797170855675.davem@davemloft.net> To: wenhu.wang@vivo.com Cc: kuba@kernel.org, bjorn.andersson@linaro.org, wgong@codeaurora.org, allison@lohutok.net, willemb@google.com, arnd@arndb.de, johannes.berg@intel.com, cjhuang@codeaurora.org, tglx@linutronix.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@vivo.com Subject: Re: [PATCH v3] net: qrtr: send msgs from local of same id as broadcast From: David Miller In-Reply-To: <20200409025414.19376-1-wenhu.wang@vivo.com> References: <20200409025414.19376-1-wenhu.wang@vivo.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 09 Apr 2020 10:09:26 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wang Wenhu Date: Wed, 8 Apr 2020 19:53:53 -0700 > If the local node id(qrtr_local_nid) is not modified after its > initialization, it equals to the broadcast node id(QRTR_NODE_BCAST). > So the messages from local node should not be taken as broadcast > and keep the process going to send them out anyway. > > The definitions are as follow: > static unsigned int qrtr_local_nid = NUMA_NO_NODE; > #define QRTR_NODE_BCAST 0xffffffffu > > Fixes: commit fdf5fd397566 ("net: qrtr: Broadcast messages only from control port") > Signed-off-by: Wang Wenhu Please do not put the word "commit" in your Fixes: tag in the future, it does not belong there. Applied and queued up for -stable, thanks.