linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ v3 0/8] tests: add TX timestamping tests
@ 2024-04-02 16:42 Pauli Virtanen
  2024-04-02 16:42 ` [PATCH BlueZ v3 1/8] lib: add BT_SCM_ERROR and BT_NO_ERRQUEUE_POLL Pauli Virtanen
                   ` (7 more replies)
  0 siblings, 8 replies; 19+ messages in thread
From: Pauli Virtanen @ 2024-04-02 16:42 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Pauli Virtanen

Add tests for TX timestamping

v3:
- BT_NO_ERRQUEUE_POLL experimental flag enable in tests
- Drop tester cmdline patch as it's unrelated

v2:
- L2CAP LE Client tests
- SCO TX timestamping test
- Fix emulator bthost L2CAP LE credits send/recv
- Fix emulator SCO send pkts
- BT_NO_ERRQUEUE_POLL test
- Tester command-line option -n

Pauli Virtanen (8):
  lib: add BT_SCM_ERROR and BT_NO_ERRQUEUE_POLL
  iso-tester: Add tests for TX timestamping
  l2cap-tester: Add test for TX timestamping
  btdev: set nonzero SCO mtu & max pkt
  sco-tester: add TX timestamping test
  bthost: handle client L2CAP conn in LE credit based mode
  l2cap-tester: add tests for LE Client read/write/tx-timestamping
  iso-tester: add test for BT_NO_ERRQUEUE_POLL

 emulator/btdev.c     |  11 +-
 emulator/bthost.c    | 205 +++++++++++++++++++++++++++----
 lib/bluetooth.h      |   3 +
 tools/iso-tester.c   | 286 +++++++++++++++++++++++++++++++++++++++++--
 tools/l2cap-tester.c | 147 +++++++++++++++++++++-
 tools/sco-tester.c   |  94 +++++++++++++-
 tools/tester-utils.h | 166 +++++++++++++++++++++++++
 7 files changed, 866 insertions(+), 46 deletions(-)
 create mode 100644 tools/tester-utils.h

-- 
2.44.0


^ permalink raw reply	[flat|nested] 19+ messages in thread
* [PATCH BlueZ v7 1/7] lib: add BT_SCM_ERROR
@ 2024-04-04 16:21 Pauli Virtanen
  2024-04-04 20:47 ` tests: add TX timestamping tests bluez.test.bot
  0 siblings, 1 reply; 19+ messages in thread
From: Pauli Virtanen @ 2024-04-04 16:21 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Pauli Virtanen

Add new CMSG type used in new kernel TX timestamping support.
---
 lib/bluetooth.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/bluetooth.h b/lib/bluetooth.h
index 75dc960c8..a4ed65d0b 100644
--- a/lib/bluetooth.h
+++ b/lib/bluetooth.h
@@ -141,6 +141,7 @@ struct bt_voice {
 #define BT_PKT_STATUS		16
 
 #define BT_SCM_PKT_STATUS	0x03
+#define BT_SCM_ERROR		0x04
 
 #define BT_ISO_QOS		17
 
-- 
2.44.0


^ permalink raw reply related	[flat|nested] 19+ messages in thread
* [PATCH BlueZ v6 1/7] lib: add BT_SCM_ERROR
@ 2024-04-03 18:26 Pauli Virtanen
  2024-04-03 20:48 ` tests: add TX timestamping tests bluez.test.bot
  0 siblings, 1 reply; 19+ messages in thread
From: Pauli Virtanen @ 2024-04-03 18:26 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Pauli Virtanen

Add new CMSG type used in new kernel TX timestamping support.
---
 lib/bluetooth.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/bluetooth.h b/lib/bluetooth.h
