Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4014661ybi; Tue, 18 Jun 2019 10:13:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyIjLi9YP+dImbzK48tWSaNLwo2qVMaa3pGvD48dj3L5EPyF5EQj2nXLeXKIhGFXd0x/2v X-Received: by 2002:a17:90a:2430:: with SMTP id h45mr6517040pje.14.1560878001403; Tue, 18 Jun 2019 10:13:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560878001; cv=none; d=google.com; s=arc-20160816; b=aipAtvvPPGrOlURt6f4Di2BMnNgP4iAQ7hFMrU8gPdZmT+vb4G6r8r/u6PdcNC5BNI lN4wB6TbIrK2JqruqgAkryXCq6XIv0vUsQsPwUSQphMyguzKLW1gbllazs706StQRbJ1 IZd39UUdWAP25FFw15CySEB7nqtbnepDI38X3oBiWNslyIJdMIxIvrAcjQ7iom9ip3zM FREhzXZ08/vluXyL1u0ADdOiTuf9IjYJ2MAs0pWqdnSoOsT7HYg7PR7XgNUuTVDbXJJl rEP8RVbiB6d/8QiNKFewb16AgiqQo+d1XnFKrnhQJTGeg1n6NmERwb264+NRl+X7S2ay Pn8w== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Gm6zrt3+jyOk79FjVLjqIif+2ZGmPF1/TjoosYPa/aY=; b=GAYDZvMQkL/0/45MAFY6fjncVqvYAzq51zIiE94NIXw8JCyAcUKll5RKxAt4KIpPlU 8wOwnbA3kGxRLybXgxkzPyy5xVTd1QCZ1jOliR02Ww7iV05YMtPzRVFP50J7yioY5DW2 dF9m/zEtlQ6C8q5MjoEXKOrR3Yh/jfjtOBzIpnE1/TTdcr6j/H1esL8i8ulnnC9LzILO q3GzLrKh9dJf+WC8KO5/+tFX9irc+PnC7jhfQemZoyvibdFjJaJRj77eK7Q27FtUtjX9 rq2JXOB5Ogr0tL4lwSAbUhjKHzTorhVX2wMFwmHokreTT5LEBLR5lh7gR6bmSBFl3vC/ IB9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HhgTn3B5; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 72si13643661plb.177.2019.06.18.10.13.05; Tue, 18 Jun 2019 10:13:21 -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; dkim=pass header.i=@linaro.org header.s=google header.b=HhgTn3B5; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729743AbfFRPUn (ORCPT + 99 others); Tue, 18 Jun 2019 11:20:43 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:34453 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729395AbfFRPUm (ORCPT ); Tue, 18 Jun 2019 11:20:42 -0400 Received: by mail-io1-f67.google.com with SMTP id k8so575171iot.1 for ; Tue, 18 Jun 2019 08:20:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Gm6zrt3+jyOk79FjVLjqIif+2ZGmPF1/TjoosYPa/aY=; b=HhgTn3B5frcZ87brr7+01lN2WHNxic6G3R1o8OJlYQqfp1hc1M3WllIY/XNiGPHaCI Y49KrIQF61r5gxzA3PSinDixPJnXEsEXx6srKhi+lH5frsHNq772xLo9rU0uJRQ0ebi3 3w56DiGhe4EdCPahcmsF3c9JTDGkepUtjqCViyswiVcC0HxhoXjc78KopLoqO0ENMWUL AWvZTUtqNEkFjvosSqLLdX6t7RDLdskTguOS4heP41b4rfNadXsjMO1ltzxQBUjRiV9x 3lNj2/XsHUqF5UiCjHgOaLMMf59YVbkgLlt7NZqFdjvl3iv8Wi3VgT4dH65UXvzeg9f7 8obg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Gm6zrt3+jyOk79FjVLjqIif+2ZGmPF1/TjoosYPa/aY=; b=WUnq3838wHvpzgGtQb+x2auuG03hgfio5+hIjSZc7r/O1WaZ5P2pNDaQXhFdePG0R8 frRo3uujLRqXTCaV0SBlvhcycweagdu92L0cjEgxQ9YKi1wu0Vz/G7CnQHI3hs7JSPXJ uKkGa88+ew5WZE7VtyBy4oT4VmtSOjUcYfThJrETj0TZjPEx8QQAH0qasQBa3ggx0Vc5 XNX3m2jRzU8Qm6+JAerBpiAxdimEjO+Q1zWNdKEV0kEAGoSNyrSf+We5Vp2bANrCq26A 0l9XppKYKz5QT50g2lzFPV1jpoT2mAxA3X6K5fgae99GH+50oRCrco4NxCmfMu12OnVt iZNQ== X-Gm-Message-State: APjAAAUjnFzWqnqHhPPX99KyHuV+mSyxgdnWc9bEbn4pFq/a1TvajoD5 H0GjpXG8cvqfPo9hvbio2GUk0w== X-Received: by 2002:a5d:9d90:: with SMTP id 16mr1935330ion.132.1560871241374; Tue, 18 Jun 2019 08:20:41 -0700 (PDT) Received: from [172.22.22.26] (c-71-195-29-92.hsd1.mn.comcast.net. [71.195.29.92]) by smtp.googlemail.com with ESMTPSA id h18sm12796116iob.80.2019.06.18.08.20.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jun 2019 08:20:40 -0700 (PDT) Subject: Re: [PATCH v2 00/17] net: introduce Qualcomm IPA driver To: Johannes Berg , Arnd Bergmann , Dan Williams Cc: Subash Abhinov Kasiviswanathan , 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 References: <380a6185-7ad1-6be0-060b-e6e5d4126917@linaro.org> <36bca57c999f611353fd9741c55bb2a7@codeaurora.org> <153fafb91267147cf22e2bf102dd822933ec823a.camel@redhat.com> From: Alex Elder Message-ID: <850eed1d-0fec-c396-6e91-b5f1f8440ded@linaro.org> Date: Tue, 18 Jun 2019 10:20:39 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/17/19 7:25 AM, Johannes Berg wrote: > On Mon, 2019-06-17 at 13:42 +0200, Johannes Berg wrote: > >> But anyway, as I alluded to above, I had something like this in mind: > > I forgot to state this here, but this was *heavily* influenced by > discussions with Dan - many thanks to him. Thanks for getting even more concrete with this. Code is the most concise way of describing things, once the general ideas seem to be coming together. I'm not going to comment on the specific code bits, but I have some more general questions and comments on the design. Some of these are simply due to my lack of knowledge of how WWAN/modem interactions normally work. First, a few terms (correct or improve as you like): - WWAN device is a hardware device (like IPA) that presents a connection between AP and modem, and presents an interface that allows the use of that connection to be managed. - WWAN netdevice represents a Linux network interface, with its operations and queues, etc., but implements a standardized set of WWAN-specific operations. It represents a logical ' channel whose data is multiplexed over the WWAN device. - WWAN channel is a user space abstraction that corresponds with a WWAN netdevice (but I'm not clear on all the ways they differ or interact). - The WWAN core is kernel code that presents abstractions for WWAN devices and netdevices, so they can be managed in a generic way. It is for configuration and communication and is not at all involved in the data path. You're saying that the WWAN driver space calls wwan_add() to register itself as a new WWAN device. You're also saying that a WWAN device "attaches" a WWAN netdevice, which is basically notifying the WWAN core that the new netdev/channel is available for use. - I trust that a "tentative" attachement is necessary. But I'm not sure what makes it transition into becoming a "real" one, or how that event gets communicated. Some questions: - What causes a new channel to be created? Is it initiated by the WWAN device driver? Does the modem request that it get created? User space? Both? - What causes a created channel to be removed? - You distinguish between attaching a netdevice and (what I'll call) activating it. What causes activation? - How are the attributes of a WWAN device or channel set, or communicated? - Are there any attributes that are only optionally supported, and if so, how are the supported ones communicated? - Which WWAN channel attributes must be set *before* the channel is activated, and can't be changed? Are there any that can be changed dynamically? And while the whole point of this is to make things generic, it might be nice to have a way to implement a new feature before it can be "standardized". Thanks. -Alex PS I don't want to exclude anybody but we could probably start a different mail chain on this topic... >> driver_dev >> struct device *dev (USB, PCI, ...) >> net_device NA >> net_device NB >> tty TA >> ... >> . . .