Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6817706ybi; Wed, 29 May 2019 13:45:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtk5fue8hp24CBimP0Rc/rn5mtDGjIhlcy+N1PUM02D4Hr62BEC9+HPJe+hDpAa7AnozNc X-Received: by 2002:a17:90a:22ea:: with SMTP id s97mr6269306pjc.39.1559162714907; Wed, 29 May 2019 13:45:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559162714; cv=none; d=google.com; s=arc-20160816; b=T6wRMurh6HvMHUqt719gSBk8LcoDZ8jWV9etbgz8dMAC895h7TBDg6QONL1wj88e7u LGfd18COGQQ4waeD9kuqLY3Xzho/qvhEZcSlhoC43ZT9c/jvdf2k/dml+8XjK7DsnEt9 Hp+WRXEc4nUpnDDutPtD/VXs0TDy1Kr3zFgNHRzeQ8NoyOlwsFQrIIchD2u/igt7/nh/ 56t1qAcbQ4ut7v0+5bFHvmXwvpf7Ep3i+eMWWOK329yFI98rwr4sdoKA5RZCqqDZhaQH 4brxoY2S0iRsaATmQuN/25JKahWjq5dx1kRfyj4Asg0zXtWFsUKrlgdGcAI2EXUFLanc KOUQ== 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=VZGSPRNTu5KLWtlJIz9+NTNedpNZDMEiLUXIhHi/rWo=; b=KPGNDWlevsc8YukwXPo26zxGNkvkzmej+fY/yr1+dQY6MmaejTRQoAaQgr/udphPIv KEgm2ayN3wlstiq/7f1xz+2zmCmuOgiCiwkS2PB+/EsFpbznPvmbIwloYJEZUx72SzF9 BhLuCZ4mEKW9lWo+SW19KoDevj9sP7Qxpxq1vwmszsdV98ONxYIG0Sf9M3T9Bc/MBoRB GdDFN3sMOUAZ3DQh9hlsRiaJWbXr90rjfKRglFeYjTMhY4XmUdYB0OtPY1oA0yIAgTZ6 mPFbkgNtVlTVFIDOvlAAHC3syKxwaHq55SJbEdLtXV1r9nBGX5ujHp5h4arvFR++vTHF i4Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DFbsdDwm; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1si826601plb.36.2019.05.29.13.44.57; Wed, 29 May 2019 13:45:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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=@gmail.com header.s=20161025 header.b=DFbsdDwm; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726464AbfE2UoT (ORCPT + 99 others); Wed, 29 May 2019 16:44:19 -0400 Received: from mail-oi1-f177.google.com ([209.85.167.177]:45661 "EHLO mail-oi1-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725990AbfE2UoT (ORCPT ); Wed, 29 May 2019 16:44:19 -0400 Received: by mail-oi1-f177.google.com with SMTP id w144so3189872oie.12; Wed, 29 May 2019 13:44:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=VZGSPRNTu5KLWtlJIz9+NTNedpNZDMEiLUXIhHi/rWo=; b=DFbsdDwmsd0Y+1s18SvJcNDWqIMcHGOm8RcO8xcvmcnhZt+KyvgtGVtnxQfv8053AT sLPl6aSTS0osIRzIiuYXjoX9SCfSnnz/B+L0B5tw/8LPvCtPoYgDCLutSq7703WRYL4C xGpuHnKn32bfCxn4xxLwxcQa7YY8d0RGekfG8hZ3Nyxs7PL86ACULL2wNKX5ls8DqwMW bIQNGOHun1S6lSl2mkyEs5D5ULBslY9aVA2uzdKoS2AN4JGW6CrcJalLJAUXdDx8t/eh MG2RPQsdlfZk8SZbAUKRElFk7D2cguy4CCzTuuiUxnyuMJPITZp2NAxvHYQzGKkmVx16 boZg== 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=VZGSPRNTu5KLWtlJIz9+NTNedpNZDMEiLUXIhHi/rWo=; b=IOzYgKdF2e/hM0K1PuXk4rza9bD8wOh4Y9xgaJR7Nzc3EdflqN4ZAtRlgYDtQgFgqt GmJ5wa6f9yjNly0gqAQq84q3cVhMh1WZy+SLz1XMugx/lBLCAG0ERIAbn510/GGjYGxJ uDsB2kKCWXG1sNh5Bhhq94Tb2B8AzrfToHot2qJH8F0qFnRbFKVx4OfeduyaXY4qeRVK ugOvJNlDQ4GtOSQy+MFo5/YkM+xxokFOcSQEV+xAQPOd70mNqdc+nE3errGmW9agj2mb vfDxkjDsvM8oc2j6SQn8Fl9KArgu4CxMZS4M+6jvZz3C/OEDQ1U24cGNhaoOz3hejft+ MMKQ== X-Gm-Message-State: APjAAAW5y3v29Pv91H3+5MLGWaXYwgq3O3rvWHTSC2/9vEcmbW7140c5 0gGxYMi2/XygoqYemBL/HJk= X-Received: by 2002:aca:3149:: with SMTP id x70mr123700oix.97.1559162653523; Wed, 29 May 2019 13:44:13 -0700 (PDT) Received: from [192.168.1.249] (cpe-70-114-247-242.austin.res.rr.com. [70.114.247.242]) by smtp.googlemail.com with ESMTPSA id p64sm224498oif.8.2019.05.29.13.44.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 May 2019 13:44:13 -0700 (PDT) Subject: Re: cellular modem APIs - take 2 To: Johannes Berg , Marcel Holtmann Cc: netdev@vger.kernel.org, linux-wireless@vger.kernel.org, Subash Abhinov Kasiviswanathan , Dan Williams , Sean Tranchetti , Daniele Palmas , Aleksander Morgado , =?UTF-8?Q?Bj=c3=b8rn_Mork?= References: <662BBC5C-D0C7-4B2C-A001-D6F490D0F36F@holtmann.org> From: Denis Kenzior Message-ID: <8b6b6174-7de4-b9a9-242b-765da647402e@gmail.com> Date: Wed, 29 May 2019 15:44:12 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Johannes, > > After all, I'm not really proposing that we put oFono or something like > it into the kernel - far from it! I'm only proposing that we kill the > many various ways of creating and managing the necessary netdevs (VLANs, > sysfs, rmnet, ...) from a piece of software like oFono (or libmbim or > whatever else). I do like the concept of unifying this if possible. The question is, is it actually possible :) I think Dan covered most of the aspects of what userspace has to deal with already. But the basic issue is that there's a heck of a lot of different ways of doing it. > > Apart from CAIF and phonet, oFono doesn't even try to do this though, > afaict, so I guess it relies on the default netdev created, or some out- > of-band configuration is still needed? Actually it can. We can drive modems which provide only a single serial port and run multiplexing over that. So we fully control the number of control channels created, the number of netdevs created and even create/destroy them on as needed basis. And these netdevs can be PPP encapsulated or pure IP or whatever else. Regards, -Denis