]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Bluetooth: hci_core: Print number of packets in conn->data_q
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 19 Aug 2025 19:31:28 +0000 (15:31 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Sat, 27 Sep 2025 15:37:01 +0000 (11:37 -0400)
This attempts to print the number of packets pending to be transmitted
in the conn->data_q.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_core.c

index 4cf4bb1187dc326ba6b02a7240705653e744963b..198819577fe574ae78b33602fca6a08802f906a7 100644 (file)
@@ -3267,6 +3267,8 @@ static void hci_queue_acl(struct hci_chan *chan, struct sk_buff_head *queue,
 
                spin_unlock_bh(&queue->lock);
        }
+
+       bt_dev_dbg(hdev, "chan %p queued %d", chan, skb_queue_len(queue));
 }
 
 void hci_send_acl(struct hci_chan *chan, struct sk_buff *skb, __u16 flags)
@@ -3298,6 +3300,10 @@ void hci_send_sco(struct hci_conn *conn, struct sk_buff *skb)
        hci_skb_pkt_type(skb) = HCI_SCODATA_PKT;
 
        skb_queue_tail(&conn->data_q, skb);
+
+       bt_dev_dbg(hdev, "hcon %p queued %d", conn,
+                  skb_queue_len(&conn->data_q));
+
        queue_work(hdev->workqueue, &hdev->tx_work);
 }
 
@@ -3357,6 +3363,8 @@ static void hci_queue_iso(struct hci_conn *conn, struct sk_buff_head *queue,
                        __skb_queue_tail(queue, skb);
                } while (list);
        }
+
+       bt_dev_dbg(hdev, "hcon %p queued %d", conn, skb_queue_len(queue));
 }
 
 void hci_send_iso(struct hci_conn *conn, struct sk_buff *skb)