Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp336950ybi; Tue, 18 Jun 2019 23:57:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkFvIrfDnvP2Mxo5Zvxua6iUcRoH4rjm5P3QChZnMwzQ7LM6L3ex8SCctfcyQjijUH8WD7 X-Received: by 2002:a17:902:e30d:: with SMTP id cg13mr4960065plb.173.1560927455616; Tue, 18 Jun 2019 23:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560927455; cv=none; d=google.com; s=arc-20160816; b=cahSKI4I+W4eN9Mblnkq5lP+5rTHekKrwAIlQACIkqoYJDVRsZ8kM1zoqvA9wnDooW i8xIv2DyYZoLCaGLMYwXozuaQ97fQslEq06HeeptHYI7FN8VL7UkYFvYuHRBb0sVQRed 2ROQiUqBzZaX81VBynaUu+sGVMQLfkgEGrilUBYqbNHV6AzMwHpOI9f5Ra2ni2nl1L5W S1Uf5RamWbch7XwdMtxT8iJds9PS4Yva5Hx809pmqqzvrmwgvKgN5+FWfRPwJty/BR8f XADtMUCmPgi58ISfeTNPx3kNjW+Omk6I+0nUZoVDHdB5Ye9Hsk1QCfrm1rbWOfHeaHVk hqww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=XH2ByBGMWuV0a5BfcG9F5ydd6NKDEv/mvisyPY5vGmY=; b=ox2y3lci4Fx04LYCUH6O6CVJKW7grJgErOQ1CVKg/bA9kZbXsE+0rTTYw4h7MY9M15 O0k2fQ+UhOG47p/DTjT7NB0DmYkVcLLSxFWpTaF7ewhOK54eyzzwPraHYyt4YdqSxHOp WgDXyMHbaFmib+941MTPFdbv4+VbvPlrHTaQyHbtVo+cxia+oljXGSFctkos+AO+KZuE Hmo4/wmUhCdhhBWyry3nSzZ3KZ/tm7GxUb2S81XHDLEvUP3drAz0Vy1069l+9PRCmX/m h4ruL+jN0BjvHtCxwJG1+4QQh4vy0T+zRhAvswB217zn8pT2Ilwo3saPRAViAMmYI31y aG4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=aABDI3YQ; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-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 a94si622847pje.19.2019.06.18.23.57.05; Tue, 18 Jun 2019 23:57:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-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=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=aABDI3YQ; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730495AbfFSG5E (ORCPT + 99 others); Wed, 19 Jun 2019 02:57:04 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:40408 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725980AbfFSG5E (ORCPT ); Wed, 19 Jun 2019 02:57:04 -0400 Received: by mail-lf1-f68.google.com with SMTP id a9so11216923lff.7 for ; Tue, 18 Jun 2019 23:57:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=XH2ByBGMWuV0a5BfcG9F5ydd6NKDEv/mvisyPY5vGmY=; b=aABDI3YQWN0DaruXI/PSLJRMtVylpJ4EUeoCJbq8GlS4eCx4mIseQh8CQHAUoHeyyY NAGkWnHKFDVr5ClEguZT6MkK1oOnmly6JLGmueLoK+ryxp5HYm9LsGIDYJqu++QiXYEP A8Z4h3px8E1jgJdR0ZWkcSWKlGb3MC/t73+g3Q/yD8tNCrNHRp6aKHmhw51oWXZ4ecNa 4uhKBTqm3RXJX/j8HyXiCr7Y9fQs7YiBaj/yhTYz1ca4lXEPBOjrsRVFRlHGGJtjlYF1 XRaFSs5jnKDlNzJdMYa+JyAXL8HpNRKbrDriAeNsltpXH94CB6BiItrgAuMpqM398X9c inqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=XH2ByBGMWuV0a5BfcG9F5ydd6NKDEv/mvisyPY5vGmY=; b=izBWLdDeQ7H7OX2bs6j1cy7gdE4LJqvrtB6rVGcutRRaShm3ExYebxYKRBu71H96bv vLBBwNcaDXakATQwT5ZOuEovvVBUsea7kq7DHIsa3Pmw03+5b7wKAxqB1lUN6U7zuleB di11ii1YXVDL7VDlQV1Ivyv52EOSsR+H3dwVn9X/0zesbV20DBv7OBYL/xrtZ66poJUa DbEhOX1an2cQU0qCoeO8JsncOzAHd/oeJe2qRncDElmC3qDgSi/TFFCXsb86++R5hUwZ F0IDZurgz3hWbeVQxe5WtiWCgmQlKee6MPc7ymZjzyetdsPJJ3NRtCiXytmaq8KJwgaU zonA== X-Gm-Message-State: APjAAAUXd2XE/3bOR7wpaZI2IvREmx2OmUwa1JgT7Auu8xPKopEEfBxU 51sxKUa3m/fxVe5fe7oWDBj76Q== X-Received: by 2002:a19:6602:: with SMTP id a2mr3488274lfc.25.1560927422006; Tue, 18 Jun 2019 23:57:02 -0700 (PDT) Received: from mlowasrzechonek2133 ([217.153.94.18]) by smtp.gmail.com with ESMTPSA id b25sm2548907lfq.11.2019.06.18.23.57.00 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 18 Jun 2019 23:57:01 -0700 (PDT) Date: Wed, 19 Jun 2019 08:56:58 +0200 From: =?utf-8?Q?Micha=C5=82?= Lowas-Rzechonek To: "Gix, Brian" Cc: "linux-bluetooth@vger.kernel.org" Subject: Re: [PATCH BlueZ 0/1] mesh: Move HCI handling to mesh-io-generic Message-ID: <20190619065658.y5cjqjz764i6wkab@mlowasrzechonek2133> Mail-Followup-To: "Gix, Brian" , "linux-bluetooth@vger.kernel.org" References: <20190618112655.19963-1-michal.lowas-rzechonek@silvair.com> <34B4A752-E039-4CAD-A8A7-E8CC137DC8A4@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Brian, On 06/18, Gix, Brian wrote: > > The intent if the architecture was to allow for finer control with > > future controllers, and thus a mesh-io.c which doesn’t assume > > anything about underlying controllers, and then an *initial* > > mesh-io-generic.c which is what gets used by 4.x controllers... as > > more controllers are supported with finer tuning available, then > > mesh-io-.c can be added to the abstracted list. > > We are also talking about how to share controllers between bluetoothd > and meshd... one idea is using the MGMT interface to send and > receive specific advertisements... that would necessitate a > mesh-io-mgmt.c. However, it will also require support in the kernel. Yes, I remember that discussion, and fully agree. I think the proposed patch moves us in this direction, so that mesh-io.c indeed does not assume *anything* about underlying controllers, up to the point where mesh-io doesn't need to be aware of interface index - the mesh-io-api implementation might use whatever transport it wants. About MGMT calls (MGMT_OP_READ_INDEX_LIST and MGMT_OP_READ_INFO): I guess the idea was to allow mesh-io- to reuse this part of the code. If you prefer, I could extract this into mesh-mgmt.c and have mesh-io-generic call it. This would allow us to implement mesh-io- in the future, and have it reuse the implementation, using its own callbacks, while other I/O flavours might skip MGMT calls altogether. I'd still like to keep mesh.c oblivious to HCI/MGMT/whatever. Does that sound OK to you? cheers -- Michał Lowas-Rzechonek Silvair http://silvair.com Jasnogórska 44, 31-358 Krakow, POLAND