Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4210895ybi; Tue, 18 Jun 2019 13:56:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzC2wBOmGLdcDfNYGnl9yPgh0bouU4g9oVf9Vhd7WS27D1rQ9ZxsyeOvVd5vEiDCKskWJ+5 X-Received: by 2002:a63:1622:: with SMTP id w34mr4450224pgl.45.1560891399116; Tue, 18 Jun 2019 13:56:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560891399; cv=none; d=google.com; s=arc-20160816; b=t6UCtsYrU4NqUivuPWdIFUEUUFbFf5Eme4tz9vUe9y/EwZXUveKopxzwBnbkH39AoO X7Cd2l04WnFEc43U6hNzXj0Ho4m6+svvSwTDaLPLaypxJu+jMinNhpQS0Q4N0jII0rT7 pXG3G0XM+yNZ5f0lnKeN/4/nIDH9TrLTG5qGSCL6XobLzc4cvXlLPFX3/9fFBcpVmXZF t0/kok8gsN25R5utW1GXltX5C+D/cXUCG1kvtJ+phOmwbyhyAomNl3ijkCADy0o/pPAe jkh8NDacaOefze//PsgOUsGyexHjnw4TJL9KK2c8CPdbBaGzB+DjhoW/bMheDkOpFLWA UfzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=z9lpWmnxIWG+yn/Q8Kt9kwRJEp4w7nP1RsHOAevW2cM=; b=EYjOSUY/cfPeD4AdDYvewZBZrW3dOh50DUxj0e6NYeNvaxSQHXUeqbpAPojmkG1dcu 8Auoy+B4GA1p6hQbGMUps1DnBvH9nI8KpFd3+sHRkuyadOHforDuVJDFRj+APtPdnREZ S9/ysxLVb5rqsYHT6v3ySsIALuArBXDoK2BYFzM1/+ptMRSXhTKjeB6lTs0+2TqoEo2+ WoBej3+Rr74+3unvAKuXRxOywZhwFUwvHPLhsMxjVuArZTirjEsBx4Wq5EyyS/868WDF KVJ4KHpzW8JmCS0J1bOhg8Zz6iLCbhQomr3mljIv8M2A0hJq0VUswhLvzSTtY1k3dBx2 fyrw== 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 o11si3322452pjb.30.2019.06.18.13.56.23; Tue, 18 Jun 2019 13:56:39 -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 S1731066AbfFRUzo (ORCPT + 99 others); Tue, 18 Jun 2019 16:55:44 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:40707 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730696AbfFRUzn (ORCPT ); Tue, 18 Jun 2019 16:55:43 -0400 Received: by mail-qk1-f196.google.com with SMTP id c70so9510297qkg.7; Tue, 18 Jun 2019 13:55:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=z9lpWmnxIWG+yn/Q8Kt9kwRJEp4w7nP1RsHOAevW2cM=; b=Lx9Lm9CcnfKktj4As+zPwaFTt0OTeUrHAf77gSVInDvmQltvUYWM3kQAEdI1Lqq7W7 OQDotAMRlw26NGgIuudnjT+8LbOlXA+ru+sEaiyQLRx0JGfAAShJK59tKGq9VdeJk5x4 zq8iDS2x85Fb8QdyGBMXYlR7N0lh9EOoc3n+5MSyVWtXs5dGuH6BLRuWQNgpAQIZm/gc 77FJvxVtldaSQTzY3OPZslDGK0MZx471Sq2tvpUIv/UZ7qyw44E717BDpr0oVBHvP4Q4 gF2rSqXsx+5383F41tcTRr2t2rwWW1zJH0xkGokB0+iPQyYQ0X2/zOrgxI7U4i6pD8NS RiAg== X-Gm-Message-State: APjAAAXTg+BMEMuYycDGfCEsKcBMNRAJVt352Tls34f7k2xXrGWQp8X7 5AZNRh79EcBpXvO6BcBSaHTzdqGsGWEzcEppbSM= X-Received: by 2002:a37:a4d3:: with SMTP id n202mr8318000qke.84.1560891341993; Tue, 18 Jun 2019 13:55:41 -0700 (PDT) MIME-Version: 1.0 References: <380a6185-7ad1-6be0-060b-e6e5d4126917@linaro.org> <066e9b39f937586f0f922abf801351553ec2ba1d.camel@sipsolutions.net> <613cdfde488eb23d7207c7ba6258662702d04840.camel@sipsolutions.net> In-Reply-To: <613cdfde488eb23d7207c7ba6258662702d04840.camel@sipsolutions.net> From: Arnd Bergmann Date: Tue, 18 Jun 2019 22:55:23 +0200 Message-ID: Subject: Re: [PATCH v2 00/17] net: introduce Qualcomm IPA driver To: Johannes Berg Cc: Alex Elder , abhishek.esse@gmail.com, Ben Chan , Bjorn Andersson , cpratapa@codeaurora.org, David Miller , Dan Williams , DTML , Eric Caruso , evgreen@chromium.org, Ilias Apalodimas , Linux ARM , linux-arm-msm@vger.kernel.org, Linux Kernel Mailing List , linux-soc@vger.kernel.org, Networking , Subash Abhinov Kasiviswanathan , syadagir@codeaurora.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 18, 2019 at 10:36 PM Johannes Berg wrote: > > On Tue, 2019-06-18 at 21:59 +0200, Arnd Bergmann wrote: > > > > From my understanding, the ioctl interface would create the lower > > netdev after talking to the firmware, and then user space would use > > the rmnet interface to create a matching upper-level device for that. > > This is an artifact of the strong separation of ipa and rmnet in the > > code. > > Huh. But if rmnet has muxing, and IPA supports that, why would you ever > need multiple lower netdevs? From my reading of the code, there is always exactly a 1:1 relationship between an rmnet netdev an an ipa netdev. rmnet does the encapsulation/ decapsulation of the qmap data and forwards it to the ipa netdev, which then just passes data through between a hardware queue and its netdevice. [side note: on top of that, rmnet also does "aggregation", which may be a confusing term that only means transferring multiple frames at once] > > ipa definitely has multiple hardware queues, and the Alex' > > driver does implement the data path on those, just not the > > configuration to enable them. > > OK, but perhaps you don't actually have enough to use one for each > session? I'm lacking the terminology here, but what I understood was that the netdev and queue again map to a session. > > Guessing once more, I suspect the the XON/XOFF flow control > > was a workaround for the fact that rmnet and ipa have separate > > queues. The hardware channel on IPA may fill up, but user space > > talks to rmnet and still add more frames to it because it doesn't > > know IPA is busy. > > > > Another possible explanation would be that this is actually > > forwarding state from the base station to tell the driver to > > stop sending data over the air. > > Yeah, but if you actually have a hardware queue per upper netdev then > you don't really need this - you just stop the netdev queue when the > hardware queue is full, and you have flow control automatically. > > So I really don't see any reason to have these messages going back and > forth unless you plan to have multiple sessions muxed on a single > hardware queue. Sure, I definitely understand what you mean, and I agree that would be the right way to do it. All I said is that this is not how it was done in rmnet (this was again my main concern about the rmnet design after I learned it was required for ipa) ;-) Arnd