Message ID | 1604684010-24090-2-git-send-email-loic.poulain@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:906:d156:0:0:0:0 with SMTP id br22csp634140ejb; Fri, 6 Nov 2020 09:27:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqefyDeqrXwkMDXhihXhoa8EYWCpOHu7d7IRHFK9SlxBvLy2T0bOsHrdU1MMvDNyPgmqeY X-Received: by 2002:a50:cd51:: with SMTP id d17mr2992006edj.93.1604683632404; Fri, 06 Nov 2020 09:27:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604683632; cv=none; d=google.com; s=arc-20160816; b=dU9Wcloi7UUU9ctd+oCDjJmnHDSDFhCmjBmdP/qvp4EyBVf9nIlS1+DV77oz0KheeC cbkTIqgIAP7ptGChCOAfZgH2SP0zvBfsSnZAj2+zLTkIQk8wLSq2HFj/RykuGfprrTEv Y8970hzz9FgoP4WaFBUmHFve4qwiJjYTvInZZr/w9/g85iZTrFgSWbVoo0OOWJnuYZMy kftKB44m7OAJ5Mjb3SrmJCpUfBN6sE6nwiPz16Z01EL8GfO+Bkv4KybdezlFgHiSXmIE RWzkvvUwBTcEctMOihst4zv3eP/Y6dCr/T9noxb/dTeUbRJ6CzTmIIq8cRlH7IjVl5rC cPNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=qiZHU813rW8xg+F+YCWBIt/KpRIOcYYppQ2O/7ZYftw=; b=KNLCG0ppKs5eFj6+wIu5r8y+Cg6MAlOcK91VqhB4jJSgCwCQG5wl2q7CUyICZfmRbY 7R0QfkNc8Y0mVgN1oqi9PtFiMlAgr2Cv2pLXicmSxpXM0CdAklTbwx/NqdMza0aemHlt RAeRytU9B165LfJh3dKMRvHnkYEalYAnkDwxMsN8oeASkcuQK+jyYuKMXvoKUs+dw2kn LrnmIb7HpN/Ch7bSaiO9MXqSTmKkdleVwAp7QgnYoIXKCxZhNvs1Jn+WD70Y/dsWAKEH gzagmfIv/BrirQgZTPuet6gWmslWCk0S8Pg6Q3oFsOAaPsUV9eqlsYIqTyIzoDirzNvp 2cPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="LIykX/LI"; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <netdev-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o17si1467882ejg.500.2020.11.06.09.27.12; Fri, 06 Nov 2020 09:27:12 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="LIykX/LI"; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727402AbgKFR1K (ORCPT <rfc822;patch@linaro.org> + 8 others); Fri, 6 Nov 2020 12:27:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726075AbgKFR1J (ORCPT <rfc822;netdev@vger.kernel.org>); Fri, 6 Nov 2020 12:27:09 -0500 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 824CCC0613CF for <netdev@vger.kernel.org>; Fri, 6 Nov 2020 09:27:08 -0800 (PST) Received: by mail-wm1-x343.google.com with SMTP id c9so2203594wml.5 for <netdev@vger.kernel.org>; Fri, 06 Nov 2020 09:27:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qiZHU813rW8xg+F+YCWBIt/KpRIOcYYppQ2O/7ZYftw=; b=LIykX/LIcE/R0Q2p18YaAa2MWfP8VB0B7wUc7nG9ObZD+I+bnpnIKQE4r88G8WMa+A 230e5yuBbqoj+o1yabVzpqfd/2L6Rdtue1peWWXAztY5CwlESD3HczBoEzvp+3SeOk7w tHEyT6bskbOMWSWizsxS8rnaJ+R+q1RDw6/ImL+6xUQ42mNbEXHMmGMm3/CzARCssW/f UlssTIssggeU2k3sHf1j/aqMgkadPA2awkvghqa0JtaO+Wa9HRqZEvDcCHH3glkM1a5f WpZRVCCQlyhEZ8Fw6YtX4qZKuByfDCQtXn6xG7e76/bdxZnzp6qt0BbpPnV/RJMa8QqC a+kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qiZHU813rW8xg+F+YCWBIt/KpRIOcYYppQ2O/7ZYftw=; b=duaetrH1nsz+OeMw0kxQcsABixh9fV0+ubonb3w2irmV8UHedGOpi902Ngnfo2ueYC L73UX7A4+Y5/lfKTAvUTnL6S8kKJ71oZ6rlHGGs9SVUHCCJC1xIcemdJHlogN6SCEiw3 HnxT/nVP1Phi1fb7vJwYkZzhCFOgAFPhIGQO0tSJr0sdGFTDv8j3+lyw/8nOR2ctj/Ad AlkWS7cbUbaA/JTY+NT/PeNcy/DvU15ODHtS9YvgSfvpa6VHuK/0S3QYzj2TFhkXxVz3 xi3pvuowaOh9T1k21WyAozMjkWLALUQzDtZeAhj6mUB+3O6amdEsLMgcPAqLVdFjsU9M N4FA== X-Gm-Message-State: AOAM531TyXVJmlpWmX2n/x8yVKo4mVe8M9I4j6gQRXK8PSicbo2LgkD9 nlX9r6fCjmcyImLY1MFfJyxshg== X-Received: by 2002:a05:600c:22d3:: with SMTP id 19mr666424wmg.161.1604683627213; Fri, 06 Nov 2020 09:27:07 -0800 (PST) Received: from localhost.localdomain ([88.122.66.28]) by smtp.gmail.com with ESMTPSA id z191sm3183266wme.30.2020.11.06.09.27.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Nov 2020 09:27:06 -0800 (PST) From: Loic Poulain <loic.poulain@linaro.org> To: davem@davemloft.net, kuba@kernel.org Cc: bjorn.andersson@linaro.org, manivannan.sadhasivam@linaro.org, cjhuang@codeaurora.org, netdev@vger.kernel.org, Loic Poulain <loic.poulain@linaro.org> Subject: [PATCH v2 1/5] net: qrtr: Fix port ID for control messages Date: Fri, 6 Nov 2020 18:33:26 +0100 Message-Id: <1604684010-24090-2-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1604684010-24090-1-git-send-email-loic.poulain@linaro.org> References: <1604684010-24090-1-git-send-email-loic.poulain@linaro.org> Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
net: qrtr: Add distant node support
|
expand
|
diff --git a/net/qrtr/qrtr.c b/net/qrtr/qrtr.c index b4c0db0..e09154b 100644 --- a/net/qrtr/qrtr.c +++ b/net/qrtr/qrtr.c @@ -348,7 +348,7 @@ static int qrtr_node_enqueue(struct qrtr_node *node, struct sk_buff *skb, hdr->src_port_id = cpu_to_le32(from->sq_port); if (to->sq_port == QRTR_PORT_CTRL) { hdr->dst_node_id = cpu_to_le32(node->nid); - hdr->dst_port_id = cpu_to_le32(QRTR_NODE_BCAST); + hdr->dst_port_id = cpu_to_le32(QRTR_PORT_CTRL); } else { hdr->dst_node_id = cpu_to_le32(to->sq_node); hdr->dst_port_id = cpu_to_le32(to->sq_port);
The port ID for control messages was uncorrectly set with broadcast node ID value, causing message to be dropped on remote side since not passing packet filtering (cb->dst_port != QRTR_PORT_CTRL). Fixes: d27e77a3de28 ("net: qrtr: Reset the node and port ID of broadcast messages") Signed-off-by: Loic Poulain <loic.poulain@linaro.org> --- net/qrtr/qrtr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4