From: Kiran K <kiran.k@intel.com>
To: linux-bluetooth@vger.kernel.org
Cc: ravishankar.srivatsa@intel.com, chethan.tumkur.narayan@intel.com,
chandrashekar.devegowda@intel.com, Kiran K <kiran.k@intel.com>
Subject: [PATCH v1 2/3] Bluetooth: Add tx/rx counters to track iso packets
Date: Fri, 26 Jul 2024 16:13:25 +0530 [thread overview]
Message-ID: <20240726104326.459668-2-kiran.k@intel.com> (raw)
In-Reply-To: <20240726104326.459668-1-kiran.k@intel.com>
Add counters in hci_dev_stats to track iso tx and rx packets.
Signed-off-by: Kiran K <kiran.k@intel.com>
---
include/net/bluetooth/hci_sock.h | 2 ++
net/bluetooth/hci_core.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/include/net/bluetooth/hci_sock.h b/include/net/bluetooth/hci_sock.h
index 13e8cd4414a1..98991a11844a 100644
--- a/include/net/bluetooth/hci_sock.h
+++ b/include/net/bluetooth/hci_sock.h
@@ -101,6 +101,8 @@ struct hci_dev_stats {
__u32 acl_rx;
__u32 sco_tx;
__u32 sco_rx;
+ __u32 iso_tx;
+ __u32 iso_rx;
__u32 byte_rx;
__u32 byte_tx;
};
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 8a4ebd93adfc..b0d40b62238b 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -3858,6 +3858,8 @@ static void hci_isodata_packet(struct hci_dev *hdev, struct sk_buff *skb)
bt_dev_dbg(hdev, "len %d handle 0x%4.4x flags 0x%4.4x", skb->len,
handle, flags);
+ hdev->stat.iso_rx++;
+
hci_dev_lock(hdev);
conn = hci_conn_hash_lookup_handle(hdev, handle);
hci_dev_unlock(hdev);
--
2.40.1
next prev parent reply other threads:[~2024-07-26 10:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-26 10:43 [PATCH v1 1/3] Bluetooth: Add a helper function to extract iso header Kiran K
2024-07-26 10:43 ` Kiran K [this message]
2024-08-06 14:22 ` [PATCH v1 2/3] Bluetooth: Add tx/rx counters to track iso packets Luiz Augusto von Dentz
2024-07-26 10:43 ` [PATCH v1 3/3] Bluetooth: btintel_pcie: Add support for ISO data Kiran K
2024-07-26 11:04 ` [v1,1/3] Bluetooth: Add a helper function to extract iso header bluez.test.bot
2024-08-06 20:29 ` [PATCH v1 1/3] " patchwork-bot+bluetooth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240726104326.459668-2-kiran.k@intel.com \
--to=kiran.k@intel.com \
--cc=chandrashekar.devegowda@intel.com \
--cc=chethan.tumkur.narayan@intel.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=ravishankar.srivatsa@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.