Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4669429ybi; Tue, 11 Jun 2019 10:25:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzA3DPWL1HHpqAun4Lhoh9QopiousykKe6sUvMdMVZxh6knJtN795L+/NURBH2OkkTkn4D X-Received: by 2002:a17:902:3a1:: with SMTP id d30mr78912358pld.41.1560273927488; Tue, 11 Jun 2019 10:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560273927; cv=none; d=google.com; s=arc-20160816; b=hKh57AGbFCMvly0YCd/5W6ZUcP7cNxqJVJnBqVwVZzW4V7ZKKJ3BhlOtED6dwzInHU /aHo60L0Rtq1h0Ig0qv3C6JUBNACsSVpyFK7mJhM4XXz+s/e+/yeAqseIMjtWqwg9XFp UCzI6uWNpBTIPVzWOTFHwuzbL9cZrbZAlAFY7eeyucYfiJBS4QSyIffLL2I73Gt5wKd9 KznORkGUT8Pw+gkaq3YT660B/9DpkP/LgLI1oyPwma6N65PUOoeUPRwwz9inrIa2XKYO pFNv3dqZefZpiPMEtDcSBKAVWPccX6mjLfkR3zuVXNN5LrCxvcEy5otnWk06lcs68FUP Nsig== 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=OpiGJZd25scpUCnz9hdOQVRWxER6Ieb+sur8EKDI/RU=; b=BoC1vBXL9JP7U1Gxea4RDKG0BlmVAZixA9YkiP7SPDqnOohvmj4elFmcaUNR7QFOyt sGu0X26WL7kxQlV/a7Fio7bgDjLTp6zBUqjN5toO5ByK672kVJFl4eVAE6TCg2HgJ0st M235LkNfisePTavm3O/PROkIJJ3bQ2+OouaM/1PoLwt8yzFdOpi5sGA31N0rOSxa7nQN +tOc+p6u4vCYhPnh1cNrl3nEvvPGuXkN5HvOpDUeC1fsC6qpk0lNmyCVgFvt3jTVyzQW DtfEp4DD4p2wVLyEwSfFr01yubzEubXolMYDh6L6kTQBBiVF0n6Wd6XH93cJT4EPicJ9 OAyw== 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 v1si2871074pjk.82.2019.06.11.10.25.11; Tue, 11 Jun 2019 10:25:27 -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 S2406137AbfFKRXQ (ORCPT + 99 others); Tue, 11 Jun 2019 13:23:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33460 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406105AbfFKRXL (ORCPT ); Tue, 11 Jun 2019 13:23:11 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BBA097573D; Tue, 11 Jun 2019 17:23:05 +0000 (UTC) Received: from ovpn-112-53.rdu2.redhat.com (ovpn-112-53.rdu2.redhat.com [10.10.112.53]) by smtp.corp.redhat.com (Postfix) with ESMTP id 59CCA5DE86; Tue, 11 Jun 2019 17:22:59 +0000 (UTC) Message-ID: <153fafb91267147cf22e2bf102dd822933ec823a.camel@redhat.com> Subject: Re: [PATCH v2 00/17] net: introduce Qualcomm IPA driver From: Dan Williams To: Subash Abhinov Kasiviswanathan Cc: Arnd Bergmann , Johannes Berg , Alex Elder , abhishek.esse@gmail.com, Ben Chan , Bjorn Andersson , cpratapa@codeaurora.org, David Miller , 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 , syadagir@codeaurora.org Date: Tue, 11 Jun 2019 12:22:58 -0500 In-Reply-To: <36bca57c999f611353fd9741c55bb2a7@codeaurora.org> References: <380a6185-7ad1-6be0-060b-e6e5d4126917@linaro.org> <36bca57c999f611353fd9741c55bb2a7@codeaurora.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.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Tue, 11 Jun 2019 17:23:11 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-06-11 at 10:52 -0600, Subash Abhinov Kasiviswanathan wrote: > > The general plan (and I believe Daniele Palmas was working on it) > > was > > to eventually make qmi_wwan use rmnet rather than its internal > > sysfs- > > based implementation. qmi_wwan and ipa are at essentially the same > > level and both could utilize rmnet on top. > > > > *That's* what I'd like to see. I don't want to see two different > > ways > > to get QMAP packets to modem firmware from two different drivers > > that > > really could use the same code. > > > > Dan > > qmi_wwan is based on USB and is very different from the IPA > interconnect > though. AFAIK, they do not have much in common (apart from sending & > receiving MAP packets from hardware). That is correct, they are very different drivers but as you state they send and receive MAP packets with the other end via some closer-to- hardware protocol (USB or GSI?) than QMAP. rmnet should handle muxing the QMAP, QoS, and aggregation and pass the resulting packet to the lower layer. That lower layer could be IPA or qmi_wwan, which in turn passes that QMAP packet to USB or GSI or whatever. This is typically how Linux handles clean abstractions between different protocol layers in drivers. Similar to some WiFi drivers (drivers/net/wireless/marvell/libertas for example) where the same firmware interface can be accessed via PCI, SDIO, USB, SPI, etc. The bus-specific code is self-contained and does not creep into the upper more generic parts. Dan