Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp974271ybb; Wed, 8 Apr 2020 13:42:55 -0700 (PDT) X-Google-Smtp-Source: APiQypJnVbYYqOBGRvnjzsfK7Izgnl/AUzZ2qVgqSP63ljBG+abfHRm62ju52fdZbx785mj0WSnl X-Received: by 2002:a05:6830:314e:: with SMTP id c14mr7421533ots.7.1586378575600; Wed, 08 Apr 2020 13:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586378575; cv=none; d=google.com; s=arc-20160816; b=oFAnA30VzepKFNLp4Z/iSFcKy3tFytBFCToG7lmMZqcHL7XRfnXyE2BSIR5Ebgo84x jIi82qCMyvpuBS3+23jCe+SUpOuiw0QBdL725IrbsJcKJBDnT5W8c8fbC4GuL6rtRwqh W4GdTbgHiMpsGUWifWCGBBp8YONY8imO+X2+oT7pASU1rcMwHhcW1fbUZdyCs2uPmyiX HiH5jFQhdMjI0GEkofwR3NcwZoIClYJO4GUfs8Zb0r74qdV+CM2TJwHEIcqaWNrwMYuf HQ0GSeUonLH15qH0jTLvtm15vOccChRrBCs7I34+L8qYk4jlefepU80RqvYbgo7Jwtyc 2sDg== 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=//Mh8erEwkRmb9BjKuVH/6Bt6HpoYlRA9PQP+3U32Q4=; b=dXvPFUuM/bDCQCKP57BJoqZRcC2dA2YQn86Ndm0cgGW9Cc5w5UWvFp/Rfstj24+U+c QrDLH2IOZogRhYWa7+cdDLigfOC/XDu9F94LaYUvslLxpdc3kYI8JeVM10y6SWyxpfgR C+pj6hidLKVE3c1SlvCCQsDwJp+T4OVgx9RhfdaIGTqTESFCiFI1wSQ9bwq3dlSivF78 E42U2bCZTrq+KpmQzWdZAvAlGalPc5Yms3Hw7x6AIdqxErZ2MpBZqGSwWEQRCmYN180L 0whXRbq98yxMrWP8CebGLOTsnShXZC/ZJqka+6W7hHogTF7z/PP7GPAdkFcBWOy6RK7g xUhw== 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 r11si2910101otd.26.2020.04.08.13.42.42; Wed, 08 Apr 2020 13:42:55 -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 S1728854AbgDHT4K (ORCPT + 99 others); Wed, 8 Apr 2020 15:56:10 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:51966 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726709AbgDHT4J (ORCPT ); Wed, 8 Apr 2020 15:56:09 -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 05E69127BE380; Wed, 8 Apr 2020 12:56:07 -0700 (PDT) Date: Wed, 08 Apr 2020 12:56:06 -0700 (PDT) Message-Id: <20200408.125606.1078177957758077983.davem@davemloft.net> To: wenhu.wang@vivo.com Cc: kuba@kernel.org, bjorn.andersson@linaro.org, cjhuang@codeaurora.org, tglx@linutronix.de, arnd@arndb.de, hofrat@osadl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@vivo.com Subject: Re: [PATCH v2] net: qrtr: send msgs from local of same id as broadcast From: David Miller In-Reply-To: <20200408033249.120608-1-wenhu.wang@vivo.com> References: <20200407132930.109738-1-wenhu.wang@vivo.com> <20200408033249.120608-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]); Wed, 08 Apr 2020 12:56:08 -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: Tue, 7 Apr 2020 20:32:47 -0700 > - enqueue_fn = qrtr_bcast_enqueue; > - if (addr->sq_port != QRTR_PORT_CTRL) { > + if (addr->sq_port != QRTR_PORT_CTRL && > + qrtr_local_nid != QRTR_NODE_BCAST) { This is still not correct, it should be: if (addr->sq_port != QRTR_PORT_CTRL && qrtr_local_nid != QRTR_NODE_BCAST) {