All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez PATCH] profile: GOEP Set IMTU to 32k
@ 2020-11-03  7:30 Sathish Narasimman
  2020-11-04 19:22 ` [Bluez] " bluez.test.bot
  2020-11-04 21:03 ` [Bluez PATCH] " Luiz Augusto von Dentz
  0 siblings, 2 replies; 3+ messages in thread
From: Sathish Narasimman @ 2020-11-03  7:30 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: chethan.tumkur.narayan, ravishankar.srivatsa, Sathish Narasimman

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 <sathish.narasimman@intel.com>
---
 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [Bluez] profile: GOEP Set IMTU to 32k
  2020-11-03  7:30 [Bluez PATCH] profile: GOEP Set IMTU to 32k Sathish Narasimman
@ 2020-11-04 19:22 ` bluez.test.bot
  2020-11-04 21:03 ` [Bluez PATCH] " Luiz Augusto von Dentz
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2020-11-04 19:22 UTC (permalink / raw)
  To: linux-bluetooth, nsathish41

[-- Attachment #1: Type: text/plain, Size: 1372 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=376113

---Test result---

##############################
Test: CheckPatch - FAIL
Output:
profile: GOEP Set IMTU to 32k
WARNING:LONG_LINE: line over 80 characters
#29: FILE: src/profile.c:1364:
+				if (!bt_io_set(io, NULL, BT_IO_OPT_IMTU, BTRX_MTU,

WARNING:LONG_LINE_STRING: line over 80 characters
#31: FILE: src/profile.c:1366:
+					DBG("ERROR bt_io_set Unable to set MTU");

- total: 0 errors, 2 warnings, 19 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

Your patch has style problems, please review.

NOTE: Ignored message types: COMMIT_MESSAGE COMPLEX_MACRO CONST_STRUCT FILE_PATH_CHANGES MISSING_SIGN_OFF PREFER_PACKED SPLIT_STRING SSCANF_TO_KSTRTO

NOTE: If any of the errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.


##############################
Test: CheckGitLint - PASS

##############################
Test: CheckBuild - PASS

##############################
Test: MakeCheck - PASS



---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez PATCH] profile: GOEP Set IMTU to 32k
  2020-11-03  7:30 [Bluez PATCH] profile: GOEP Set IMTU to 32k Sathish Narasimman
  2020-11-04 19:22 ` [Bluez] " bluez.test.bot
@ 2020-11-04 21:03 ` Luiz Augusto von Dentz
  1 sibling, 0 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2020-11-04 21:03 UTC (permalink / raw)
  To: Sathish Narasimman
  Cc: linux-bluetooth@vger.kernel.org, Chethan T N,
	ravishankar.srivatsa, Sathish Narasimman

Hi Sathish,

On Mon, Nov 2, 2020 at 11:30 PM Sathish Narasimman <nsathish41@gmail.com> 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 <sathish.narasimman@intel.com>
> ---
>  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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-04 21:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-03  7:30 [Bluez PATCH] profile: GOEP Set IMTU to 32k Sathish Narasimman
2020-11-04 19:22 ` [Bluez] " bluez.test.bot
2020-11-04 21:03 ` [Bluez PATCH] " Luiz Augusto von Dentz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.