Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp26070pxb; Wed, 4 Nov 2020 13:25:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJzWThE1l7kB9FHPW4HSx8GT5TVXZSLvbSqQf0eciAdsUuK1AZHgc0DQ6XX06j3pHR6Z8uP/ X-Received: by 2002:a05:6402:181a:: with SMTP id g26mr776955edy.8.1604525104506; Wed, 04 Nov 2020 13:25:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604525104; cv=none; d=google.com; s=arc-20160816; b=w0F/V11GwelX0/B2KfybfF47E0ME3Kg9sxH27pesei7XvhuHBbjWyBw4RxPl8F3SJq hxOiHF3EzKz521V4P6HVCjF4Do2Pxot/gZepedqv6Hp+itik9GFzeqQ6Q+ZpB6vSC7hh uYS9vhNcMtcyKZDiPnIhqc6MrTbjcKkUYlIqQLqhSKPGnvKMD6+27NjAFqpjuLb9mrM4 S9h9SjdowBMpKgCSva9QBOF1B9MbwHnhAu4U7z4TE8UUayT/pLCv47Mm1GWZ8Wuwrv0G AUy7b0sNNMD7GfUeFiFTIJrK19sBAXcR+5b+ZTtIEdfohc/85ppgFpwi9/7zl270r7Kw RKaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=eE9d8nlvVO8qmuHS7py/a6wYJyKs26M0XqX6HszSxm0=; b=Skna/K4xbrc05/i0CfH+sEjwyVdim6t2V9f94RdGQ3i8ybW269EG4gxOWORRAcg4Cf Y3ILtJ4ez/ZG61kgj6PqxlEa0eJyv2UfVyQqg2cbYFdpOtTt7Rl6F2A+CvHhRWD2MPLl aGPhuuD2pqLtjczJElLPqwUAY/1/Zi2+hUNYyi6FvOClzkxNSDiu7IJiCcLGeCPqGqhF 81T+DlDrh6bVrtdsr3ITk5MjgVckh5FKPRJj2iN4m767NsKdJMxHC0FDNbJ41ONBn+Ox UXk3RCNmSHyuYhRz7PYhuG9qWNN2m8pxrNnOAq0XkwfaNIhmdtK7vY0eQr8lbTid1ZTI 1GVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=byJEcqDd; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id a2si2305234edn.504.2020.11.04.13.24.25; Wed, 04 Nov 2020 13:25:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=byJEcqDd; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 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 S1731431AbgKDVDb (ORCPT + 99 others); Wed, 4 Nov 2020 16:03:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726969AbgKDVDa (ORCPT ); Wed, 4 Nov 2020 16:03:30 -0500 Received: from mail-oi1-x244.google.com (mail-oi1-x244.google.com [IPv6:2607:f8b0:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83FFCC0613D3 for ; Wed, 4 Nov 2020 13:03:30 -0800 (PST) Received: by mail-oi1-x244.google.com with SMTP id u127so23663238oib.6 for ; Wed, 04 Nov 2020 13:03:30 -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=eE9d8nlvVO8qmuHS7py/a6wYJyKs26M0XqX6HszSxm0=; b=byJEcqDd9u+qktRPBX6NTjgMVgXV21bvpc72G0WemN4Nv9FGciNIw+cXuA1/wX/sDE lINxZoW1cHkIiIYJ9Fov1/8VRxKLYHll2jxHDFzNMRy8GcqPKcWiNq6pjtSXRfUnMmDZ v412IVgRsheqXM1X4iwtD0q9NjP+Nq9obIhh362eINrQCh81wmPmSgHSID0wFOGxUtb7 ZzGHpFtCINo58L4Zg9dLJn/4E5uTEFfBXaCE3HaiqEHpXsrLnSV2n7sss8EowPyYLV1Y MNeDNZOdqWP0aZG1H3DoqUx8XHpm1O0zC4GNAwN84AWm1vsVTyRyZqDzM4XXiVQuCPIN NiHw== 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=eE9d8nlvVO8qmuHS7py/a6wYJyKs26M0XqX6HszSxm0=; b=eQf6rEOlmjSNiy1C+XsS9SPyWhIuAeyPwqxHVxCG5hkaxCgiD18uarmgrovOJLQ5BR 7+Ct60YTm852w+FdJG7aLI2djOGvXaScBRsGTRtXwLy+UG2NIPYBNOe13KViyPkCstsy AmEKV/EuKuOSOMdKBJMI4KsFSKZ8frlQnmgiuSsQY0uXNkMLII5C7wQH1OLQ/8EM+VcS mwT827vV2s6/e3rI8rgOx4Vr6a+J/Mn7QgMo4IOvmvU5BXtepqc7dm8M9Rn+GdKkj6XT MuVdFIXId8BJBSA6rhkeA8hUuN2pIY3qFFsmfN8GzP+AaU3WjOEFZwbX5Lp0TjuYaPRU FpzA== X-Gm-Message-State: AOAM530Gi3TSPXOskDlN+fzTpyN+XN6s0wghD1wNgYwYyEA1jdqA9js+ R4fcxkOKrk0ITNSYrQ0XinntiPKJ/3++UD0Y0U4= X-Received: by 2002:aca:c70b:: with SMTP id x11mr3895019oif.58.1604523808488; Wed, 04 Nov 2020 13:03:28 -0800 (PST) MIME-Version: 1.0 References: <20201103073032.4532-1-sathish.narasimman@intel.com> In-Reply-To: <20201103073032.4532-1-sathish.narasimman@intel.com> From: Luiz Augusto von Dentz Date: Wed, 4 Nov 2020 13:03:17 -0800 Message-ID: Subject: Re: [Bluez PATCH] profile: GOEP Set IMTU to 32k To: Sathish Narasimman Cc: "linux-bluetooth@vger.kernel.org" , Chethan T N , ravishankar.srivatsa@intel.com, Sathish Narasimman Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Sathish, On Mon, Nov 2, 2020 at 11:30 PM Sathish Narasimman wrote: > > OPP-RX Throughput is low Due to Low MTU value in case of OBEX > over L2CAP. Changing the default L2CAP MTU from 672 to 32767. > > Signed-off-by: Sathish Narasimman > --- > src/profile.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/src/profile.c b/src/profile.c > index 5e460b639..99a5e1a4a 100644 > --- a/src/profile.c > +++ b/src/profile.c > @@ -41,6 +41,8 @@ > #include "profile.h" > #include "service.h" > > +#define BTRX_MTU 32767 > + > #define DUN_DEFAULT_CHANNEL 1 > #define SPP_DEFAULT_CHANNEL 3 > #define HSP_HS_DEFAULT_CHANNEL 6 > @@ -1358,6 +1360,11 @@ static uint32_t ext_start_servers(struct ext_profile *ext, > l2cap->adapter = btd_adapter_ref(adapter); > ext->servers = g_slist_append(ext->servers, l2cap); > DBG("%s listening on PSM %u", ext->name, psm); > + if (g_strcmp0(ext->name, "Object Push") == 0) { > + if (!bt_io_set(io, NULL, BT_IO_OPT_IMTU, BTRX_MTU, > + BT_IO_OPT_INVALID)) > + DBG("ERROR bt_io_set Unable to set MTU"); > + } > } > } > > -- > 2.17.1 Perhaps it would be better to have the MTU added to RegisterProfile options so any user of this API can set the Input MTU. -- Luiz Augusto von Dentz