Linux-Bluetooth Archive mirror
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: Add CONFIG_BT_LE_L2CAP_ECRED
@ 2022-10-27 23:25 Luiz Augusto von Dentz
  2022-10-28  0:12 ` bluez.test.bot
  2022-10-28 23:50 ` [PATCH] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2022-10-27 23:25 UTC (permalink / raw
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This adds CONFIG_BT_LE_L2CAP_ECRED which can be used to enable L2CAP
Enhanced Credit Flow Control Mode by default, previously it was only
possible to set it via module parameter (e.g. bluetooth.enable_ecred=1).

Since L2CAP ECRED mode is required by the likes of EATT which is
recommended for LE Audio this enables it by default.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
---
 net/bluetooth/Kconfig      | 11 +++++++++++
 net/bluetooth/l2cap_core.c |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/net/bluetooth/Kconfig b/net/bluetooth/Kconfig
index ae3bdc6dfc92..da7cac0a1b71 100644
--- a/net/bluetooth/Kconfig
+++ b/net/bluetooth/Kconfig
@@ -78,6 +78,17 @@ config BT_LE
 	  Bluetooth Low Energy includes support low-energy physical
 	  layer available with Bluetooth version 4.0 or later.
 
+config BT_LE_L2CAP_ECRED
+	bool "Bluetooth L2CAP Enhanced Credit Flow Control"
+	depends on BT_LE
+	default y
+	help
+	  Bluetooth Low Energy L2CAP Enhanced Credit Flow Control available with
+	  Bluetooth version 5.2 or later.
+
+	  This can be overridden by passing bluetooth.enable_ecred=[1|0]
+	  on the kernel commandline.
+
 config BT_6LOWPAN
 	tristate "Bluetooth 6LoWPAN support"
 	depends on BT_LE && 6LOWPAN
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index 1fbe087d6ae4..ef725ed41303 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -45,7 +45,7 @@
 #define LE_FLOWCTL_MAX_CREDITS 65535
 
 bool disable_ertm;
-bool enable_ecred;
+bool enable_ecred = IS_ENABLED(CONFIG_BT_LE_L2CAP_ECRED);
 
 static u32 l2cap_feat_mask = L2CAP_FEAT_FIXED_CHAN | L2CAP_FEAT_UCD;
 
-- 
2.37.3


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

* RE: Bluetooth: Add CONFIG_BT_LE_L2CAP_ECRED
  2022-10-27 23:25 [PATCH] Bluetooth: Add CONFIG_BT_LE_L2CAP_ECRED Luiz Augusto von Dentz
@ 2022-10-28  0:12 ` bluez.test.bot
  2022-10-28 23:50 ` [PATCH] " patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2022-10-28  0:12 UTC (permalink / raw
  To: linux-bluetooth, luiz.dentz

[-- Attachment #1: Type: text/plain, Size: 1260 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=689611

---Test result---

Test Summary:
CheckPatch                    PASS      1.83 seconds
GitLint                       PASS      1.05 seconds
SubjectPrefix                 PASS      0.88 seconds
BuildKernel                   PASS      34.27 seconds
BuildKernel32                 PASS      31.02 seconds
Incremental Build with patchesPASS      46.58 seconds
TestRunner: Setup             PASS      514.95 seconds
TestRunner: l2cap-tester      PASS      17.48 seconds
TestRunner: iso-tester        PASS      16.75 seconds
TestRunner: bnep-tester       PASS      6.64 seconds
TestRunner: mgmt-tester       PASS      106.88 seconds
TestRunner: rfcomm-tester     PASS      10.50 seconds
TestRunner: sco-tester        PASS      9.95 seconds
TestRunner: ioctl-tester      PASS      11.37 seconds
TestRunner: mesh-tester       PASS      8.19 seconds
TestRunner: smp-tester        PASS      10.02 seconds
TestRunner: userchan-tester   PASS      6.99 seconds



---
Regards,
Linux Bluetooth


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

* Re: [PATCH] Bluetooth: Add CONFIG_BT_LE_L2CAP_ECRED
  2022-10-27 23:25 [PATCH] Bluetooth: Add CONFIG_BT_LE_L2CAP_ECRED Luiz Augusto von Dentz
  2022-10-28  0:12 ` bluez.test.bot
@ 2022-10-28 23:50 ` patchwork-bot+bluetooth
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2022-10-28 23:50 UTC (permalink / raw
  To: Luiz Augusto von Dentz; +Cc: linux-bluetooth

Hello:

This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Thu, 27 Oct 2022 16:25:28 -0700 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
> 
> This adds CONFIG_BT_LE_L2CAP_ECRED which can be used to enable L2CAP
> Enhanced Credit Flow Control Mode by default, previously it was only
> possible to set it via module parameter (e.g. bluetooth.enable_ecred=1).
> 
> Since L2CAP ECRED mode is required by the likes of EATT which is
> recommended for LE Audio this enables it by default.
> 
> [...]

Here is the summary with links:
  - Bluetooth: Add CONFIG_BT_LE_L2CAP_ECRED
    https://git.kernel.org/bluetooth/bluetooth-next/c/98f18bb78b7d

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2022-10-28 23:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-27 23:25 [PATCH] Bluetooth: Add CONFIG_BT_LE_L2CAP_ECRED Luiz Augusto von Dentz
2022-10-28  0:12 ` bluez.test.bot
2022-10-28 23:50 ` [PATCH] " patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).