Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4344895ybi; Mon, 3 Jun 2019 09:21:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwcSiZTCavYm2BuZeGVtODb0j/YGAScGnMqktM8v1roCPvNBNU9ygdOrCg35cz4vxrOZhs X-Received: by 2002:a17:902:8303:: with SMTP id bd3mr30908876plb.240.1559578882061; Mon, 03 Jun 2019 09:21:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559578882; cv=none; d=google.com; s=arc-20160816; b=f/ju3szWOJj4r7pfV9zfo/do3Jm+4ApK3r6EeHsNXcgf/kef8qmRBQE8KxE4Tm9qKJ F40Ta9fKhQlnW+8RUUpUtEbH3xUFSQPVOKfL5/vlqnB4eL6TO+6kT1kdOd0O8JhaGrmt EIwVVzWqAkBNyRHn+5nSdto4Sd7MW383zRRR/wlTtSLAxH4C9h+GWxcp6SSNiZeRTOpx fUk/f8f7FcfDAidld4Bvz5E8K0EzH/RFYjvBE+s4GuF9+j4GRahHHvrCyZUxEQA+riYb ktuYsAPT9A5n2AIDJMANQaLZ+NcFr/3rMfxjj6OTFEz3/sc+xpVM1FCkPa5LrcM1facs hchA== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=8/wESDA2NzdTRgP+1sAYX54nnru8IShZN0cuzSIoEnc=; b=uIeRJJ7WQj8zmxnb5mpOKQ0cwVFwYPax4fhowE0/se5zrbo7qZkbx0z1b083oldS6q WUjisxjk2JcozMXF1YTNFXYinICaJ/QqaOs2MG8i7MVLZ7mjaJUxP8Ko7lZZubs42rRk ZFCjctVmsP0AjTlNBziJcPnR20G3ePptyNOGzFU+AxHXzZ+fbmkz6FcAZoCfWKdIBgZV c/3SvkMJVPQabyhaq5ccsPcjMz3cVm7CKLTadbfYL+IgOawRlkFJ3vESVtDL3/2qeOI9 eRjJEcEXADn6u5YakcEiXXSxObEdc5H71KZLnCdXlycIAyf21o/XPuA8kCZapUh5tC2k 6SZg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m13si2513042pgv.398.2019.06.03.09.21.04; Mon, 03 Jun 2019 09:21:22 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728974AbfFCQSp (ORCPT + 99 others); Mon, 3 Jun 2019 12:18:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34674 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726521AbfFCQSo (ORCPT ); Mon, 3 Jun 2019 12:18:44 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 75D1C3086217; Mon, 3 Jun 2019 16:18:43 +0000 (UTC) Received: from ovpn-112-59.rdu2.redhat.com (ovpn-112-59.rdu2.redhat.com [10.10.112.59]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6DF5D5D6A9; Mon, 3 Jun 2019 16:18:37 +0000 (UTC) Message-ID: <0fc29577a5c69530145b6095fa1ac1a51949ba8e.camel@redhat.com> Subject: Re: [PATCH v2 00/17] net: introduce Qualcomm IPA driver From: Dan Williams To: Alex Elder , Arnd Bergmann Cc: David Miller , Bjorn Andersson , Ilias Apalodimas , evgreen@chromium.org, Ben Chan , Eric Caruso , cpratapa@codeaurora.org, syadagir@codeaurora.org, Subash Abhinov Kasiviswanathan , abhishek.esse@gmail.com, Networking , DTML , Linux Kernel Mailing List , linux-soc@vger.kernel.org, Linux ARM , linux-arm-msm@vger.kernel.org Date: Mon, 03 Jun 2019 11:18:36 -0500 In-Reply-To: <87f98f81-8f77-3bc5-374c-f498e07cb1bd@linaro.org> References: <20190531035348.7194-1-elder@linaro.org> <065c95a8-7b17-495d-f225-36c46faccdd7@linaro.org> <3b1e12b145a273dd3ded2864d976bdc5fa90e68a.camel@redhat.com> <87f98f81-8f77-3bc5-374c-f498e07cb1bd@linaro.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Mon, 03 Jun 2019 16:18:44 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-06-03 at 10:52 -0500, Alex Elder wrote: > On 6/3/19 9:54 AM, Dan Williams wrote: > > > To be perfectly honest, at first I thought having IPA use rmnet > > > was a cargo cult thing like Dan suggested, because I didn't see > > To be clear I only meant cargo-culting the naming, not any > > functionality. Clearly IPA/rmnet/QMAP are pretty intimately > > connected > > at this point. But this goes back to whether IPA needs a netdev > > itself > > or whether you need an rmnet device created on top. If the former > > then > > I'd say no cargo-culting, if the later then it's a moot point > > because > > the device name will be rmnet%d anyway. > > OK I thought you weren't sure why rmnet was a layer at all. As I > said, I didn't have a very good understanding of why it was even > needed when I first started working on this. No problem. > I can't (or won't) comment right now on whether IPA needs its own > netdev for rmnet to use. The IPA endpoints used for the modem > network interfaces are enabled when the netdev is opened and > disabled when closed. Outside of that, TX and RX are pretty > much immediately passed through to the layer below or above. > IPA currently has no other net device operations. I don't really have issues with the patchset underneath the netdev layer. I'm interested in how the various bits present themselves to userspace, which is why I am trying to tie this in with Johannes' conversation about WWAN devices, netdevs, channels, and how the various drivers present API for creating data channels that map to different modem contexts. So let me rephrase. If the control plane has set up the default context and sent a QMI Start Network message (or the network attached the default one) and the resulting IP details are applied to the IPA netdev can things just start sending data? Or do we need to create an rmnet on top to get that working? Dan