Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4167681ybi; Tue, 18 Jun 2019 13:04:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJJQyG7O7Pc5/lfDHCY2AmTFqMPwc8O4wSwTLcpLYJHSmZP2D6u+6QTbJD/0BXOVN+IpKS X-Received: by 2002:a17:902:296a:: with SMTP id g97mr42049831plb.115.1560888278623; Tue, 18 Jun 2019 13:04:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560888278; cv=none; d=google.com; s=arc-20160816; b=jORzjcp1p1XSKB97UaFvdJx/ug+qWN3mGwJb7ovHkbtNfAcp90Hgcu//Xv5nfMl6nK rd1YSkHNt72niHPRsu9QZcXTbfwxrhJY2778ZMdibYStwqONoqMUrqGG3JlMl7kKkbM2 Ll9G7c3BqX5UpH5LqVDrQg8bznAW9KYd8YpRXOB8ij8nLBs2m2gfybhxWjYaRkc9YwUM k/I3lqez2M+cYRFPq1XB4r7PDYv4UROAWx0F+Gc6sGCFpuIMFc5v43DWnMEguDVEyWdz EgJwkCegxvHDsQq2vg5HJjA47+aGqhoRSGPEI0t5lckdismE+qSbz4E/dKXgcRo6jT7H ZG+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=fhXPWU7zLj+k+BGB1AOEw5gMGJmz5Uyw10nh3whmLi0=; b=g7gH95NC/qopKgUAQrLpR4ED3/0mIR61WWMKqNDnnUFolg9dVrWoiqxRUjQCMB0v4L CNWQDKZrbwJJA52zwpLXbE67spBZ+OtyruPAtt9N92f2Ru3KwDOk3J21a2RQZz6fEnwb w8h6+G8vdcn7cF9BB1uitrJH20YbRPbB8Cypt7EeqE4zqXfOZhMb2n3QbwNwLI+6mCE1 NGBcP+u7kj0vbAalNYegKXL8kCkyBUVQYnqKcaeOl2SNPdOG/oOmgzyDBQLhoI6JpFBx AP4jQM2gBZrVsoPDVuuMl7sfWdktXrPBSE+JCE9fbeMJvRFzp0N8EyDQqwolqdLoDhCQ fgYg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 19si999648pga.554.2019.06.18.13.04.23; Tue, 18 Jun 2019 13:04:38 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730375AbfFRUEV convert rfc822-to-8bit (ORCPT + 99 others); Tue, 18 Jun 2019 16:04:21 -0400 Received: from mga06.intel.com ([134.134.136.31]:64769 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730398AbfFRUEV (ORCPT ); Tue, 18 Jun 2019 16:04:21 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jun 2019 13:04:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,390,1557212400"; d="scan'208";a="160156330" Received: from orsmsx108.amr.corp.intel.com ([10.22.240.6]) by fmsmga008.fm.intel.com with ESMTP; 18 Jun 2019 13:04:20 -0700 Received: from orsmsx153.amr.corp.intel.com (10.22.226.247) by ORSMSX108.amr.corp.intel.com (10.22.240.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 18 Jun 2019 13:04:19 -0700 Received: from orsmsx103.amr.corp.intel.com ([169.254.5.135]) by ORSMSX153.amr.corp.intel.com ([169.254.12.252]) with mapi id 14.03.0439.000; Tue, 18 Jun 2019 13:04:19 -0700 From: "Gix, Brian" To: =?windows-1250?Q?Micha=B3_Lowas-Rzechonek?= CC: "linux-bluetooth@vger.kernel.org" Subject: Re: [PATCH BlueZ 0/1] mesh: Move HCI handling to mesh-io-generic Thread-Topic: [PATCH BlueZ 0/1] mesh: Move HCI handling to mesh-io-generic Thread-Index: AQHVJcjDSjBUtBqdoUSLgirFfevJ66ah1QzBgAABaTY= Date: Tue, 18 Jun 2019 20:04:19 +0000 Message-ID: References: <20190618112655.19963-1-michal.lowas-rzechonek@silvair.com>,<34B4A752-E039-4CAD-A8A7-E8CC137DC8A4@intel.com> In-Reply-To: <34B4A752-E039-4CAD-A8A7-E8CC137DC8A4@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Micha? (again) > On Jun 18, 2019, at 12:59 PM, Gix, Brian wrote: > > Hi Micha?, > >> On Jun 18, 2019, at 4:27 AM, Micha? Lowas-Rzechonek wrote: >> >> This patch enables us to implement more I/O layers, particularly non-HCI >> ones. >> >> As of Bluetooth 5.1, standard HCI commands don't allow precise control >> over mesh-related advertising, making this I/O layer very inefficient. >> Therefore, it is desirable to have an option to use a non-HCI transport >> to talk to radio transceiver, at least until Bluetooth extends HCI so >> that standard BLE Controllers achieve good performance. > > 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. > >> >> Another use case would be a non-local radio: the mesh stack can run on a >> secure device, but due to physical constraints it might need to use >> radio transceiver located at a distance, connected e.g. via LAN. >> >> Micha? Lowas-Rzechonek (1): >> mesh: Move HCI handling to mesh-io-generic >> >> mesh/main.c | 4 +- >> mesh/mesh-io-api.h | 3 +- >> mesh/mesh-io-generic.c | 203 ++++++++++++++++++++++++++++++++++++----- >> mesh/mesh-io.c | 17 ++-- >> mesh/mesh-io.h | 2 +- >> mesh/mesh.c | 189 +++----------------------------------- >> mesh/mesh.h | 4 +- >> 7 files changed, 209 insertions(+), 213 deletions(-) >> >> -- >> 2.19.1 >>