Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4991356ybf; Wed, 4 Mar 2020 15:02:52 -0800 (PST) X-Google-Smtp-Source: ADFU+vuOO/0qCfPW0WYUf7RolzDVZQDZ60POtaV9BLg3pTeeAC+JmCl6XpOLfOU6QO1bVXhn/7ZC X-Received: by 2002:a9d:73d1:: with SMTP id m17mr4230029otk.19.1583362972608; Wed, 04 Mar 2020 15:02:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583362972; cv=none; d=google.com; s=arc-20160816; b=t2VXc6G7LRramFCna7lVxKmNWdmjYKvscOYiEjLlKB23x2MDiwZt8+Z1Qn91myOirw IFxAh345OKXjUyInwkAm22Rx72AIyK4Vep+kS1V+wNO5MW527sfLHTZuP5md7mLAeXbe MwmTYOGDS6lETAJPJMetlmL2EVJOqHPS+461EpYkV6PHoXC3028YUig2zCh+NLK8EyPn nDR7MXXQWYEz8b7hyPpiNjyvf0GTz1XwB8mIRUTTB27gGkLvvE5T+cz9+u+RHQoypJAO b3MWYVmWUWa8V644JaT0i+mIcw42ihNE4sO8C6wtGuIJ8pNcbuJBcU80DJkzDlEqDF5t FNSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=H+sBP9+yWP2sbq7Zi/k4IQQIQXenXjxeuqmGuRXtyDU=; b=tzoD9vA8UZkXmAo+giqZe36+Ve3g6Xnbk3bW0fFf1F/q/XHAF2OGq0fQALsXpZCWPh l5QdC3iA1ROH7AnhmJBSnFcCNGQVdCb0gJUpT+oOZIdGAQPMVu1LtVwF98b6/qh1gDm0 +jrQpGf+Ex4v0bVCVx1G7KtY+HxrjgID3n104Kg2EGW0y8SbGKmANAvnwx5onTch9rS/ mmTkd6FrWb8f8rK0GY7tfVk7/MjB9qiWm+rI+ptYwzBiO1tHgRtFg4074Yu521WcYdi+ qgX82zf9ly8vl3/M763NCAPAtSyhbkFZGYNNBZHqxVyOm1wW3ub/S5Prx+Ls/E+v4J+Y +C1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mvO8MEUr; 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=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 h203si1984296oif.3.2020.03.04.15.02.26; Wed, 04 Mar 2020 15:02:52 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=mvO8MEUr; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388312AbgCDXCZ (ORCPT + 99 others); Wed, 4 Mar 2020 18:02:25 -0500 Received: from mail-oi1-f169.google.com ([209.85.167.169]:41806 "EHLO mail-oi1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387931AbgCDXCZ (ORCPT ); Wed, 4 Mar 2020 18:02:25 -0500 Received: by mail-oi1-f169.google.com with SMTP id i1so3920265oie.8 for ; Wed, 04 Mar 2020 15:02:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=H+sBP9+yWP2sbq7Zi/k4IQQIQXenXjxeuqmGuRXtyDU=; b=mvO8MEUrSTL/jIJPrzFAVjuYWHJ8auSin8NDlMGp3qai8SVQgTaIjOtAaQ/DGGZ+qB d9q3P2zZ/nsLenRam8mMBrzHbpm9C5FCfRN7yEKwLsQkJY1qiOf0AqKBbwNVDAh/1AIf bgVtDAPqZgwpUgK3HNlXi32bXgF7gvyqqRy4XCZW61+2SaMT5vK6gSdlv8bnGbH/1gQC JgFz+hg09mSJs8PS0COCJDnmTJTtUvi8MOTfMksxVTuo/dXuCG3F4i797b3DEgQaFHB0 DzDZjSMJslSpJxX9wQLKyxNaJ0Esb3JlbLKRBtLmUHTLoOMRO8VZuyDgnRjqZvxRnTCO 68pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=H+sBP9+yWP2sbq7Zi/k4IQQIQXenXjxeuqmGuRXtyDU=; b=S4hhCxzDKZ+65sb1wWSyLarU7Kvce+Gzq1ztB/ViJBdXbGE4SVX+r8AYIzRq2BwDuz /YJTzNDD1teM5e3Q/SGaqm8oOCbfsYzFmDQPfrOoWH1ewylB7+u02ILHbVdhgoFDaK5a 0X+KSN25LfrssH4RJc2L9NxYazKVqdSJQfnwE9q8WRb2U9ETT3hYqFiU2M7DiNgvmASF YOrp5riYegQdjiwcsfOogxYEnvsqvvcRjZ/iuC25rqWL+BqSJ2jrHdLAagNH4Nca4pBT v0104dDV9uxKgzg82WgHEs6Fh/lMru8F3BkytwJ/e6z/NjE+VE9lTG44AbhqKchY2WcL c0ww== X-Gm-Message-State: ANhLgQ3QEWf4OyZehmIhJLw8jvFsBttsYmFFt/h0vDldu/9Yoyq/Yrem r/Jwum8jnB8NriU/hePy+Xkw8jqbsIsKvh5qTvkN5JjT X-Received: by 2002:a54:4801:: with SMTP id j1mr3540939oij.108.1583362944013; Wed, 04 Mar 2020 15:02:24 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Luiz Augusto von Dentz Date: Wed, 4 Mar 2020 15:02:12 -0800 Message-ID: Subject: Re: Get negotiated ATT MTU? To: Emil Lenngren Cc: Jamie Mccrae , Bluez mailing list Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Emil, On Wed, Mar 4, 2020 at 2:41 PM Emil Lenngren wrote: > > Hi Luiz, > > Den ons 4 mars 2020 kl 20:44 skrev Luiz Augusto von Dentz > : > > > > It completely transparent to D-Bus, so if we do expose the MTU it > > > > should probably be reporting the biggest MTU of all connected channel, > > > > > > Is there ever any reason for one application to have more than one ATT > > > bearer? I thought the idea of EATT was to allow one ATT bearer per > > > application. > > > > EATT is meant to allow multiple outstanding requests, it probably > > would not escale if we would add an API to have a bearer per > > application so we just use the extra bearers as a pool. > > I just read the 5.2 overview and 5.2 specification again and I see now > that the overview suggests that a pool of bearers should be used, as > you mentioned. So yes in that case the maximum ATT_MTU of the bearers > seems reasonable to report (if they for some reason would differ). But > by having a pool like this, I hope implementations will make sure that > multiple Write Without Response values or notifications from the same > application are sent on a single bearer, to avoid reorderings. Commands don't need a response so in theory one should just use the unenhanced bearer or the first one EATT bearer regardless, in the current implementation I just pick the first bearer that allow sending all the data in one shot given that the MTU can be different. -- Luiz Augusto von Dentz