index 75dc960c8..a4ed65d0b 100644
--- a/lib/bluetooth.h
+++ b/lib/bluetooth.h
@@ -141,6 +141,7 @@ struct bt_voice {
 #define BT_PKT_STATUS		16
 
 #define BT_SCM_PKT_STATUS	0x03
+#define BT_SCM_ERROR		0x04
 
 #define BT_ISO_QOS		17
 
-- 
2.44.0


^ permalink raw reply related	[flat|nested] 19+ messages in thread
* [PATCH BlueZ v5 1/7] lib: add BT_SCM_ERROR
@ 2024-04-03 16:43 Pauli Virtanen
  2024-04-03 17:11 ` tests: add TX timestamping tests bluez.test.bot
  0 siblings, 1 reply; 19+ messages in thread
From: Pauli Virtanen @ 2024-04-03 16:43 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Pauli Virtanen

Add new CMSG type used in new kernel TX timestamping support.
---
 lib/bluetooth.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/bluetooth.h b/lib/bluetooth.h
index 75dc960c8..a4ed65d0b 100644
--- a/lib/bluetooth.h
+++ b/lib/bluetooth.h
@@ -141,6 +141,7 @@ struct bt_voice {
 #define BT_PKT_STATUS		16
 
 #define BT_SCM_PKT_STATUS	0x03
+#define BT_SCM_ERROR		0x04
 
 #define BT_ISO_QOS		17
 
-- 
2.44.0


^ permalink raw reply related	[flat|nested] 19+ messages in thread
* [PATCH BlueZ v4 1/7] lib: add BT_SCM_ERROR
@ 2024-04-02 18:49 Pauli Virtanen
  2024-04-02 19:56 ` tests: add TX timestamping tests bluez.test.bot
  0 siblings, 1 reply; 19+ messages in thread
From: Pauli Virtanen @ 2024-04-02 18:49 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Pauli Virtanen

Add new CMSG type used in new kernel TX timestamping support.
---
 lib/bluetooth.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/bluetooth.h b/lib/bluetooth.h
index 75dc960c8..a4ed65d0b 100644
--- a/lib/bluetooth.h
+++ b/lib/bluetooth.h
@@ -141,6 +141,7 @@ struct bt_voice {
 #define BT_PKT_STATUS		16
 
 #define BT_SCM_PKT_STATUS	0x03
+#define BT_SCM_ERROR		0x04
 
 #define BT_ISO_QOS		17
 
-- 
2.44.0


^ permalink raw reply related	[flat|nested] 19+ messages in thread
* [PATCH BlueZ v2 1/9] lib: add BT_SCM_ERROR and BT_NO_ERRQUEUE_POLL
@ 2024-03-14 18:21 Pauli Virtanen
  2024-03-14 19:20 ` tests: add TX timestamping tests bluez.test.bot
  0 siblings, 1 reply; 19+ messages in thread
From: Pauli Virtanen @ 2024-03-14 18:21 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Pauli Virtanen

Add new CMSG type used in new kernel TX timestamping support.

Add new socket option.
---
 lib/bluetooth.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/bluetooth.h b/lib/bluetooth.h
index 75dc960c8..7c310a69b 100644
--- a/lib/bluetooth.h
+++ b/lib/bluetooth.h
@@ -141,6 +141,7 @@ struct bt_voice {
 #define BT_PKT_STATUS		16
 
 #define BT_SCM_PKT_STATUS	0x03
+#define BT_SCM_ERROR		0x04
 
 #define BT_ISO_QOS		17
 
@@ -239,6 +240,8 @@ enum {
 
 #define BT_ISO_BASE		20
 
+#define BT_NO_ERRQUEUE_POLL	21
+
 /* Byte order conversions */
 #if __BYTE_ORDER == __LITTLE_ENDIAN
 #define htobs(d)  (d)
-- 
2.44.0


^ permalink raw reply related	[flat|nested] 19+ messages in thread
* [PATCH BlueZ 1/3] lib: add BT_SCM_ERROR sock_extended_err CMSG
@ 2024-03-02 20:09 Pauli Virtanen
  2024-03-02 21:06 ` tests: add TX timestamping tests bluez.test.bot
  0 siblings, 1 reply; 19+ messages in thread
From: Pauli Virtanen @ 2024-03-02 20:09 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Pauli Virtanen

Add new CMSG type used in new kernel TX timestamping support.
---
 lib/bluetooth.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/bluetooth.h b/lib/bluetooth.h
index ba08c70e6..90e167f16 100644
--- a/lib/bluetooth.h
+++ b/lib/bluetooth.h
@@ -141,6 +141,7 @@ struct bt_voice {
 #define BT_PKT_STATUS		16
 
 #define BT_SCM_PKT_STATUS	0x03
+#define BT_SCM_ERROR		0x04
 
 #define BT_ISO_QOS		17
 
-- 
2.44.0


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

end of thread, other threads:[~2024-04-04 20:47 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-02 16:42 [PATCH BlueZ v3 0/8] tests: add TX timestamping tests Pauli Virtanen
2024-04-02 16:42 ` [PATCH BlueZ v3 1/8] lib: add BT_SCM_ERROR and BT_NO_ERRQUEUE_POLL Pauli Virtanen
2024-04-02 17:32   ` Luiz Augusto von Dentz
2024-04-02 17:59   ` tests: add TX timestamping tests bluez.test.bot
2024-04-02 16:42 ` [PATCH BlueZ v3 2/8] iso-tester: Add tests for TX timestamping Pauli Virtanen
2024-04-02 18:46   ` Luiz Augusto von Dentz
2024-04-02 16:43 ` [PATCH BlueZ v3 3/8] l2cap-tester: Add test " Pauli Virtanen
2024-04-02 16:43 ` [PATCH BlueZ v3 4/8] btdev: set nonzero SCO mtu & max pkt Pauli Virtanen
2024-04-02 16:43 ` [PATCH BlueZ v3 5/8] sco-tester: add TX timestamping test Pauli Virtanen
2024-04-02 16:43 ` [PATCH BlueZ v3 6/8] bthost: handle client L2CAP conn in LE credit based mode Pauli Virtanen
2024-04-02 16:43 ` [PATCH BlueZ v3 7/8] l2cap-tester: add tests for LE Client read/write/tx-timestamping Pauli Virtanen
2024-04-02 16:43 ` [PATCH BlueZ v3 8/8] iso-tester: add test for BT_NO_ERRQUEUE_POLL Pauli Virtanen
  -- strict thread matches above, loose matches on Subject: below --
2024-04-04 16:21 [PATCH BlueZ v7 1/7] lib: add BT_SCM_ERROR Pauli Virtanen
2024-04-04 20:47 ` tests: add TX timestamping tests bluez.test.bot
2024-04-03 18:26 [PATCH BlueZ v6 1/7] lib: add BT_SCM_ERROR Pauli Virtanen
2024-04-03 20:48 ` tests: add TX timestamping tests bluez.test.bot
2024-04-03 16:43 [PATCH BlueZ v5 1/7] lib: add BT_SCM_ERROR Pauli Virtanen
2024-04-03 17:11 ` tests: add TX timestamping tests bluez.test.bot
2024-04-03 17:14   ` Luiz Augusto von Dentz
2024-04-02 18:49 [PATCH BlueZ v4 1/7] lib: add BT_SCM_ERROR Pauli Virtanen
2024-04-02 19:56 ` tests: add TX timestamping tests bluez.test.bot
2024-03-14 18:21 [PATCH BlueZ v2 1/9] lib: add BT_SCM_ERROR and BT_NO_ERRQUEUE_POLL Pauli Virtanen
2024-03-14 19:20 ` tests: add TX timestamping tests bluez.test.bot
2024-03-02 20:09 [PATCH BlueZ 1/3] lib: add BT_SCM_ERROR sock_extended_err CMSG Pauli Virtanen
2024-03-02 21:06 ` tests: add TX timestamping tests bluez.test.bot

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 NNTP newsgroup(s).