Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5224080yba; Wed, 8 May 2019 09:43:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdMYHFlbqrR3OpD+Kh/uI1UZhLusJyDezSLiQExwBwscHt5hy0T0malq1c1KR87nsi9Rrz X-Received: by 2002:a17:902:9b98:: with SMTP id y24mr29656989plp.185.1557333811542; Wed, 08 May 2019 09:43:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557333811; cv=none; d=google.com; s=arc-20160816; b=TLvODgLj/ev4KgBoCTDoMWSaZoQvXNPewDJ9x4W4kNea4QM9Vm4BSRQjSXo74WflEB +0fqfvNfynTdRG/K1+SPgi1mk1j++jmqwGC/DTvluXJIoJ/MehakRYjr7LUatsxP4ywV Eu51SWVDF517sXWb5dOR9CN9kX8V3SBB2HQvXgW9SorOS7oPZIn+rkopc5SHxgZi/B6G EzD3/8K5M8WIZAEqNWLHc320FVjq7k38Y22h0Uxhav9Y9tPCkfCL/X5EqpiC7hU+R41q G/LW0/7zM/fEN6MPbaovAvrogTYVWH9GoZT/HGbA/WJp+7HUx4E+rgfuVe7Zk6Afyy4M oSRA== 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=/Kb1lRdp3P8oVSx4bAvN8dri4e3axKmk7XxVyLuwM4I=; b=uamC8cvQLw6hfMkhyYJLha6oyfe+eax2yon/nyecfxRq7oUHUl7SDljYM/5HETACf1 RBIsnfl+vNebFGTtH1btUxPK1q/NHUvVybP/kHsm8cKjJixFzzc1dkurQLdoxg1BDFLb VRFOLtYzggkt3Q7rf4HpkTl8BQq3e0rt7bmzn4yhciRA7izPQffHLvPRRjE+gQUbz0PA 0IuGtq0+BUeTUxpuF89h5qPfvk0hfw7jp6/vNkJLozToTEy/OpO0Hm9uOgoUhsFiFemC 8kW90Ll47jLmz1bqDRZuIw1mNPPCab0di7SrkJ86VCHsyyrOA2Ko1xqE5YAhxBVforSI Xrhw== 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 co15si26027003plb.136.2019.05.08.09.43.14; Wed, 08 May 2019 09:43:31 -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 S1728511AbfEHQlk (ORCPT + 99 others); Wed, 8 May 2019 12:41:40 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:48726 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727786AbfEHQlj (ORCPT ); Wed, 8 May 2019 12:41:39 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::3d8]) (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 E826614051AFC; Wed, 8 May 2019 09:41:38 -0700 (PDT) Date: Wed, 08 May 2019 09:41:38 -0700 (PDT) Message-Id: <20190508.094138.1398128604024649557.davem@davemloft.net> To: bjorn.andersson@linaro.org Cc: aneela@codeaurora.org, clew@codeaurora.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH 2/5] net: qrtr: Implement outgoing flow control From: David Miller In-Reply-To: <20190508060643.30936-3-bjorn.andersson@linaro.org> References: <20190508060643.30936-1-bjorn.andersson@linaro.org> <20190508060643.30936-3-bjorn.andersson@linaro.org> 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 May 2019 09:41:39 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bjorn Andersson Date: Tue, 7 May 2019 23:06:40 -0700 > +static void qrtr_tx_resume(struct qrtr_node *node, struct sk_buff *skb) > +{ > + struct qrtr_ctrl_pkt *pkt = (struct qrtr_ctrl_pkt *)skb->data; > + struct qrtr_tx_flow *flow; > + unsigned long key; > + u64 remote_node = le32_to_cpu(pkt->client.node); > + u32 remote_port = le32_to_cpu(pkt->client.port); Reverse christmas tree for the local variables please. > +static int qrtr_tx_wait(struct qrtr_node *node, int dest_node, int dest_port, > + int type) > +{ > + struct qrtr_tx_flow *flow; > + unsigned long key = (u64)dest_node << 32 | dest_port; > + int confirm_rx = 0; > + int ret; Likewise. > /* Pass an outgoing packet socket buffer to the endpoint driver. */ > static int qrtr_node_enqueue(struct qrtr_node *node, struct sk_buff *skb, > int type, struct sockaddr_qrtr *from, > struct sockaddr_qrtr *to) > { > struct qrtr_hdr_v1 *hdr; > + int confirm_rx; > size_t len = skb->len; > int rc = -ENODEV; Likewise.